changeset 2354:fea1b8594cd8 trunk

[svn] - removed other obsolete (and annoying) gdk_window_set_hints calls
author giacomo
date Wed, 17 Jan 2007 04:09:20 -0800
parents 0fb258122933
children f03beaca8e81
files ChangeLog src/audacious/ui_main.c
diffstat 2 files changed, 11 insertions(+), 12 deletions(-) [+]
line wrap: on
line diff
--- a/ChangeLog	Wed Jan 17 03:11:48 2007 -0800
+++ b/ChangeLog	Wed Jan 17 04:09:20 2007 -0800
@@ -1,3 +1,11 @@
+2007-01-17 11:11:48 +0000  Giacomo Lozito <james@develia.org>
+  revision [3716]
+  - added audacious_menu_main_show(x,y,button,time) in util.h, convenience function to display the audacious main popup menu
+  trunk/src/audacious/ui_main.c |   10 ++++++++++
+  trunk/src/audacious/util.h    |    2 ++
+  2 files changed, 12 insertions(+)
+
+
 2007-01-17 10:24:15 +0000  William Pitcock <nenolod@sacredspiral.co.uk>
   revision [3714]
   - fix gconf backend
--- a/src/audacious/ui_main.c	Wed Jan 17 03:11:48 2007 -0800
+++ b/src/audacious/ui_main.c	Wed Jan 17 04:09:20 2007 -0800
@@ -2465,6 +2465,9 @@
         return;
     }
 
+    if (cfg.player_x != -1 && cfg.player_y != -1)
+        gtk_window_move(GTK_WINDOW(mainwin), cfg.player_x, cfg.player_y);
+
     gtk_widget_show_all(mainwin);
 
     if (nullmask)
@@ -2473,23 +2476,11 @@
       nullmask = NULL;
     }
 
-    gdk_window_set_hints(mainwin->window, 0, 0,
-                         !bmp_active_skin->properties.mainwin_width ? PLAYER_WIDTH :
-				bmp_active_skin->properties.mainwin_width,
-                         !bmp_active_skin->properties.mainwin_height ? PLAYER_HEIGHT :
-				bmp_active_skin->properties.mainwin_height,
-                         !bmp_active_skin->properties.mainwin_width ? PLAYER_WIDTH :
-				bmp_active_skin->properties.mainwin_width,
-                         !bmp_active_skin->properties.mainwin_height ? PLAYER_HEIGHT :
-				bmp_active_skin->properties.mainwin_height,
-                         GDK_HINT_MIN_SIZE | GDK_HINT_MAX_SIZE);
     gtk_window_resize(GTK_WINDOW(mainwin), 
                          !bmp_active_skin->properties.mainwin_width ? PLAYER_WIDTH :
 				bmp_active_skin->properties.mainwin_width,
                          !bmp_active_skin->properties.mainwin_height ? PLAYER_HEIGHT :
 				bmp_active_skin->properties.mainwin_height);
-    if (cfg.player_x != -1 && cfg.player_y != -1)
-        gtk_window_move(GTK_WINDOW(mainwin), cfg.player_x, cfg.player_y);
 
     draw_main_window(TRUE);