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:
Larry Ewing
2002-02-27 20:17:08 +00:00
committed by Larry Ewing
parent 4f97b16f9c
commit 9cf2e39035
2 changed files with 9 additions and 2 deletions

View File

@ -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

View File

@ -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));