Mercurial > audlegacy
comparison src/audacious/ui_skinned_textbox.c @ 3957:fed07be6b708
every other menu shows on button press..
| author | Tomasz Mon <desowin@gmail.com> |
|---|---|
| date | Fri, 16 Nov 2007 15:20:07 +0100 |
| parents | 8be86c0b040e |
| children | 1112f53ecc18 |
comparison
equal
deleted
inserted
replaced
| 3956:8be86c0b040e | 3957:fed07be6b708 |
|---|---|
| 361 priv->drag_x = event->x; | 361 priv->drag_x = event->x; |
| 362 } | 362 } |
| 363 } else | 363 } else |
| 364 g_signal_emit(widget, textbox_signals[CLICKED], 0); | 364 g_signal_emit(widget, textbox_signals[CLICKED], 0); |
| 365 | 365 |
| 366 } else if (event->button == 3) { | |
| 367 g_signal_emit(widget, textbox_signals[RIGHT_CLICKED], 0); | |
| 366 } else | 368 } else |
| 367 priv->is_dragging = FALSE; | 369 priv->is_dragging = FALSE; |
| 368 } else if (event->type == GDK_2BUTTON_PRESS) { | 370 } else if (event->type == GDK_2BUTTON_PRESS) { |
| 369 if (event->button == 1) { | 371 if (event->button == 1) { |
| 370 if (g_signal_has_handler_pending(widget, textbox_signals[DOUBLE_CLICKED], 0, TRUE)) | 372 if (g_signal_has_handler_pending(widget, textbox_signals[DOUBLE_CLICKED], 0, TRUE)) |
| 380 static gboolean ui_skinned_textbox_button_release(GtkWidget *widget, GdkEventButton *event) { | 382 static gboolean ui_skinned_textbox_button_release(GtkWidget *widget, GdkEventButton *event) { |
| 381 UiSkinnedTextboxPrivate *priv = UI_SKINNED_TEXTBOX_GET_PRIVATE(widget); | 383 UiSkinnedTextboxPrivate *priv = UI_SKINNED_TEXTBOX_GET_PRIVATE(widget); |
| 382 | 384 |
| 383 if (event->button == 1) { | 385 if (event->button == 1) { |
| 384 priv->is_dragging = FALSE; | 386 priv->is_dragging = FALSE; |
| 385 } else if (event->button == 3) { | |
| 386 g_signal_emit(widget, textbox_signals[RIGHT_CLICKED], 0); | |
| 387 } | 387 } |
| 388 | 388 |
| 389 return TRUE; | 389 return TRUE; |
| 390 } | 390 } |
| 391 | 391 |
