diff options
Diffstat (limited to 'shell')
-rw-r--r-- | shell/ChangeLog | 10 | ||||
-rw-r--r-- | shell/e-shell-view.c | 26 |
2 files changed, 26 insertions, 10 deletions
diff --git a/shell/ChangeLog b/shell/ChangeLog index 7f6d2a7ba6..10af81fa5d 100644 --- a/shell/ChangeLog +++ b/shell/ChangeLog @@ -1,3 +1,13 @@ +2000-09-29 Ettore Perazzoli <ettore@helixcode.com> + + * e-shell-view.c (popup_storage_set_view_button_clicked): Renamed + from `popup_storage_set_view_close_button_clicked'. + (storage_set_view_box_map_cb): Updated accordingly. Connect to + "button_clicked" instead of "close_button_clicked". + (disconnect_popup_signals): Updated accordingly. + (e_shell_view_set_folder_bar_mode): Update the button mode of the + title bar according to the folder bar mode. + 2000-09-28 Dan Winship <danw@helixcode.com> * e-corba-storage.c (impl_StorageListener_new_folder): Don't print diff --git a/shell/e-shell-view.c b/shell/e-shell-view.c index 200b5dc99a..1ce2f82990 100644 --- a/shell/e-shell-view.c +++ b/shell/e-shell-view.c @@ -186,8 +186,8 @@ storage_set_view_box_button_release_event_cb (GtkWidget *widget, } static void -popup_storage_set_view_close_button_clicked (ETitleBar *title_bar, - void *data) +popup_storage_set_view_button_clicked (ETitleBar *title_bar, + void *data) { EShellView *shell_view; EShellViewPrivate *priv; @@ -231,8 +231,8 @@ storage_set_view_box_map_cb (GtkWidget *widget, GTK_SIGNAL_FUNC (storage_set_view_box_button_release_event_cb), shell_view); gtk_signal_connect (GTK_OBJECT (priv->storage_set_view), "button_release_event", GTK_SIGNAL_FUNC (storage_set_view_box_button_release_event_cb), shell_view); - gtk_signal_connect (GTK_OBJECT (priv->storage_set_title_bar), "close_button_clicked", - GTK_SIGNAL_FUNC (popup_storage_set_view_close_button_clicked), shell_view); + gtk_signal_connect (GTK_OBJECT (priv->storage_set_title_bar), "button_clicked", + GTK_SIGNAL_FUNC (popup_storage_set_view_button_clicked), shell_view); } static void @@ -249,7 +249,7 @@ disconnect_popup_signals (EShellView *shell_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), + GTK_SIGNAL_FUNC (popup_storage_set_view_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), @@ -352,10 +352,10 @@ folder_selected_cb (EStorageSetView *storage_set_view, popdown_transient_folder_bar (shell_view); } -/* Callback called when the close button on the tree's title bar is clicked. */ +/* Callback called when the button on the tree's title bar is clicked. */ static void -storage_set_view_close_button_clicked_cb (ETitleBar *title_bar, - void *data) +storage_set_view_button_clicked_cb (ETitleBar *title_bar, + void *data) { EShellView *shell_view; @@ -410,8 +410,8 @@ setup_storage_set_subwindow (EShellView *shell_view) gtk_box_pack_start (GTK_BOX (vbox), priv->storage_set_title_bar, FALSE, FALSE, 0); gtk_box_pack_start (GTK_BOX (vbox), scrolled_window, TRUE, TRUE, 0); - gtk_signal_connect (GTK_OBJECT (priv->storage_set_title_bar), "close_button_clicked", - GTK_SIGNAL_FUNC (storage_set_view_close_button_clicked_cb), shell_view); + gtk_signal_connect (GTK_OBJECT (priv->storage_set_title_bar), "button_clicked", + GTK_SIGNAL_FUNC (storage_set_view_button_clicked_cb), shell_view); gtk_widget_show (vbox); gtk_widget_show (storage_set_view); @@ -1321,6 +1321,9 @@ e_shell_view_set_folder_bar_mode (EShellView *shell_view, e_paned_set_position (E_PANED (priv->view_hpaned), priv->view_hpaned_position); } + e_title_bar_set_button_mode (E_TITLE_BAR (priv->storage_set_title_bar), + E_TITLE_BAR_BUTTON_MODE_CLOSE); + e_shell_folder_title_bar_set_clickable (E_SHELL_FOLDER_TITLE_BAR (priv->view_title_bar), FALSE); } else { @@ -1331,6 +1334,9 @@ e_shell_view_set_folder_bar_mode (EShellView *shell_view, e_paned_set_position (E_PANED (priv->view_hpaned), 0); } + e_title_bar_set_button_mode (E_TITLE_BAR (priv->storage_set_title_bar), + E_TITLE_BAR_BUTTON_MODE_PIN); + e_shell_folder_title_bar_set_clickable (E_SHELL_FOLDER_TITLE_BAR (priv->view_title_bar), TRUE); } |