[Xfce4-commits] <ristretto:stephan/gtk3> Show monitor-chooser content

Stephan Arts noreply at xfce.org
Fri May 4 20:42:12 CEST 2012


Updating branch refs/heads/stephan/gtk3
         to 7a5f6bca9c8ccb57f60b5519ff16d4fda3e6ac3d (commit)
       from a5cf891879ac9416650505bc827073f430868939 (commit)

commit 7a5f6bca9c8ccb57f60b5519ff16d4fda3e6ac3d
Author: Stephan Arts <stephan at xfce.org>
Date:   Fri May 4 20:40:41 2012 +0200

    Show monitor-chooser content

 src/monitor_chooser.c |   11 +++++++----
 1 files changed, 7 insertions(+), 4 deletions(-)

diff --git a/src/monitor_chooser.c b/src/monitor_chooser.c
index cdc6f95..bc5a416 100644
--- a/src/monitor_chooser.c
+++ b/src/monitor_chooser.c
@@ -195,6 +195,7 @@ rstto_monitor_chooser_realize(GtkWidget *widget)
     GdkWindowAttr attributes;
     gint attributes_mask;
     GtkAllocation allocation;
+    GdkWindow     *window;
 
     g_return_if_fail (widget != NULL);
     g_return_if_fail (RSTTO_IS_MONITOR_CHOOSER (widget));
@@ -213,12 +214,14 @@ rstto_monitor_chooser_realize(GtkWidget *widget)
     attributes.visual = gtk_widget_get_visual (widget);
 
     attributes_mask = GDK_WA_X | GDK_WA_Y | GDK_WA_VISUAL;
+    window = gdk_window_new (
+            gtk_widget_get_parent_window(widget),
+            &attributes,
+            attributes_mask);
     gtk_widget_set_window (
             widget,
-            gdk_window_new (
-                    gtk_widget_get_parent_window(widget),
-                    &attributes,
-                    attributes_mask));
+            window);
+    gdk_window_set_user_data (window, widget);
 }
 
 


More information about the Xfce4-commits mailing list