source: trunk/third/evolution/shell/e-shell-config-folder-settings.c @ 18142

Revision 18142, 2.3 KB checked in by ghudson, 22 years ago (diff)
This commit was generated by cvs2svn to compensate for changes in r18141, which included commits to RCS files with non-trunk default branches.
Line 
1/* -*- Mode: C; indent-tabs-mode: t; c-basic-offset: 8; tab-width: 8 -*- */
2/* e-shell-config-folder-settings.c - Configuration page for folder settings.
3 *
4 * Copyright (C) 2002 Ximian, Inc.
5 *
6 * This program is free software; you can redistribute it and/or
7 * modify it under the terms of version 2 of the GNU General Public
8 * License as published by the Free Software Foundation.
9 *
10 * This program is distributed in the hope that it will be useful,
11 * but WITHOUT ANY WARRANTY; without even the implied warranty of
12 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
13 * General Public License for more details.
14 *
15 * You should have received a copy of the GNU General Public
16 * License along with this program; if not, write to the
17 * Free Software Foundation, Inc., 59 Temple Place - Suite 330,
18 * Boston, MA 02111-1307, USA.
19 *
20 * Author: Ettore Perazzoli <ettore@ximian.com>
21 */
22
23#ifdef HAVE_CONFIG_H
24#include <config.h>
25#endif
26
27
28#include "e-shell-config-folder-settings.h"
29#include "e-shell-config-offline.h"
30#include "e-shell-config-autocompletion.h"
31#include "e-shell-config-default-folders.h"
32
33#include "evolution-config-control.h"
34#include "e-storage-set-view.h"
35
36#include "Evolution.h"
37
38#include <bonobo-conf/Bonobo_Config.h>
39#include <bonobo/bonobo-exception.h>
40
41#include <libgnome/gnome-i18n.h>
42#include <gtk/gtknotebook.h>
43#include <gtk/gtklabel.h>
44
45
46static void
47append_to_notebook (GtkWidget *notebook, char *label_str,
48                    GtkWidget *child)
49{
50        GtkWidget *label;
51
52        label = gtk_label_new (label_str);
53
54        gtk_notebook_append_page (GTK_NOTEBOOK(notebook), child, label);
55        gtk_widget_show (label);
56        gtk_widget_show (child);
57}
58
59BonoboObject *
60e_shell_config_folder_settings_create_control (EShell *shell)
61{
62        GtkWidget *notebook;
63        EvolutionConfigControl *control;
64
65        g_return_val_if_fail (E_IS_SHELL (shell), NULL);
66
67        notebook = gtk_notebook_new ();
68
69        control = evolution_config_control_new (notebook);
70
71        append_to_notebook (notebook, _("Default Folders"),
72                            e_shell_config_default_folders_create_widget (shell, control));
73
74        append_to_notebook (notebook, _("Offline Folders"),
75                            e_shell_config_offline_create_widget (shell, control));
76
77        append_to_notebook (notebook, _("Autocompletion Folders"),
78                            e_shell_config_autocompletion_create_widget (shell, control));
79
80        gtk_widget_show (notebook);
81
82        return BONOBO_OBJECT (control);
83}
Note: See TracBrowser for help on using the repository browser.