mirror of
https://gitlab.gnome.org/GNOME/gtk.git
synced 2025-01-07 11:20:09 +00:00
widget: Move functions around
Copy them further up so that we can use them there in the next commit.
This commit is contained in:
parent
e85f1e176a
commit
170c25a9d2
@ -3080,6 +3080,36 @@ gtk_widget_destroyed (GtkWidget *widget,
|
||||
*widget_pointer = NULL;
|
||||
}
|
||||
|
||||
static void
|
||||
gtk_widget_update_paintables (GtkWidget *widget)
|
||||
{
|
||||
GtkWidgetPrivate *priv = gtk_widget_get_instance_private (widget);
|
||||
GSList *l;
|
||||
|
||||
for (l = priv->paintables; l; l = l->next)
|
||||
gtk_widget_paintable_update_image (l->data);
|
||||
}
|
||||
|
||||
static void
|
||||
gtk_widget_push_paintables (GtkWidget *widget)
|
||||
{
|
||||
GtkWidgetPrivate *priv = gtk_widget_get_instance_private (widget);
|
||||
GSList *l;
|
||||
|
||||
for (l = priv->paintables; l; l = l->next)
|
||||
gtk_widget_paintable_push_snapshot_count (l->data);
|
||||
}
|
||||
|
||||
static void
|
||||
gtk_widget_pop_paintables (GtkWidget *widget)
|
||||
{
|
||||
GtkWidgetPrivate *priv = gtk_widget_get_instance_private (widget);
|
||||
GSList *l;
|
||||
|
||||
for (l = priv->paintables; l; l = l->next)
|
||||
gtk_widget_paintable_pop_snapshot_count (l->data);
|
||||
}
|
||||
|
||||
/**
|
||||
* gtk_widget_show:
|
||||
* @widget: a #GtkWidget
|
||||
@ -3940,36 +3970,6 @@ gtk_widget_get_surface_allocation (GtkWidget *widget,
|
||||
}
|
||||
}
|
||||
|
||||
static void
|
||||
gtk_widget_update_paintables (GtkWidget *widget)
|
||||
{
|
||||
GtkWidgetPrivate *priv = gtk_widget_get_instance_private (widget);
|
||||
GSList *l;
|
||||
|
||||
for (l = priv->paintables; l; l = l->next)
|
||||
gtk_widget_paintable_update_image (l->data);
|
||||
}
|
||||
|
||||
static void
|
||||
gtk_widget_push_paintables (GtkWidget *widget)
|
||||
{
|
||||
GtkWidgetPrivate *priv = gtk_widget_get_instance_private (widget);
|
||||
GSList *l;
|
||||
|
||||
for (l = priv->paintables; l; l = l->next)
|
||||
gtk_widget_paintable_push_snapshot_count (l->data);
|
||||
}
|
||||
|
||||
static void
|
||||
gtk_widget_pop_paintables (GtkWidget *widget)
|
||||
{
|
||||
GtkWidgetPrivate *priv = gtk_widget_get_instance_private (widget);
|
||||
GSList *l;
|
||||
|
||||
for (l = priv->paintables; l; l = l->next)
|
||||
gtk_widget_paintable_pop_snapshot_count (l->data);
|
||||
}
|
||||
|
||||
/**
|
||||
* gtk_widget_queue_draw:
|
||||
* @widget: a #GtkWidget
|
||||
|
Loading…
Reference in New Issue
Block a user