Hi,
Here's a patch that makes undo/redo menu entry just display "Undo" /
"Redo", not "Undo: Nothing" / "Redo: Nothing".
Since menu entry is already insensitive, there's no point in saying
there's nothing to undo/redo.
Ok to commit ?
Emmanuel.
? config.status.lineno
? component/Gnumeric-embed.xml
? plugins/lotus-123/.lotus.c.swp
? po/stamp-it
? po-functions/mk.po
? src/.style-border.c.swp
? src/.wbc-gtk.c.swp
Index: src/wbc-gtk.c
===================================================================
RCS file: /cvs/gnome/gnumeric/src/wbc-gtk.c,v
retrieving revision 1.95
diff -u -p -r1.95 wbc-gtk.c
--- src/wbc-gtk.c 9 Aug 2006 21:06:00 -0000 1.95
+++ src/wbc-gtk.c 11 Aug 2006 14:25:25 -0000
@@ -894,23 +894,21 @@ wbc_gtk_set_action_label (WorkbookContro
GtkAction *a = gtk_action_group_get_action (gtk->actions, action);
if (prefix != NULL) {
- gchar *text;
- gboolean sensitive = TRUE;
-
- if (suffix == NULL) {
- suffix = _("Nothing");
- sensitive = FALSE;
- }
-
#ifdef USE_HILDON
- wbc_gtk_hildon_set_action_sensitive (gtk, action, sensitive);
+ wbc_gtk_hildon_set_action_sensitive (gtk, action, suffix != NULL);
#endif
- text = g_strdup_printf ("%s : %s", prefix, suffix);
- g_object_set (G_OBJECT (a),
- "label", text,
- "sensitive", sensitive,
- NULL);
- g_free (text);
+ if (suffix != NULL) {
+ gchar *text = g_strdup_printf ("%s: %s", prefix, suffix);
+ g_object_set (G_OBJECT (a),
+ "label", text,
+ "sensitive", TRUE,
+ NULL);
+ g_free (text);
+ } else
+ g_object_set (G_OBJECT (a),
+ "label", prefix,
+ "sensitive", FALSE,
+ NULL);
} else
g_object_set (G_OBJECT (a), "label", suffix, NULL);
_______________________________________________
gnumeric-list mailing list
[email protected]
http://mail.gnome.org/mailman/listinfo/gnumeric-list