[gnome-settings-daemon/randr-osd: 59/60] Center the RANDR OSD window



commit b34871e458b945332ccca440f07ae6ba9bb0b9c4
Author: Federico Mena Quintero <federico novell com>
Date:   Wed Mar 3 16:43:34 2010 -0600

    Center the RANDR OSD window

 plugins/xrandr/gsd-xrandr-manager.c |    1 +
 1 files changed, 1 insertions(+), 0 deletions(-)
---
diff --git a/plugins/xrandr/gsd-xrandr-manager.c b/plugins/xrandr/gsd-xrandr-manager.c
index f744253..556a323 100644
--- a/plugins/xrandr/gsd-xrandr-manager.c
+++ b/plugins/xrandr/gsd-xrandr-manager.c
@@ -1209,6 +1209,7 @@ create_osd_window (GsdXrandrManager *manager)
         gsd_osd_window_set_auto_hide (GSD_OSD_WINDOW (priv->osd_window), FALSE);
         gtk_window_set_type_hint (GTK_WINDOW (priv->osd_window), GDK_WINDOW_TYPE_HINT_NORMAL);
         gtk_window_set_focus_on_map (GTK_WINDOW (priv->osd_window), TRUE);
+        gtk_window_set_position (GTK_WINDOW (priv->osd_window), GTK_WIN_POS_CENTER);
 
         box = gtk_hbox_new (TRUE, 12);
         gtk_container_add (GTK_CONTAINER (priv->osd_window), box);



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