forked from AuroraMiddleware/gtk
toolbar: Remove gdk_flush() calls
It's not 2003 anymore.
This commit is contained in:
parent
0019178014
commit
594aae71e5
@ -144,7 +144,6 @@ struct _GtkToolbarPrivate
|
|||||||
guint animation : 1;
|
guint animation : 1;
|
||||||
guint is_sliding : 1;
|
guint is_sliding : 1;
|
||||||
guint need_rebuild : 1; /* whether the overflow menu should be regenerated */
|
guint need_rebuild : 1; /* whether the overflow menu should be regenerated */
|
||||||
guint need_sync : 1;
|
|
||||||
guint show_arrow : 1;
|
guint show_arrow : 1;
|
||||||
guint style_set : 1;
|
guint style_set : 1;
|
||||||
};
|
};
|
||||||
@ -895,12 +894,6 @@ slide_idle_handler (gpointer data)
|
|||||||
GtkToolbarPrivate *priv = toolbar->priv;
|
GtkToolbarPrivate *priv = toolbar->priv;
|
||||||
GList *list;
|
GList *list;
|
||||||
|
|
||||||
if (priv->need_sync)
|
|
||||||
{
|
|
||||||
gdk_flush ();
|
|
||||||
priv->need_sync = FALSE;
|
|
||||||
}
|
|
||||||
|
|
||||||
for (list = priv->content; list != NULL; list = list->next)
|
for (list = priv->content; list != NULL; list = list->next)
|
||||||
{
|
{
|
||||||
ToolbarContent *content = list->data;
|
ToolbarContent *content = list->data;
|
||||||
@ -1479,8 +1472,6 @@ gtk_toolbar_size_allocate (GtkWidget *widget,
|
|||||||
&start_allocation,
|
&start_allocation,
|
||||||
&goal_allocation,
|
&goal_allocation,
|
||||||
&alloc);
|
&alloc);
|
||||||
|
|
||||||
priv->need_sync = TRUE;
|
|
||||||
}
|
}
|
||||||
else
|
else
|
||||||
{
|
{
|
||||||
|
Loading…
Reference in New Issue
Block a user