? src/.gth-browser-ui.h.swp
Index: src/gth-browser-actions-callbacks.c
===================================================================
RCS file: /cvs/gnome/gthumb/src/gth-browser-actions-callbacks.c,v
retrieving revision 1.8
diff -u -p -r1.8 gth-browser-actions-callbacks.c
--- src/gth-browser-actions-callbacks.c	27 Jun 2005 20:58:45 -0000	1.8
+++ src/gth-browser-actions-callbacks.c	1 Jul 2005 10:40:02 -0000
@@ -320,13 +320,22 @@ gth_browser_activate_action_image_move (
 
 
 void
-gth_browser_activate_action_edit_rename_file (GtkAction *action,
-					      GthWindow  *window)
+gth_browser_activate_action_edit_rename_file (GtkAction  *action,
+					      GthBrowser *browser)
 {
 	GList *list;
+	int    length;
+
+	list = gth_window_get_file_list_selection (GTH_WINDOW (browser));
+
+	length = g_list_length (list);
+	g_return_if_fail (length >= 1);
+
+	if (length > 1)
+		dlg_rename_series (browser);
+	else
+		rename_file (GTK_WINDOW (browser), list);
 
-	list = gth_window_get_file_list_selection (window);
-	rename_file (GTK_WINDOW (window), list);
 	path_list_free (list);
 }
 
@@ -1872,15 +1881,6 @@ gth_browser_activate_action_tools_web_ex
 	if (gthumb_module_get ("dlg_web_exporter", (gpointer*) &module))
 		(*module) (browser);
 }
-
-
-void
-gth_browser_activate_action_tools_rename_series (GtkAction  *action,
-						 GthBrowser *browser)
-{
-	dlg_rename_series (browser);
-}
-
 
 void
 gth_browser_activate_action_tools_convert_format (GtkAction  *action,
Index: src/gth-browser-actions-callbacks.h
===================================================================
RCS file: /cvs/gnome/gthumb/src/gth-browser-actions-callbacks.h,v
retrieving revision 1.2
diff -u -p -r1.2 gth-browser-actions-callbacks.h
--- src/gth-browser-actions-callbacks.h	25 May 2005 21:14:46 -0000	1.2
+++ src/gth-browser-actions-callbacks.h	1 Jul 2005 10:40:02 -0000
@@ -90,7 +90,6 @@ DEFINE_ACTION(gth_browser_activate_actio
 DEFINE_ACTION(gth_browser_activate_action_tools_find_images)
 DEFINE_ACTION(gth_browser_activate_action_tools_index_image)
 DEFINE_ACTION(gth_browser_activate_action_tools_web_exporter)
-DEFINE_ACTION(gth_browser_activate_action_tools_rename_series)
 DEFINE_ACTION(gth_browser_activate_action_tools_convert_format)
 DEFINE_ACTION(gth_browser_activate_action_tools_find_duplicates)
 DEFINE_ACTION(gth_browser_activate_action_tools_jpeg_rotate)
Index: src/gth-browser-actions-entries.h
===================================================================
RCS file: /cvs/gnome/gthumb/src/gth-browser-actions-entries.h,v
retrieving revision 1.4
diff -u -p -r1.4 gth-browser-actions-entries.h
--- src/gth-browser-actions-entries.h	23 Jun 2005 19:53:14 -0000	1.4
+++ src/gth-browser-actions-entries.h	1 Jul 2005 10:40:02 -0000
@@ -356,11 +356,6 @@ static GtkActionEntry gth_browser_action
 	  " ",
 	  G_CALLBACK (gth_browser_activate_action_tools_web_exporter) },
 
-	{ "Tools_RenameSeries", NULL,
-	  N_("_Rename Series"), NULL,
-	  " ",
-	  G_CALLBACK (gth_browser_activate_action_tools_rename_series) },
-
 	{ "Tools_ConvertFormat", GTK_STOCK_CONVERT,
 	  N_("Convert F_ormat"), NULL,
 	  "Convert image format",
Index: src/gth-browser-ui.h
===================================================================
RCS file: /cvs/gnome/gthumb/src/gth-browser-ui.h,v
retrieving revision 1.6
diff -u -p -r1.6 gth-browser-ui.h
--- src/gth-browser-ui.h	23 Jun 2005 19:53:14 -0000	1.6
+++ src/gth-browser-ui.h	1 Jul 2005 10:40:02 -0000
@@ -170,7 +170,6 @@ static const gchar *main_ui_info = 
 "      <separator/>"
 "      <menuitem action='Tools_JPEGRotate'/>"
 "      <menuitem action='Tools_ConvertFormat'/>"
-"      <menuitem action='Tools_RenameSeries'/>"
 "      <menuitem action='Tools_ChangeDate'/>"
 "      <separator/>"
 "      <menuitem action='Tools_IndexImage'/>"
Index: src/gth-browser.c
===================================================================
RCS file: /cvs/gnome/gthumb/src/gth-browser.c,v
retrieving revision 1.14
diff -u -p -r1.14 gth-browser.c
--- src/gth-browser.c	27 Jun 2005 20:58:45 -0000	1.14
+++ src/gth-browser.c	1 Jul 2005 10:40:07 -0000
@@ -816,7 +816,7 @@ window_update_sensitivity (GthBrowser *b
 
 	set_action_sensitive (browser, "Edit_Undo", gth_window_get_can_undo (GTH_WINDOW (browser)));
 	set_action_sensitive (browser, "Edit_Redo", gth_window_get_can_redo (GTH_WINDOW (browser)));
-	set_action_sensitive (browser, "Edit_RenameFile", only_one_is_selected);
+	set_action_sensitive (browser, "Edit_RenameFile", sel_not_null);
 	set_action_sensitive (browser, "Edit_DuplicateFile", sel_not_null);
 	set_action_sensitive (browser, "Edit_DeleteFiles", sel_not_null);
 	set_action_sensitive (browser, "Edit_CopyFiles", sel_not_null);
