diff options
author | Jeffrey Stedfast <fejj@ximian.com> | 2003-02-13 04:42:35 +0800 |
---|---|---|
committer | Jeffrey Stedfast <fejj@src.gnome.org> | 2003-02-13 04:42:35 +0800 |
commit | 1d869c5796ea566da6d40c8e6c97a6f65fa132cb (patch) | |
tree | b87d3d0ff73c88b59487e10ef8dc147ecff4217f /filter | |
parent | 1ebf9b6fd1996bdec796414f551839542b3dd323 (diff) | |
download | gsoc2013-evolution-1d869c5796ea566da6d40c8e6c97a6f65fa132cb.tar.gz gsoc2013-evolution-1d869c5796ea566da6d40c8e6c97a6f65fa132cb.tar.zst gsoc2013-evolution-1d869c5796ea566da6d40c8e6c97a6f65fa132cb.zip |
Get rid of the need for the GTK_WIDGET_DESTROYED() check.
2003-02-12 Jeffrey Stedfast <fejj@ximian.com>
* vfolder-rule.c (source_add): Get rid of the need for the
GTK_WIDGET_DESTROYED() check.
svn path=/trunk/; revision=19898
Diffstat (limited to 'filter')
-rw-r--r-- | filter/ChangeLog | 5 | ||||
-rw-r--r-- | filter/vfolder-rule.c | 27 |
2 files changed, 15 insertions, 17 deletions
diff --git a/filter/ChangeLog b/filter/ChangeLog index 6e7f9c8629..0c7181b12d 100644 --- a/filter/ChangeLog +++ b/filter/ChangeLog @@ -1,3 +1,8 @@ +2003-02-12 Jeffrey Stedfast <fejj@ximian.com> + + * vfolder-rule.c (source_add): Get rid of the need for the + GTK_WIDGET_DESTROYED() check. + 2003-02-07 Jeffrey Stedfast <fejj@ximian.com> * filter-editor.c (filter_editor_new): Use g_object_new() diff --git a/filter/vfolder-rule.c b/filter/vfolder-rule.c index 1126cb9871..fc7e1b853a 100644 --- a/filter/vfolder-rule.c +++ b/filter/vfolder-rule.c @@ -397,24 +397,17 @@ source_add (GtkWidget *widget, struct _source_data *data) static const char *allowed_types[] = { "mail/*", NULL }; GNOME_Evolution_Folder *folder; GtkTreeSelection *selection; + GtkWidget *window; GtkTreeIter iter; - char *def, *uri; - - gtk_widget_set_sensitive (widget, FALSE); - def = ""; - evolution_shell_client_user_select_folder (global_shell_client, - GTK_WINDOW (gtk_widget_get_toplevel (widget)), - _("Select Folder"), - def, allowed_types, &folder); -#warning "gtk_object_destroyed?" -#if 0 - if (GTK_OBJECT_DESTROYED (widget)) { - if (folder) - CORBA_free (folder); - return; - } -#endif - gtk_widget_set_sensitive (widget, TRUE); + char *uri; + + window = gtk_widget_get_toplevel (widget); + gtk_widget_set_sensitive (window, FALSE); + + evolution_shell_client_user_select_folder (global_shell_client, GTK_WINDOW (window), + _("Select Folder"), "", allowed_types, &folder); + + gtk_widget_set_sensitive (window, TRUE); if (folder) { uri = g_strdup (folder->physicalUri); |