changeset 3230:cfb76302b468 trunk

fix unshading playlistwin when doubleclicking on textbox
author Tomasz Mon <desowin@gmail.com>
date Fri, 03 Aug 2007 22:51:04 +0200
parents 5e12e740c66c
children 2453bf125b4f 21c583c5b71d
files src/audacious/ui_skinned_textbox.c
diffstat 1 files changed, 4 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/src/audacious/ui_skinned_textbox.c	Fri Aug 03 22:28:18 2007 +0900
+++ b/src/audacious/ui_skinned_textbox.c	Fri Aug 03 22:51:04 2007 +0200
@@ -374,7 +374,10 @@
             priv->is_dragging = FALSE;
     } else if (event->type == GDK_2BUTTON_PRESS) {
         if (event->button == 1) {
-            g_signal_emit(widget, textbox_signals[DOUBLE_CLICKED], 0);
+           if (g_signal_has_handler_pending(widget, textbox_signals[DOUBLE_CLICKED], 0, TRUE))
+               g_signal_emit(widget, textbox_signals[DOUBLE_CLICKED], 0);
+           else
+               return FALSE;
         }
     }