[Xfce4-commits] <thunar:master> Force selection update on tab switch.
Nick Schermer
noreply at xfce.org
Tue Dec 18 19:56:02 CET 2012
Updating branch refs/heads/master
to ee452a639c16e18640696b868ab4922c0a44b43c (commit)
from 75b5e6f969dccad45cc033a542c81552eab5a076 (commit)
commit ee452a639c16e18640696b868ab4922c0a44b43c
Author: Nick Schermer <nick at xfce.org>
Date: Tue Dec 18 19:54:56 2012 +0100
Force selection update on tab switch.
TO make sure the standardview actions are up2date.
thunar/thunar-standard-view.c | 1 -
thunar/thunar-window.c | 3 +++
2 files changed, 3 insertions(+), 1 deletions(-)
diff --git a/thunar/thunar-standard-view.c b/thunar/thunar-standard-view.c
index e807296..7cdaadb 100644
--- a/thunar/thunar-standard-view.c
+++ b/thunar/thunar-standard-view.c
@@ -1017,7 +1017,6 @@ thunar_standard_view_realize (GtkWidget *widget)
/* we need update the selection state based on the clipboard content */
g_signal_connect_swapped (G_OBJECT (standard_view->clipboard), "changed",
G_CALLBACK (thunar_standard_view_selection_changed), standard_view);
- thunar_standard_view_selection_changed (standard_view);
/* determine the icon factory for the screen on which we are realized */
icon_theme = gtk_icon_theme_get_for_screen (gtk_widget_get_screen (widget));
diff --git a/thunar/thunar-window.c b/thunar/thunar-window.c
index f554d65..6c51a52 100644
--- a/thunar/thunar-window.c
+++ b/thunar/thunar-window.c
@@ -1456,6 +1456,9 @@ thunar_window_notebook_switch_page (GtkWidget *notebook,
/* integrate the standard view action in the ui */
thunar_component_set_ui_manager (THUNAR_COMPONENT (page), window->ui_manager);
+ /* update the actions */
+ thunar_standard_view_selection_changed (THUNAR_STANDARD_VIEW (page));
+
gtk_widget_grab_focus (page);
}
More information about the Xfce4-commits
mailing list