changeset 2906:68f3b7ff4333 trunk

Remove pposition_broken global variable. It was never manipulated which means only one codepath was exectued.
author William Pitcock <nenolod@atheme.org>
date Thu, 28 Jun 2007 01:41:03 -0500
parents 084d367e3577
children 21b27e97bfb9
files src/audacious/main.c src/audacious/main.h src/audacious/ui_main.c
diffstat 3 files changed, 1 insertions(+), 10 deletions(-) [+]
line wrap: on
line diff
--- a/src/audacious/main.c	Tue Jun 26 17:38:43 2007 +0900
+++ b/src/audacious/main.c	Thu Jun 28 01:41:03 2007 -0500
@@ -391,8 +391,6 @@
 
 GList *dock_window_list = NULL;
 
-gboolean pposition_broken = FALSE;
-
 gboolean starting_up = TRUE;
 
 /* XXX: case-sensitivity is bad for lazy nenolods. :( -nenolod */
--- a/src/audacious/main.h	Tue Jun 26 17:38:43 2007 +0900
+++ b/src/audacious/main.h	Thu Jun 28 01:41:03 2007 -0500
@@ -161,7 +161,6 @@
 extern const guint n_chardet_detector_presets;
 
 extern GList *dock_window_list;
-extern gboolean pposition_broken;
 
 extern gboolean starting_up;
 
--- a/src/audacious/ui_main.c	Tue Jun 26 17:38:43 2007 +0900
+++ b/src/audacious/ui_main.c	Thu Jun 28 01:41:03 2007 -0500
@@ -1973,16 +1973,10 @@
     mainwin_set_shape_mask();
 
     if (cfg.show_wm_decorations) {
-        if (!pposition_broken && cfg.player_x != -1
-            && cfg.save_window_position)
+        if (cfg.player_x != -1 && cfg.save_window_position)
             gtk_window_move(GTK_WINDOW(mainwin), cfg.player_x, cfg.player_y);
 
         gtk_widget_show(mainwin);
-
-        if (pposition_broken && cfg.player_x != -1
-            && cfg.save_window_position)
-            gtk_window_move(GTK_WINDOW(mainwin), cfg.player_x, cfg.player_y);
-
         return;
     }