#59579: patch
- From: Kristian Rietveld <kristian planet nl>
- To: GTK Development list <gtk-devel-list gnome org>
- Cc: <otaylor redhat com>, <timj gtk org>
- Subject: #59579: patch
- Date: Fri, 5 Oct 2001 18:44:51 +0200 (CEST)
Hi,
Here's a patch which fixes #59579 (Scroll menus should remember last
position). ChangeLog:
Fri Oct 5 18:33:43 2001 Kristian Rietveld <kristian planet nl>
* gtk/gtkmenu.c (gtk_menu_popup): add a call to
gtk_menu_shell_select_item() to activate the last activated item.
Fixes bug #59579
Actual patch has been appended.
Ok to commit?
regards,
Kris
Index: gtkmenu.c
===================================================================
RCS file: /cvs/gnome/gtk+/gtk/gtkmenu.c,v
retrieving revision 1.73
diff -u -r1.73 gtkmenu.c
--- gtkmenu.c 2001/09/22 14:55:02 1.73
+++ gtkmenu.c 2001/10/05 15:27:39
@@ -629,6 +629,9 @@
gtk_widget_show (GTK_WIDGET (menu));
gtk_widget_show (menu->toplevel);
+ gtk_menu_shell_select_item (GTK_MENU_SHELL (menu),
+ gtk_menu_get_active (GTK_MENU (menu)));
+
if (current_event)
{
/* Also, if we're popping up from a key event, select the first
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]