summaryrefslogtreecommitdiff
path: root/gtk
diff options
context:
space:
mode:
authorBenjamin Otte <otte@redhat.com>2015-12-19 08:10:35 +0100
committerBenjamin Otte <otte@redhat.com>2016-01-11 17:05:22 +0100
commitc03fed4840bb0b07fb950f46e20e8c6b7dbb7c3e (patch)
tree2dadd264da669c47f1a8bac7a345b746a3e0618c /gtk
parent33b6e30f68fd9a50cec90f0eabe9a84d1c83f9e9 (diff)
downloadgtk+-c03fed4840bb0b07fb950f46e20e8c6b7dbb7c3e.tar.gz
notebook: Remove extra calls to gtk_notebook_pages_allocate()
The function is called during size_allocate() and doesn't need to be called elsewhere, as all other callers call queue_resize() already.
Diffstat (limited to 'gtk')
-rw-r--r--gtk/gtknotebook.c9
1 files changed, 0 insertions, 9 deletions
diff --git a/gtk/gtknotebook.c b/gtk/gtknotebook.c
index f2ed58ec29..570288259b 100644
--- a/gtk/gtknotebook.c
+++ b/gtk/gtknotebook.c
@@ -1632,8 +1632,6 @@ gtk_notebook_reorder_tab (GtkNotebook *notebook,
else
page_num = reorder_tab (notebook, child, priv->focus_tab);
- gtk_notebook_pages_allocate (notebook);
-
g_signal_emit (notebook,
notebook_signals[PAGE_REORDERED],
0,
@@ -3140,7 +3138,6 @@ gtk_notebook_stop_reorder (GtkNotebook *notebook)
hide_drag_window (notebook, priv, page);
priv->operation = DRAG_OPERATION_NONE;
- gtk_notebook_pages_allocate (notebook);
if (priv->dnd_timer)
{
@@ -3320,7 +3317,6 @@ scroll_notebook_timer (gpointer data)
if (first_tab && priv->cur_page)
{
priv->first_tab = first_tab;
- gtk_notebook_pages_allocate (notebook);
gdk_window_move_resize (priv->drag_window,
priv->drag_window_x,
@@ -3464,7 +3460,6 @@ gtk_notebook_motion_notify (GtkWidget *widget,
show_drag_window (notebook, priv, page, event->device);
}
- gtk_notebook_pages_allocate (notebook);
gdk_window_move_resize (priv->drag_window,
priv->drag_window_x,
priv->drag_window_y,
@@ -3745,7 +3740,6 @@ gtk_notebook_drag_begin (GtkWidget *widget,
g_assert (priv->cur_page != NULL);
priv->operation = DRAG_OPERATION_DETACH;
- gtk_notebook_pages_allocate (notebook);
tab_label = priv->detached_tab->tab_label;
@@ -8123,9 +8117,6 @@ gtk_notebook_reorder_child (GtkNotebook *notebook,
gtk_widget_child_notify (((GtkNotebookPage *) list->data)->child, "position");
}
- if (priv->show_tabs)
- gtk_notebook_pages_allocate (notebook);
-
gtk_widget_thaw_child_notify (child);
g_signal_emit (notebook,