From 9529bae97d33cf727914fdbff77decc8da97cc33 Mon Sep 17 00:00:00 2001 From: Chris Toshok Date: Fri, 24 May 2002 12:36:56 +0000 Subject: [ fixes 90% of #25047 ] shamelessly lifted from 2002-05-24 Chris Toshok [ fixes 90% of #25047 ] * e-folder-list.c (get_folder_for_uri): shamelessly lifted from evolution-folder-selector-button.c. (create_display_string): modeled again after evolution-folder-selector-button.c, so we can give a little more context (and make the table look like the folder selector buttons.) (SPEC): add a pixbuf column, also remove the sorting behavior. (columns): add a pixbuf column and another string column (for the display string). (add_clicked): create the display string and get the proper pixbuf, and insert both. (edit_clicked): removed. (update_buttons): remove edit button handling from here. (e_folder_list_init): remove the hooking up of button-edit's "clicked" signal. (e_folder_list_construct): get a reference to the storage registry so we can look up folders. (e_folder_list_set_items): analogous change to add_clicked - get the display string and pixbuf and insert them. * glade/e-folder-list.glade: remove the edit button. * glade/e-shell-config-default-folders.glade: remove the frame/vbox, since we embed it in a notebook and the tab has the title already. * e-shell-config.c (config_control_factory_cb): the only config control we deal with here now is the folder settings control. * e-shell-config-default-folders.c (e_shell_config_default_folders_create_widget): rename e_shell_config_default_folders_create_control to this, return the widget, and take the config control to use as an arg. * e-shell-config-offline.c (e_shell_config_offline_create_widget): make an analogous change here as with default_folders_create_widget. * e-shell-config-default-folders.h (e_shell_config_default_folders_create_widget): track change to prototype. * e-shell-config-offline.h (e_shell_config_offline_create_widget): same. * GNOME_Evolution_Shell.oaf.in: remove the DefaultFolders and OfflineFolders controls and add a FolderSettings_Control. * Makefile.am (evolution_SOURCES): add e-shell-config-folder-settings.[ch] and e-shell-config-autocompletion.[ch]. * e-shell-config-folder-settings.[ch]: new files, embed (after a fashion) the default folder, offline, and autocompletion UI's in a notebook. * e-shell-config-autocompletion.[ch]: Basically copy over and shell-ize the addressbook autocompletion config control so it can be embedded more easily with the other folder settings. svn path=/trunk/; revision=17000 --- shell/e-shell-config-default-folders.c | 12 +++++------- 1 file changed, 5 insertions(+), 7 deletions(-) (limited to 'shell/e-shell-config-default-folders.c') diff --git a/shell/e-shell-config-default-folders.c b/shell/e-shell-config-default-folders.c index 52a23837e3..7875cb4128 100644 --- a/shell/e-shell-config-default-folders.c +++ b/shell/e-shell-config-default-folders.c @@ -27,7 +27,6 @@ #include "e-shell-config-default-folders.h" -#include "evolution-config-control.h" #include "evolution-folder-selector-button.h" #include @@ -140,8 +139,8 @@ setup_folder_selector (EvolutionDefaultFolderConfig *dfc, dfc); } -BonoboObject * -e_shell_config_default_folders_create_control (EShell *shell) +GtkWidget* +e_shell_config_default_folders_create_widget (EShell *shell, EvolutionConfigControl *config_control) { GNOME_Evolution_Shell shell_dup; CORBA_Environment ev; @@ -175,17 +174,16 @@ e_shell_config_default_folders_create_control (EShell *shell) &dfc->tasks_uri, "/DefaultFolders/tasks_uri", tasks_types); - widget = glade_xml_get_widget (dfc->glade, "default_folders_vbox"); + widget = glade_xml_get_widget (dfc->glade, "default_folders_table"); gtk_widget_ref (widget); gtk_container_remove (GTK_CONTAINER (widget->parent), widget); gtk_widget_show (widget); - dfc->config_control = evolution_config_control_new (widget); - gtk_widget_unref (widget); + dfc->config_control = config_control; gtk_signal_connect (GTK_OBJECT (dfc->config_control), "apply", GTK_SIGNAL_FUNC (config_control_apply_cb), dfc); gtk_signal_connect (GTK_OBJECT (dfc->config_control), "destroy", GTK_SIGNAL_FUNC (config_control_destroy_cb), dfc); - return BONOBO_OBJECT (dfc->config_control); + return widget; } -- cgit v1.2.3