diff options
author | Timm Bäder <mail@baedert.org> | 2017-02-08 09:00:29 +0100 |
---|---|---|
committer | Timm Bäder <mail@baedert.org> | 2017-03-31 09:50:39 +0200 |
commit | 43cdeee3c4a5486664e68394d08469c5a39770a3 (patch) | |
tree | 41a6e5acc22fcb59be2347a587ee5030a28fce40 /gtk/gtknotebook.c | |
parent | 2bab2048f9c44a11b8bc5328abbe63b8c3cb084c (diff) | |
download | gtk+-43cdeee3c4a5486664e68394d08469c5a39770a3.tar.gz |
widget: Save pointer to focus child
Do the same thing GtkContainer does.
Diffstat (limited to 'gtk/gtknotebook.c')
-rw-r--r-- | gtk/gtknotebook.c | 7 |
1 files changed, 2 insertions, 5 deletions
diff --git a/gtk/gtknotebook.c b/gtk/gtknotebook.c index 566f481deb..707bec6537 100644 --- a/gtk/gtknotebook.c +++ b/gtk/gtknotebook.c @@ -1436,7 +1436,7 @@ gtk_notebook_move_focus_out (GtkNotebook *notebook, GtkDirectionType effective_direction = get_effective_direction (notebook, direction_type); GtkWidget *toplevel; - if (gtk_container_get_focus_child (GTK_CONTAINER (notebook)) && effective_direction == GTK_DIR_UP) + if (gtk_widget_get_focus_child (GTK_WIDGET (notebook)) && effective_direction == GTK_DIR_UP) if (focus_tabs_in (notebook)) return; if (gtk_widget_is_focus (GTK_WIDGET (notebook)) && effective_direction == GTK_DIR_DOWN) @@ -4180,9 +4180,6 @@ gtk_notebook_focus (GtkWidget *widget, gint last_action; gboolean widget_is_focus; - GtkContainer *container; - - container = GTK_CONTAINER (widget); if (priv->tab_pos == GTK_POS_TOP || priv->tab_pos == GTK_POS_LEFT) @@ -4203,7 +4200,7 @@ gtk_notebook_focus (GtkWidget *widget, } widget_is_focus = gtk_widget_is_focus (widget); - old_focus_child = gtk_container_get_focus_child (container); + old_focus_child = gtk_widget_get_focus_child (widget); effective_direction = get_effective_direction (notebook, direction); |