diff options
author | Ettore Perazzoli <ettore@src.gnome.org> | 2000-09-13 21:00:40 +0800 |
---|---|---|
committer | Ettore Perazzoli <ettore@src.gnome.org> | 2000-09-13 21:00:40 +0800 |
commit | 474a7723cacb523819b5b3870b9362e99360d1dc (patch) | |
tree | 25538ff8611ed23e33cb663d5daa27339ce74d76 /shell/e-shell-view.c | |
parent | e0133ee263562f697db31cdd2db20a70a8cc21d0 (diff) | |
download | gsoc2013-evolution-474a7723cacb523819b5b3870b9362e99360d1dc.tar.gz gsoc2013-evolution-474a7723cacb523819b5b3870b9362e99360d1dc.tar.zst gsoc2013-evolution-474a7723cacb523819b5b3870b9362e99360d1dc.zip |
Make the pop-up folder bar pop down after a folder is selected.
svn path=/trunk/; revision=5397
Diffstat (limited to 'shell/e-shell-view.c')
-rw-r--r-- | shell/e-shell-view.c | 21 |
1 files changed, 16 insertions, 5 deletions
diff --git a/shell/e-shell-view.c b/shell/e-shell-view.c index 319e85fd38..f2a568b9b9 100644 --- a/shell/e-shell-view.c +++ b/shell/e-shell-view.c @@ -156,14 +156,10 @@ bonobo_widget_is_dead (BonoboWidget *bonobo_widget) static void disconnect_popup_signals (EShellView *shell_view); static void -storage_set_view_box_button_release_event_cb (GtkWidget *widget, - GdkEventButton *button_event, - void *data) +popdown_transient_folder_bar (EShellView *shell_view) { - EShellView *shell_view; EShellViewPrivate *priv; - shell_view = E_SHELL_VIEW (data); priv = shell_view->priv; gdk_pointer_ungrab (GDK_CURRENT_TIME); @@ -177,6 +173,18 @@ storage_set_view_box_button_release_event_cb (GtkWidget *widget, } static void +storage_set_view_box_button_release_event_cb (GtkWidget *widget, + GdkEventButton *button_event, + void *data) +{ + EShellView *shell_view; + + shell_view = E_SHELL_VIEW (data); + + popdown_transient_folder_bar (shell_view); +} + +static void popup_storage_set_view_close_button_clicked (ETitleBar *title_bar, void *data) { @@ -338,6 +346,9 @@ folder_selected_cb (EStorageSetView *storage_set_view, GTK_SIGNAL_FUNC (new_folder_cb), shell_view); } + + if (priv->folder_bar_mode == E_SHELL_VIEW_SUBWINDOW_TRANSIENT) + popdown_transient_folder_bar (shell_view); } /* Callback called when the close button on the tree's title bar is clicked. */ |