Bug#460802: popup info is not shown

2009-03-15 Thread John Lindgren
I believe the attached patch fixes the problem.

John
--- ui_skinned_playlist.0.c	2009-03-15 14:20:37.0 -0400
+++ ui_skinned_playlist.c	2009-03-15 14:31:18.0 -0400
@@ -975,13 +975,15 @@
 priv->drag_pos = nr;
 } else if (cfg.show_filepopup_for_tuple) {
 gint pos = ui_skinned_playlist_get_position(widget, event->x, event->y);
-gint cur_pos = GPOINTER_TO_INT(g_object_get_data(G_OBJECT(widget), "popup_position"));
-if (pos != cur_pos) {
-g_object_set_data(G_OBJECT(widget), "popup_position", GINT_TO_POINTER(pos));
-ui_skinned_playlist_popup_hide(widget);
-ui_skinned_playlist_popup_timer_stop(widget);
-if (pos != -1)
-ui_skinned_playlist_popup_timer_start(widget);
+if (pos == -1) {
+   ui_skinned_playlist_popup_hide (widget);
+   ui_skinned_playlist_popup_timer_stop (widget);
+} else if (! g_object_get_data ((GObject *) widget, "popup_active") ||
+ pos != (int) g_object_get_data ((GObject *) widget, "popup_position")) {
+   ui_skinned_playlist_popup_hide (widget);
+   ui_skinned_playlist_popup_timer_stop (widget);
+   g_object_set_data ((GObject *) widget, "popup_position", (void *) pos);
+   ui_skinned_playlist_popup_timer_start (widget);
 }
 }
 


Bug#460802: popup info is not shown

2009-03-15 Thread John Lindgren
I see this same problem in Audacious 1.5.1-4. More specifically, the
popup is only shown when I first rest the mouse cursor on a blank part
of the playlist and then move it on top of a filename. If I first rest
it outside the Audacious window or outside the playlist and then move it
directly on top of a filename, the popup is not shown.

John




-- 
To UNSUBSCRIBE, email to debian-bugs-dist-requ...@lists.debian.org
with a subject of "unsubscribe". Trouble? Contact listmas...@lists.debian.org