summaryrefslogtreecommitdiff
path: root/gtk/gtknotebook.c
diff options
context:
space:
mode:
authorOwen Taylor <otaylor@redhat.com>2002-11-14 04:46:20 +0000
committerOwen Taylor <otaylor@src.gnome.org>2002-11-14 04:46:20 +0000
commita03f567e2fa6cee5cca419f03a967223aa8b131b (patch)
tree677c765e989d2f16aea66c7c0c3017846792d44a /gtk/gtknotebook.c
parent98aaac018d31c7e860969eaba7617a5113067645 (diff)
downloadgtk+-a03f567e2fa6cee5cca419f03a967223aa8b131b.tar.gz
Change so that updates of selection don't take effect immediately, but
Wed Nov 13 17:03:19 2002 Owen Taylor <otaylor@redhat.com> * gtk/gtkcombo.c: Change so that updates of selection don't take effect immediately, but only when popdown is closed with a button release within the combo or Return/Enter. * gtk/gtkcombo.c: Support Alt-Down to pop down the combo, Alt-Up to pop it back up, Space to immediately select current item. * gtk/gtkcombo.c (gtk_combo_entry_key_press): Don't move the focus when we get to the ends of the list entries. * gtk/gtkcombo.c: Fix handling of state in ad-hoc keybinding handling to be a bit more reasonable. * gtk/gtkcombo.c (gtk_combo_popup_list): Clear last_focus_child when no item is selected so we don't start focusing from some random place. * gtk/gtkcombo.c (gtk_combo_init): Make gtk_combo_set_use_arrows_always, enable_arrows_always properties have no effect, they were an awful idea. Always behave as if enable_arrows_always is true. * gtk/gtknotebook.c: Fix a warning.
Diffstat (limited to 'gtk/gtknotebook.c')
-rw-r--r--gtk/gtknotebook.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/gtk/gtknotebook.c b/gtk/gtknotebook.c
index 572d3bc5c0..21e4b430a9 100644
--- a/gtk/gtknotebook.c
+++ b/gtk/gtknotebook.c
@@ -1610,7 +1610,7 @@ gtk_notebook_button_press (GtkWidget *widget,
(y <= (page->allocation.y + page->allocation.height)))
{
gboolean page_changed = page != notebook->cur_page;
- gboolean was_focus = gtk_widget_is_focus (notebook);
+ gboolean was_focus = gtk_widget_is_focus (widget);
gtk_notebook_switch_focus_tab (notebook, children);
gtk_widget_grab_focus (widget);