mirror of
https://gitlab.gnome.org/GNOME/gtk.git
synced 2024-11-10 10:50:10 +00:00
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:
parent
ba938d8ab5
commit
3612439d21
@ -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:
|
||||
|
@ -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:
|
||||
|
@ -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:
|
||||
|
@ -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:
|
||||
|
@ -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:
|
||||
|
@ -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:
|
||||
|
@ -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:
|
||||
|
@ -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)
|
||||
|
Loading…
Reference in New Issue
Block a user