make a right click bring up the popup menu.
2002-02-27 Larry Ewing <lewing@ximian.com> * misc/e-combo-button.c (impl_button_press_event): make a right click bring up the popup menu. svn path=/trunk/; revision=15858
This commit is contained in:
@ -1,3 +1,8 @@
|
||||
2002-02-27 Larry Ewing <lewing@ximian.com>
|
||||
|
||||
* misc/e-combo-button.c (impl_button_press_event): make a right
|
||||
click bring up the popup menu.
|
||||
|
||||
2002-02-07 Christopher James Lahey <clahey@ximian.com>
|
||||
|
||||
* menus/gal-view-menus.c, menus/gal-view-menus.h
|
||||
|
@ -244,10 +244,12 @@ impl_button_press_event (GtkWidget *widget,
|
||||
combo_button = E_COMBO_BUTTON (widget);
|
||||
priv = combo_button->priv;
|
||||
|
||||
if (event->type == GDK_BUTTON_PRESS && event->button == 1) {
|
||||
if (event->type == GDK_BUTTON_PRESS &&
|
||||
(event->button == 1 || event->button == 3)) {
|
||||
GTK_BUTTON (widget)->button_down = TRUE;
|
||||
|
||||
if (event->x >= priv->arrow_pixmap->allocation.x) {
|
||||
if (event->button == 3 ||
|
||||
event->x >= priv->arrow_pixmap->allocation.x) {
|
||||
/* User clicked on the right side: pop up the menu. */
|
||||
gtk_button_pressed (GTK_BUTTON (widget));
|
||||
|
||||
|
Reference in New Issue
Block a user