diff options
author | Ettore Perazzoli <ettore@src.gnome.org> | 2001-01-28 12:36:52 +0800 |
---|---|---|
committer | Ettore Perazzoli <ettore@src.gnome.org> | 2001-01-28 12:36:52 +0800 |
commit | 426c551eeed2096cb0de0b451adc1d84b055034f (patch) | |
tree | 04bdf12898a5059a648917b269e876f2aeb99890 /shell | |
parent | d8c95a55bc0d7dc465ce11070cd237c8b53c53fa (diff) | |
download | gsoc2013-evolution-426c551eeed2096cb0de0b451adc1d84b055034f.tar.gz gsoc2013-evolution-426c551eeed2096cb0de0b451adc1d84b055034f.tar.zst gsoc2013-evolution-426c551eeed2096cb0de0b451adc1d84b055034f.zip |
Woooho. Fixed resize of popped-up folder bars.
Thanks to clahey for discovering a stupid mistake in the signal
handler signatures.
svn path=/trunk/; revision=7868
Diffstat (limited to 'shell')
-rw-r--r-- | shell/ChangeLog | 8 | ||||
-rw-r--r-- | shell/e-shell-view.c | 11 |
2 files changed, 17 insertions, 2 deletions
diff --git a/shell/ChangeLog b/shell/ChangeLog index c17faa51ed..4780151988 100644 --- a/shell/ChangeLog +++ b/shell/ChangeLog @@ -1,3 +1,11 @@ +2001-01-27 Ettore Perazzoli <ettore@ximian.com> + + * e-shell-view.c (storage_set_view_box_button_release_event_cb): + Don't pop down the folder bar if the button release happens in the + e-paned's handle. + (storage_set_view_box_button_release_event_cb): Changed the return + value to be int. Stupid me. + 2001-01-27 Jason Leach <jasonleach@usa.net> * e-shortcuts-view.h: Fix #include to point to gal instead of diff --git a/shell/e-shell-view.c b/shell/e-shell-view.c index 4bdb8139d7..769e54c5bb 100644 --- a/shell/e-shell-view.c +++ b/shell/e-shell-view.c @@ -187,16 +187,23 @@ popdown_transient_folder_bar (EShellView *shell_view) e_shell_folder_title_bar_set_toggle_state (E_SHELL_FOLDER_TITLE_BAR (priv->view_title_bar), FALSE); } -static void +static int storage_set_view_box_button_release_event_cb (GtkWidget *widget, GdkEventButton *button_event, void *data) { EShellView *shell_view; + EShellViewPrivate *priv; shell_view = E_SHELL_VIEW (data); + priv = shell_view->priv; + + if (button_event->window == E_PANED (priv->view_hpaned)->handle) + return FALSE; popdown_transient_folder_bar (shell_view); + + return TRUE; } static void @@ -281,7 +288,7 @@ pop_up_folder_bar (EShellView *shell_view) /* We need to show the storage set view box and do a pointer grab to catch the mouse clicks. But until the box is shown, we cannot grab. So we connect to - the "map" signa; `storage_set_view_box_map_cb' will do the grab. */ + the "map" signal; `storage_set_view_box_map_cb()' will do the grab. */ gtk_signal_connect (GTK_OBJECT (priv->storage_set_view_box), "map", GTK_SIGNAL_FUNC (storage_set_view_box_map_cb), shell_view); |