aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorLarry Ewing <lewing@ximian.com>2002-02-28 04:17:08 +0800
committerLarry Ewing <lewing@src.gnome.org>2002-02-28 04:17:08 +0800
commit9cf2e390356256917fe31ae544e39dfc35a879ce (patch)
tree5283f48516990513c855c753fcf2d257455e1cdd
parent4f97b16f9c87fd365e2bc6d1ce37b34a65fcb71d (diff)
downloadgsoc2013-evolution-9cf2e390356256917fe31ae544e39dfc35a879ce.tar.gz
gsoc2013-evolution-9cf2e390356256917fe31ae544e39dfc35a879ce.tar.zst
gsoc2013-evolution-9cf2e390356256917fe31ae544e39dfc35a879ce.zip
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
-rw-r--r--widgets/ChangeLog5
-rw-r--r--widgets/misc/e-combo-button.c6
2 files changed, 9 insertions, 2 deletions
diff --git a/widgets/ChangeLog b/widgets/ChangeLog
index 8f24782991..51047e0201 100644
--- a/widgets/ChangeLog
+++ b/widgets/ChangeLog
@@ -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
diff --git a/widgets/misc/e-combo-button.c b/widgets/misc/e-combo-button.c
index e6634b5c86..5277180f7d 100644
--- a/widgets/misc/e-combo-button.c
+++ b/widgets/misc/e-combo-button.c
@@ -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));