[gnome-commander] tabs: execute view.close_all_tabs on clicked fs (previously: on active fs)
- From: Piotr Eljasiak <epiotr src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gnome-commander] tabs: execute view.close_all_tabs on clicked fs (previously: on active fs)
- Date: Tue, 4 Jan 2011 22:04:01 +0000 (UTC)
commit 088a29ef97f7219fe326c55be5eb789c8f07dea9
Author: Piotr Eljasiak <epiotr src gnome org>
Date: Tue Jan 4 23:03:20 2011 +0100
tabs: execute view.close_all_tabs on clicked fs (previously: on active fs)
src/gnome-cmd-file-selector.cc | 2 +-
src/gnome-cmd-user-actions.cc | 4 ++--
2 files changed, 3 insertions(+), 3 deletions(-)
---
diff --git a/src/gnome-cmd-file-selector.cc b/src/gnome-cmd-file-selector.cc
index 4617563..0f1c701 100644
--- a/src/gnome-cmd-file-selector.cc
+++ b/src/gnome-cmd-file-selector.cc
@@ -640,7 +640,7 @@ static gboolean on_notebook_button_pressed (GtkWidget *widget, GdkEventButton *e
gtk_menu_shell_append (GTK_MENU_SHELL (menu), menuitem);
menuitem = gtk_menu_item_new_with_mnemonic (_("Close _All Tabs"));
- g_signal_connect (menuitem, "activate", G_CALLBACK (view_close_all_tabs), NULL);
+ g_signal_connect (menuitem, "activate", G_CALLBACK (view_close_all_tabs), fs);
gtk_menu_shell_append (GTK_MENU_SHELL (menu), menuitem);
menuitem = gtk_menu_item_new_with_mnemonic (_("Close _Duplicate Tabs"));
diff --git a/src/gnome-cmd-user-actions.cc b/src/gnome-cmd-user-actions.cc
index 53b5925..4c1e1c3 100644
--- a/src/gnome-cmd-user-actions.cc
+++ b/src/gnome-cmd-user-actions.cc
@@ -1514,9 +1514,9 @@ void view_close_tab (GtkMenuItem *menuitem, gpointer page)
}
-void view_close_all_tabs (GtkMenuItem *menuitem, gpointer not_used)
+void view_close_all_tabs (GtkMenuItem *menuitem, gpointer file_selector)
{
- GnomeCmdFileSelector *fs = get_fs (ACTIVE);
+ GnomeCmdFileSelector *fs = file_selector ? GNOME_CMD_FILE_SELECTOR (file_selector) : get_fs (ACTIVE);
GnomeCmdNotebook *notebook = fs->notebook;
gint n = notebook->get_current_page();
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]