Author: benny
Date: 2006-11-26 14:59:38 +0000 (Sun, 26 Nov 2006)
New Revision: 23959

Modified:
   thunar/trunk/ChangeLog
   thunar/trunk/thunar/thunar-window.c
Log:
2006-11-26      Benedikt Meurer <[EMAIL PROTECTED]>

        * thunar/thunar-window.c(thunar_window_init): Add shortcuts <control>1,
          <control>2 and <control>3 to switch between icon, detailed list and
          compact list view. Bug #2600.




Modified: thunar/trunk/ChangeLog
===================================================================
--- thunar/trunk/ChangeLog      2006-11-25 22:02:41 UTC (rev 23958)
+++ thunar/trunk/ChangeLog      2006-11-26 14:59:38 UTC (rev 23959)
@@ -1,3 +1,9 @@
+2006-11-26     Benedikt Meurer <[EMAIL PROTECTED]>
+
+       * thunar/thunar-window.c(thunar_window_init): Add shortcuts <control>1,
+         <control>2 and <control>3 to switch between icon, detailed list and
+         compact list view. Bug #2600.
+
 2006-11-12     Benedikt Meurer <[EMAIL PROTECTED]>
 
        * thunar/thunar-launcher.c(thunar_launcher_dispose): Fix a possible

Modified: thunar/trunk/thunar/thunar-window.c
===================================================================
--- thunar/trunk/thunar/thunar-window.c 2006-11-25 22:02:41 UTC (rev 23958)
+++ thunar/trunk/thunar/thunar-window.c 2006-11-26 14:59:38 UTC (rev 23959)
@@ -606,21 +606,21 @@
    */
   radio_action = gtk_radio_action_new ("view-as-icons", _("View as _Icons"), 
_("Display folder content in an icon view"),
                                        NULL, THUNAR_TYPE_ICON_VIEW);
-  gtk_action_group_add_action (window->action_group, GTK_ACTION 
(radio_action));
+  gtk_action_group_add_action_with_accel (window->action_group, GTK_ACTION 
(radio_action), "<control>1");
   gtk_radio_action_set_group (radio_action, NULL);
   group = gtk_radio_action_get_group (radio_action);
   g_object_unref (G_OBJECT (radio_action));
 
   radio_action = gtk_radio_action_new ("view-as-detailed-list", _("View as 
_Detailed List"), _("Display folder content in a detailed list view"),
                                        NULL, THUNAR_TYPE_DETAILS_VIEW);
-  gtk_action_group_add_action (window->action_group, GTK_ACTION 
(radio_action));
+  gtk_action_group_add_action_with_accel (window->action_group, GTK_ACTION 
(radio_action), "<control>2");
   gtk_radio_action_set_group (radio_action, group);
   group = gtk_radio_action_get_group (radio_action);
   g_object_unref (G_OBJECT (radio_action));
 
   radio_action = gtk_radio_action_new ("view-as-compact-list", _("View as 
_Compact List"), _("Display folder content in a compact list view"),
                                        NULL, THUNAR_TYPE_COMPACT_VIEW);
-  gtk_action_group_add_action (window->action_group, GTK_ACTION 
(radio_action));
+  gtk_action_group_add_action_with_accel (window->action_group, GTK_ACTION 
(radio_action), "<control>3");
   gtk_radio_action_set_group (radio_action, group);
   group = gtk_radio_action_get_group (radio_action);
   g_object_unref (G_OBJECT (radio_action));

_______________________________________________
Xfce4-commits mailing list
[email protected]
http://foo-projects.org/mailman/listinfo/xfce4-commits

Reply via email to