[gnome-panel] [panel] Use a native window for PanelWidget to fix uglyness on unhide



commit e3a52eb80913b5f4a1d39429cf2321d4870f2fea
Author: Vincent Untz <vuntz gnome org>
Date:   Mon Oct 5 14:49:55 2009 +0200

    [panel] Use a native window for PanelWidget to fix uglyness on unhide
    
    Panels that are auto-hidden and with a colored background are not
    looking good during the unhide. Using a native window fixes this.
    
    Thanks to Alex Larsson.

 gnome-panel/panel-widget.c |    4 ++++
 1 files changed, 4 insertions(+), 0 deletions(-)
---
diff --git a/gnome-panel/panel-widget.c b/gnome-panel/panel-widget.c
index 6780c4d..02babf7 100644
--- a/gnome-panel/panel-widget.c
+++ b/gnome-panel/panel-widget.c
@@ -1590,6 +1590,10 @@ panel_widget_realize (GtkWidget *widget)
 
 	GTK_WIDGET_CLASS (panel_widget_parent_class)->realize (widget);
 
+	/* For auto-hidden panels with a colored background, we need native
+	 * windows to avoid some uglyness on unhide */
+	gdk_window_ensure_native (widget->window);
+
 	panel_background_set_default_style (
 		&panel->background,
 		&widget->style->bg [GTK_WIDGET_STATE (widget)],



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