gnome-applets r10901 - trunk/mixer



Author: callum
Date: Fri Aug  8 23:49:56 2008
New Revision: 10901
URL: http://svn.gnome.org/viewvc/gnome-applets?rev=10901&view=rev

Log:
Revert window positionsing changes (second part of bug 456498).

Modified:
   trunk/mixer/ChangeLog
   trunk/mixer/applet.c

Modified: trunk/mixer/applet.c
==============================================================================
--- trunk/mixer/applet.c	(original)
+++ trunk/mixer/applet.c	Fri Aug  8 23:49:56 2008
@@ -612,9 +612,15 @@
   GtkWidget *widget = GTK_WIDGET (applet);
   gint x, y;
 
+  /* Get it in just about the right position so that it
+   * doesn't flicker to obviously when we reposition it. */
+  gnome_volume_applet_get_dock_position (applet, &x, &y);
+  gtk_window_move (GTK_WINDOW (applet->dock), x, y);
+
   gtk_widget_show_all (GTK_WIDGET (applet->dock));
 
-  /* Reposition. */
+  /* Reposition the window now that we know its actual size
+   * and can center it. */
   gnome_volume_applet_get_dock_position (applet, &x, &y);
   gtk_window_move (GTK_WINDOW (applet->dock), x, y);
 



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