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-folder-selection-button.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-folder-selection-button.c')
-rw-r--r-- | mail/em-folder-selection-button.c | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/mail/em-folder-selection-button.c b/mail/em-folder-selection-button.c index ec818221b4..d3d44e5c23 100644 --- a/mail/em-folder-selection-button.c +++ b/mail/em-folder-selection-button.c @@ -208,9 +208,13 @@ folder_selection_button_clicked (GtkButton *button) GtkWidget *dialog; GtkTreeSelection *selection; GtkSelectionMode mode; + gpointer parent; priv = EM_FOLDER_SELECTION_BUTTON_GET_PRIVATE (button); + parent = gtk_widget_get_toplevel (GTK_WIDGET (button)); + parent = GTK_WIDGET_TOPLEVEL (parent) ? parent : NULL; + emft = (EMFolderTree *) em_folder_tree_new (); selection = gtk_tree_view_get_selection (GTK_TREE_VIEW (emft)); @@ -225,7 +229,7 @@ folder_selection_button_clicked (GtkButton *button) EMFT_EXCLUDE_VIRTUAL | EMFT_EXCLUDE_VTRASH); dialog = em_folder_selector_new ( - emft, EM_FOLDER_SELECTOR_CAN_CREATE, + parent, emft, EM_FOLDER_SELECTOR_CAN_CREATE, priv->title, priv->caption, NULL); if (priv->multiple_select) |