Merge branch 'wip/muktupavels/info-bar-reftest' into 'gtk-3-24'

fix info-bar-message-types.ui reftest

See merge request GNOME/gtk!1428
This commit is contained in:
Matthias Clasen 2020-02-14 00:19:43 +00:00
commit 011dcf828b

View File

@ -375,8 +375,16 @@ static void
gtk_info_bar_size_allocate (GtkWidget *widget,
GtkAllocation *allocation)
{
GtkAllocation tmp_allocation;
GdkWindow *window;
tmp_allocation = *allocation;
tmp_allocation.x = 0;
tmp_allocation.y = 0;
GTK_WIDGET_CLASS (gtk_info_bar_parent_class)->size_allocate (widget,
&tmp_allocation);
gtk_widget_set_allocation (widget, allocation);
window = gtk_widget_get_window (widget);
@ -384,11 +392,6 @@ gtk_info_bar_size_allocate (GtkWidget *widget,
gdk_window_move_resize (window,
allocation->x, allocation->y,
allocation->width, allocation->height);
allocation->x = 0;
allocation->y = 0;
GTK_WIDGET_CLASS (gtk_info_bar_parent_class)->size_allocate (widget, allocation);
}
static void