[libgd] header-bar: move/resize gdk window upon size allocate.



commit 5587fa63c10d037733f5218577b3002dd7a4a312
Author: Christian Hergert <christian hergert me>
Date:   Sun Mar 3 04:50:57 2013 -0800

    header-bar: move/resize gdk window upon size allocate.

 libgd/gd-header-bar.c |    7 +++++++
 1 files changed, 7 insertions(+), 0 deletions(-)
---
diff --git a/libgd/gd-header-bar.c b/libgd/gd-header-bar.c
index 0d5fcec..2560d9c 100644
--- a/libgd/gd-header-bar.c
+++ b/libgd/gd-header-bar.c
@@ -431,6 +431,13 @@ gd_header_bar_size_allocate (GtkWidget     *widget,
 
   gtk_widget_set_allocation (widget, allocation);
 
+  if (gtk_widget_get_realized (widget))
+    gdk_window_move_resize (priv->event_window,
+                            allocation->x,
+                            allocation->y,
+                            allocation->width,
+                            allocation->height);
+
   direction = gtk_widget_get_direction (widget);
   nvis_children = count_visible_children (bar);
   sizes = g_newa (GtkRequestedSize, nvis_children);


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]