nautilus r15170 - in trunk: . src/file-manager



Author: alexl
Date: Wed Apr  8 09:39:35 2009
New Revision: 15170
URL: http://svn.gnome.org/viewvc/nautilus?rev=15170&view=rev

Log:
2009-04-08  Alexander Larsson  <alexl redhat com>

	* src/file-manager/fm-directory-view.c:
	(add_script_to_scripts_menus):
	Use gtk_action_group_add_action_with_accel so that we
	allow users to define key shortcuts for scripts.

	Patch from Holger Berndt <berndth gmx de>


Modified:
   trunk/ChangeLog
   trunk/src/file-manager/fm-directory-view.c

Modified: trunk/src/file-manager/fm-directory-view.c
==============================================================================
--- trunk/src/file-manager/fm-directory-view.c	(original)
+++ trunk/src/file-manager/fm-directory-view.c	Wed Apr  8 09:39:35 2009
@@ -5026,7 +5026,7 @@
 				 escaped_label,
 				 tip,
 				 NULL);
-	
+
 	pixbuf = get_menu_icon_for_file (file);
 	if (pixbuf != NULL) {
 		g_object_set_data_full (G_OBJECT (action), "menu-icon",
@@ -5036,13 +5036,13 @@
 
 	g_signal_connect_data (action, "activate",
 			       G_CALLBACK (run_script_callback),
-			       launch_parameters, 
+			       launch_parameters,
 			       (GClosureNotify)script_launch_parameters_free, 0);
-	
-	gtk_action_group_add_action (directory_view->details->scripts_action_group,
-				     action);
+
+	gtk_action_group_add_action_with_accel (directory_view->details->scripts_action_group,
+						action, NULL);
 	g_object_unref (action);
-	
+
 	ui_manager = nautilus_window_info_get_ui_manager (directory_view->details->window);
 
 	gtk_ui_manager_add_ui (ui_manager,



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]