add a mnemonic_activate function to option menu.

Tue Oct 16 15:12:26 2001  Jonathan Blandford  <jrb@redhat.com>

	* gtk/gtkoptionmenu.c (gtk_option_menu_mnemonic_activate): add a
	mnemonic_activate function to option menu.
This commit is contained in:
Jonathan Blandford 2001-10-16 19:45:34 +00:00 committed by Jonathan Blandford
parent ba938d8ab5
commit 3612439d21
8 changed files with 46 additions and 0 deletions

View File

@ -1,3 +1,8 @@
Tue Oct 16 15:12:26 2001 Jonathan Blandford <jrb@redhat.com>
* gtk/gtkoptionmenu.c (gtk_option_menu_mnemonic_activate): add a
mnemonic_activate function to option menu.
2001-10-15 Murray Cumming <murrayc@usa.net
* gtk/gtkinputdialog.c, gtk/gtktoolbar.c, gtk/gtkwidget.c:

View File

@ -1,3 +1,8 @@
Tue Oct 16 15:12:26 2001 Jonathan Blandford <jrb@redhat.com>
* gtk/gtkoptionmenu.c (gtk_option_menu_mnemonic_activate): add a
mnemonic_activate function to option menu.
2001-10-15 Murray Cumming <murrayc@usa.net
* gtk/gtkinputdialog.c, gtk/gtktoolbar.c, gtk/gtkwidget.c:

View File

@ -1,3 +1,8 @@
Tue Oct 16 15:12:26 2001 Jonathan Blandford <jrb@redhat.com>
* gtk/gtkoptionmenu.c (gtk_option_menu_mnemonic_activate): add a
mnemonic_activate function to option menu.
2001-10-15 Murray Cumming <murrayc@usa.net
* gtk/gtkinputdialog.c, gtk/gtktoolbar.c, gtk/gtkwidget.c:

View File

@ -1,3 +1,8 @@
Tue Oct 16 15:12:26 2001 Jonathan Blandford <jrb@redhat.com>
* gtk/gtkoptionmenu.c (gtk_option_menu_mnemonic_activate): add a
mnemonic_activate function to option menu.
2001-10-15 Murray Cumming <murrayc@usa.net
* gtk/gtkinputdialog.c, gtk/gtktoolbar.c, gtk/gtkwidget.c:

View File

@ -1,3 +1,8 @@
Tue Oct 16 15:12:26 2001 Jonathan Blandford <jrb@redhat.com>
* gtk/gtkoptionmenu.c (gtk_option_menu_mnemonic_activate): add a
mnemonic_activate function to option menu.
2001-10-15 Murray Cumming <murrayc@usa.net
* gtk/gtkinputdialog.c, gtk/gtktoolbar.c, gtk/gtkwidget.c:

View File

@ -1,3 +1,8 @@
Tue Oct 16 15:12:26 2001 Jonathan Blandford <jrb@redhat.com>
* gtk/gtkoptionmenu.c (gtk_option_menu_mnemonic_activate): add a
mnemonic_activate function to option menu.
2001-10-15 Murray Cumming <murrayc@usa.net
* gtk/gtkinputdialog.c, gtk/gtktoolbar.c, gtk/gtkwidget.c:

View File

@ -1,3 +1,8 @@
Tue Oct 16 15:12:26 2001 Jonathan Blandford <jrb@redhat.com>
* gtk/gtkoptionmenu.c (gtk_option_menu_mnemonic_activate): add a
mnemonic_activate function to option menu.
2001-10-15 Murray Cumming <murrayc@usa.net
* gtk/gtkinputdialog.c, gtk/gtktoolbar.c, gtk/gtkwidget.c:

View File

@ -79,6 +79,8 @@ static void gtk_option_menu_position (GtkMenu *menu,
gpointer user_data);
static void gtk_option_menu_show_all (GtkWidget *widget);
static void gtk_option_menu_hide_all (GtkWidget *widget);
static gboolean gtk_option_menu_mnemonic_activate (GtkWidget *widget,
gboolean group_cycling);
static GtkType gtk_option_menu_child_type (GtkContainer *container);
static gint gtk_option_menu_scroll_event (GtkWidget *widget,
GdkEventScroll *event);
@ -152,6 +154,7 @@ gtk_option_menu_class_init (GtkOptionMenuClass *class)
widget_class->scroll_event = gtk_option_menu_scroll_event;
widget_class->show_all = gtk_option_menu_show_all;
widget_class->hide_all = gtk_option_menu_hide_all;
widget_class->mnemonic_activate = gtk_option_menu_mnemonic_activate;
container_class->child_type = gtk_option_menu_child_type;
@ -886,6 +889,14 @@ gtk_option_menu_hide_all (GtkWidget *widget)
gtk_container_foreach (container, (GtkCallback) gtk_widget_hide_all, NULL);
}
static gboolean
gtk_option_menu_mnemonic_activate (GtkWidget *widget,
gboolean group_cycling)
{
gtk_widget_grab_focus (widget);
return TRUE;
}
static gint
gtk_option_menu_scroll_event (GtkWidget *widget,
GdkEventScroll *event)