diff options
-rw-r--r-- | shell/ChangeLog | 5 | ||||
-rw-r--r-- | shell/e-shell-view.c | 45 |
2 files changed, 32 insertions, 18 deletions
diff --git a/shell/ChangeLog b/shell/ChangeLog index 1ce1944770..46aef4d286 100644 --- a/shell/ChangeLog +++ b/shell/ChangeLog @@ -1,3 +1,8 @@ +2000-07-26 Ettore Perazzoli <ettore@helixcode.com> + + * e-shell-view.c (disconnect_popup_signals): Disconnect the "map" + signal handler too. + 2000-07-25 Ettore Perazzoli <ettore@helixcode.com> * e-shell-folder-creation-dialog.c (add_folder_types): Work around diff --git a/shell/e-shell-view.c b/shell/e-shell-view.c index 38ba7d6487..e1d3acefa9 100644 --- a/shell/e-shell-view.c +++ b/shell/e-shell-view.c @@ -149,6 +149,8 @@ storage_set_view_box_button_release_event_cb (GtkWidget *widget, EShellView *shell_view; EShellViewPrivate *priv; + puts (__FUNCTION__); + shell_view = E_SHELL_VIEW (data); priv = shell_view->priv; @@ -169,6 +171,8 @@ popup_storage_set_view_close_button_clicked (ETitleBar *title_bar, EShellView *shell_view; EShellViewPrivate *priv; + puts (__FUNCTION__); + shell_view = E_SHELL_VIEW (data); priv = shell_view->priv; @@ -182,24 +186,6 @@ popup_storage_set_view_close_button_clicked (ETitleBar *title_bar, } static void -disconnect_popup_signals (EShellView *shell_view) -{ - EShellViewPrivate *priv; - - priv = shell_view->priv; - - gtk_signal_disconnect_by_func (GTK_OBJECT (priv->storage_set_view_box), - GTK_SIGNAL_FUNC (storage_set_view_box_button_release_event_cb), - shell_view); - gtk_signal_disconnect_by_func (GTK_OBJECT (priv->storage_set_view), - GTK_SIGNAL_FUNC (storage_set_view_box_button_release_event_cb), - shell_view); - gtk_signal_disconnect_by_func (GTK_OBJECT (priv->storage_set_title_bar), - GTK_SIGNAL_FUNC (popup_storage_set_view_close_button_clicked), - shell_view); -} - -static void storage_set_view_box_map_cb (GtkWidget *widget, void *data) { @@ -231,6 +217,29 @@ storage_set_view_box_map_cb (GtkWidget *widget, } static void +disconnect_popup_signals (EShellView *shell_view) +{ + EShellViewPrivate *priv; + + puts (__FUNCTION__); + + priv = shell_view->priv; + + gtk_signal_disconnect_by_func (GTK_OBJECT (priv->storage_set_view_box), + GTK_SIGNAL_FUNC (storage_set_view_box_button_release_event_cb), + shell_view); + gtk_signal_disconnect_by_func (GTK_OBJECT (priv->storage_set_view), + GTK_SIGNAL_FUNC (storage_set_view_box_button_release_event_cb), + shell_view); + gtk_signal_disconnect_by_func (GTK_OBJECT (priv->storage_set_title_bar), + GTK_SIGNAL_FUNC (popup_storage_set_view_close_button_clicked), + shell_view); + gtk_signal_disconnect_by_func (GTK_OBJECT (priv->storage_set_view_box), + GTK_SIGNAL_FUNC (storage_set_view_box_map_cb), + shell_view); +} + +static void pop_up_folder_bar (EShellView *shell_view) { EShellViewPrivate *priv; |