diff options
author | Matthew Barnes <mbarnes@redhat.com> | 2009-09-11 00:58:00 +0800 |
---|---|---|
committer | Matthew Barnes <mbarnes@redhat.com> | 2009-09-11 02:13:18 +0800 |
commit | 881792fadc8a200acd193369f842e46aef0e56e5 (patch) | |
tree | d9e3bd3c595dbc23a115e922c393dc1b3d504356 /mail/em-vfolder-rule.c | |
parent | 9ec83961283efe0a3125b0fc30f8e9b21c08f806 (diff) | |
download | gsoc2013-evolution-881792fadc8a200acd193369f842e46aef0e56e5.tar.gz gsoc2013-evolution-881792fadc8a200acd193369f842e46aef0e56e5.tar.zst gsoc2013-evolution-881792fadc8a200acd193369f842e46aef0e56e5.zip |
Require a parent window when creating an EMFolderSelector.
Diffstat (limited to 'mail/em-vfolder-rule.c')
-rw-r--r-- | mail/em-vfolder-rule.c | 10 |
1 files changed, 7 insertions, 3 deletions
diff --git a/mail/em-vfolder-rule.c b/mail/em-vfolder-rule.c index c357065414..5f58c1eb52 100644 --- a/mail/em-vfolder-rule.c +++ b/mail/em-vfolder-rule.c @@ -506,13 +506,17 @@ source_add(GtkWidget *widget, struct _source_data *data) { EMFolderTree *emft; GtkWidget *dialog; + gpointer parent; + + parent = gtk_widget_get_toplevel (widget); + parent = GTK_WIDGET_TOPLEVEL (parent) ? parent : NULL; emft =(EMFolderTree *) em_folder_tree_new (); em_folder_tree_set_excluded (emft, EMFT_EXCLUDE_NOSELECT); - dialog = em_folder_selector_new(emft, EM_FOLDER_SELECTOR_CAN_CREATE, _("Select Folder"), NULL, _("_Add")); - gtk_window_set_transient_for ((GtkWindow *)dialog, (GtkWindow *)gtk_widget_get_toplevel(widget)); - gtk_window_set_modal((GtkWindow *)dialog, TRUE); + dialog = em_folder_selector_new ( + parent, emft, EM_FOLDER_SELECTOR_CAN_CREATE, + _("Select Folder"), NULL, _("_Add")); g_signal_connect(dialog, "response", G_CALLBACK(vfr_folder_response), data); gtk_widget_show(dialog); } |