aboutsummaryrefslogtreecommitdiffstats
path: root/filter/vfolder-rule.c
diff options
context:
space:
mode:
authorJeffrey Stedfast <fejj@ximian.com>2003-02-13 04:42:35 +0800
committerJeffrey Stedfast <fejj@src.gnome.org>2003-02-13 04:42:35 +0800
commit1d869c5796ea566da6d40c8e6c97a6f65fa132cb (patch)
treeb87d3d0ff73c88b59487e10ef8dc147ecff4217f /filter/vfolder-rule.c
parent1ebf9b6fd1996bdec796414f551839542b3dd323 (diff)
downloadgsoc2013-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/vfolder-rule.c')
-rw-r--r--filter/vfolder-rule.c27
1 files changed, 10 insertions, 17 deletions
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);