GitLab repository storage has been migrated to hashed layout. Please contact Infrastructure team if you notice any issues with repositories or hooks.

Commit 53f34ebc authored by Timm Bäder's avatar Timm Bäder 🤔 Committed by Michael Natterer

Chain up in some size-allocate implementations

The default implementation does just the right thing for most widgets.
parent 64a93c60
......@@ -334,7 +334,7 @@ gimp_circle_size_allocate (GtkWidget *widget,
{
GimpCircle *circle = GIMP_CIRCLE (widget);
gtk_widget_set_allocation (widget, allocation);
GTK_WIDGET_CLASS (parent_class)->size_allocate (widget, allocation);
if (gtk_widget_get_realized (widget))
gdk_window_move_resize (circle->priv->event_window,
......
......@@ -210,14 +210,7 @@ gimp_overlay_box_size_allocate (GtkWidget *widget,
GimpOverlayBox *box = GIMP_OVERLAY_BOX (widget);
GList *list;
gtk_widget_set_allocation (widget, allocation);
if (gtk_widget_get_realized (widget))
gdk_window_move_resize (gtk_widget_get_window (widget),
allocation->x,
allocation->y,
allocation->width,
allocation->height);
GTK_WIDGET_CLASS (parent_class)->size_allocate (widget, allocation);
for (list = box->children; list; list = g_list_next (list))
gimp_overlay_child_size_allocate (box, list->data);
......
......@@ -376,7 +376,7 @@ gimp_view_size_allocate (GtkWidget *widget,
allocation->width = width;
allocation->height = height;
gtk_widget_set_allocation (widget, allocation);
GTK_WIDGET_CLASS (parent_class)->size_allocate (widget, allocation);
if (gtk_widget_get_realized (widget))
gdk_window_move_resize (view->event_window,
......
......@@ -343,8 +343,7 @@ gimp_color_area_size_allocate (GtkWidget *widget,
{
GimpColorArea *area = GIMP_COLOR_AREA (widget);
if (GTK_WIDGET_CLASS (parent_class)->size_allocate)
GTK_WIDGET_CLASS (parent_class)->size_allocate (widget, allocation);
GTK_WIDGET_CLASS (parent_class)->size_allocate (widget, allocation);
if (allocation->width != area->width ||
allocation->height != area->height)
......
......@@ -149,7 +149,7 @@ gimp_frame_size_allocate (GtkWidget *widget,
GtkWidget *child = gtk_bin_get_child (GTK_BIN (widget));
GtkAllocation child_allocation;
gtk_widget_set_allocation (widget, allocation);
GTK_WIDGET_CLASS (parent_class)->size_allocate (widget, allocation);
gimp_frame_child_allocate (frame, &child_allocation);
......
......@@ -863,7 +863,7 @@ gimp_ruler_size_allocate (GtkWidget *widget,
resized = (widget_allocation.width != allocation->width ||
widget_allocation.height != allocation->height);
gtk_widget_set_allocation (widget, allocation);
GTK_WIDGET_CLASS (parent_class)->size_allocate (widget, allocation);
if (gtk_widget_get_realized (widget))
{
......
......@@ -353,7 +353,7 @@ gimp_color_wheel_size_allocate (GtkWidget *widget,
gint focus_width;
gint focus_pad;
gtk_widget_set_allocation (widget, allocation);
GTK_WIDGET_CLASS (parent_class)->size_allocate (widget, allocation);
gtk_widget_style_get (widget,
"focus-line-width", &focus_width,
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment