diff options
Diffstat (limited to 'plugins')
-rw-r--r-- | plugins/gtkui/gtkplaylist.c | 2 | ||||
-rw-r--r-- | plugins/gtkui/gtkui.c | 5 |
2 files changed, 3 insertions, 4 deletions
diff --git a/plugins/gtkui/gtkplaylist.c b/plugins/gtkui/gtkplaylist.c index bf2a6e18..bf551e5a 100644 --- a/plugins/gtkui/gtkplaylist.c +++ b/plugins/gtkui/gtkplaylist.c @@ -1844,7 +1844,7 @@ gtkpl_songchanged_wrapper (int from, int to) { ft->from = from; ft->to = to; g_idle_add (update_win_title_idle, ft); - if (ft->to == -1 && ft->from != -1) { + if (ft->to == -1) { // redraw seekbar g_idle_add (redraw_seekbar_cb, NULL); } diff --git a/plugins/gtkui/gtkui.c b/plugins/gtkui/gtkui.c index 468ffcf4..85c819e7 100644 --- a/plugins/gtkui/gtkui.c +++ b/plugins/gtkui/gtkui.c @@ -27,8 +27,8 @@ #include "callbacks.h" #include "support.h" -#define trace(...) { fprintf(stderr, __VA_ARGS__); } -//#define trace(fmt,...) +//#define trace(...) { fprintf(stderr, __VA_ARGS__); } +#define trace(fmt,...) static DB_gui_t plugin; DB_functions_t *deadbeef; @@ -186,7 +186,6 @@ on_trayicon_activate (GtkWidget *widget, int y = deadbeef->conf_get_int ("mainwin.geometry.y", 40); int w = deadbeef->conf_get_int ("mainwin.geometry.w", 500); int h = deadbeef->conf_get_int ("mainwin.geometry.h", 300); - printf ("restore: %d %d %d %d\n", x, y, w, h); gtk_widget_show (mainwin); gtk_window_move (mainwin, x, y); gtk_window_resize (mainwin, w, h); |