libgnomeui patch



Basically find menu pos routine would never find the right item when the
item had an accelerator.

Not sure this is the right approach, but it now works for me (filed as
bug 63785).

-JP
-- 
--
=======================================================================
JP Rosevear				jpr ximian com
Ximian Inc.				http://www.ximian.com
? menu-remove.patch
? po/po2tbl.sed.in
Index: libgnomeui/ChangeLog
===================================================================
RCS file: /cvs/gnome/libgnomeui/libgnomeui/ChangeLog,v
retrieving revision 1.1713
diff -u -r1.1713 ChangeLog
--- libgnomeui/ChangeLog	2001/11/01 13:12:41	1.1713
+++ libgnomeui/ChangeLog	2001/11/05 05:42:47
@@ -1,3 +1,8 @@
+2001-11-01  JP Rosevear  <jpr ximian com>
+
+	* gnome-app-helper.c (gnome_app_find_menu_pos): less than or equal
+	since the label can contain an accelerator
+
 2001-11-01  Mark McLoughlin  <mark skynet ie>
 
 	* gnome-app-helper.c: (help_view_display_callback): update for
Index: libgnomeui/gnome-app-helper.c
===================================================================
RCS file: /cvs/gnome/libgnomeui/libgnomeui/gnome-app-helper.c,v
retrieving revision 1.178
diff -u -r1.178 gnome-app-helper.c
--- libgnomeui/gnome-app-helper.c	2001/11/01 13:12:41	1.178
+++ libgnomeui/gnome-app-helper.c	2001/11/05 05:42:47
@@ -2226,7 +2226,7 @@
 			label = GTK_LABEL (item->child)->label;
 		else
 			label = NULL; /* something that we just can't handle */
-		if (label && (stripped_path_len == strlen (label)) &&
+		if (label && (stripped_path_len <= strlen (label)) &&
 		    (g_strncmp_ignore_char (transl, label, path_len, '_') == 0)){
 			if (name_end == NULL) {
 				*pos = p;


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