changeset 2997:0adc8c00fc57 trunk

correct right-clicked signal
author Tomasz Mon <desowin@gmail.com>
date Sat, 07 Jul 2007 12:17:13 +0200
parents a2eb970ca669
children c200d6764e91
files src/audacious/ui_skinned_textbox.c
diffstat 1 files changed, 4 insertions(+), 4 deletions(-) [+]
line wrap: on
line diff
--- a/src/audacious/ui_skinned_textbox.c	Fri Jul 06 13:19:16 2007 +0200
+++ b/src/audacious/ui_skinned_textbox.c	Sat Jul 07 12:17:13 2007 +0200
@@ -383,8 +383,6 @@
             } else
                 g_signal_emit(widget, textbox_signals[CLICKED], 0);
 
-        } else if (event->button == 3) {
-            g_signal_emit(widget, textbox_signals[RIGHT_CLICKED], 0);
         }
     } else if (event->type == GDK_2BUTTON_PRESS) {
         if (event->button == 1) {
@@ -400,9 +398,11 @@
 
     if (event->button == 1) {
         priv->is_dragging = FALSE;
+    } else if (event->button == 3) {
+        g_signal_emit(widget, textbox_signals[RIGHT_CLICKED], 0);
     }
 
-    return FALSE;
+    return TRUE;
 }
 
 static gboolean ui_skinned_textbox_motion_notify(GtkWidget *widget, GdkEventMotion *event) {
@@ -428,7 +428,7 @@
         }
     }
 
-  return FALSE;
+  return TRUE;
 }
 
 static void ui_skinned_textbox_toggle_doublesize(UiSkinnedTextbox *textbox) {