[gtk/wip/muktupavels/info-bar-reftest] fix info-bar-message-types.ui reftest
- From: Alberts Muktupāvels <muktupavels src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gtk/wip/muktupavels/info-bar-reftest] fix info-bar-message-types.ui reftest
- Date: Thu, 13 Feb 2020 14:36:31 +0000 (UTC)
commit 4d4c6f08077ce3d0377ab73874b12a8bbf1c2c38
Author: Alberts Muktupāvels <alberts muktupavels gmail com>
Date: Thu Feb 13 16:32:14 2020 +0200
fix info-bar-message-types.ui reftest
gtk/gtkinfobar.c | 13 ++++++++-----
1 file changed, 8 insertions(+), 5 deletions(-)
---
diff --git a/gtk/gtkinfobar.c b/gtk/gtkinfobar.c
index 232e8b35f0..6760f8d15b 100644
--- a/gtk/gtkinfobar.c
+++ b/gtk/gtkinfobar.c
@@ -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
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]