Mercurial > audlegacy
diff src/audacious/ui_skinned_textbox.c @ 3358:7f6787eac9aa trunk
right click on textboxes without connected handler should bring up audacious menu
| author | Tomasz Mon <desowin@gmail.com> |
|---|---|
| date | Thu, 16 Aug 2007 19:20:11 +0200 |
| parents | 910c9296d6b3 |
| children | 46591501603e |
line wrap: on
line diff
--- a/src/audacious/ui_skinned_textbox.c Thu Aug 16 15:13:18 2007 +0200 +++ b/src/audacious/ui_skinned_textbox.c Thu Aug 16 19:20:11 2007 +0200 @@ -353,7 +353,9 @@ if (event->type == GDK_BUTTON_PRESS) { textbox = UI_SKINNED_TEXTBOX(widget); - if (event->button == 1) { + if (event->button == 3 && !g_signal_has_handler_pending(widget, textbox_signals[RIGHT_CLICKED], 0, TRUE)) + return FALSE; + else if (event->button == 1) { if (priv->scroll_allowed) { if ((priv->pixmap_width > textbox->width) && priv->is_scrollable) { priv->is_dragging = TRUE;
