[gtk+/wip/colorchooser-v2: 11/84] No popup menu on the button
- From: Cosimo Cecchi <cosimoc src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gtk+/wip/colorchooser-v2: 11/84] No popup menu on the button
- Date: Tue, 14 Feb 2012 19:05:45 +0000 (UTC)
commit 4cd31da5811a1ce3f14c68008fc34358637ac40c
Author: Matthias Clasen <mclasen redhat com>
Date: Tue Jan 31 00:39:00 2012 -0500
No popup menu on the button
gtk/gtkcolorswatch.c | 3 ++-
1 files changed, 2 insertions(+), 1 deletions(-)
---
diff --git a/gtk/gtkcolorswatch.c b/gtk/gtkcolorswatch.c
index bf5edf6..4211f60 100644
--- a/gtk/gtkcolorswatch.c
+++ b/gtk/gtkcolorswatch.c
@@ -451,7 +451,8 @@ swatch_button_press (GtkWidget *widget,
gtk_widget_grab_focus (GTK_WIDGET (swatch));
- if (gdk_event_triggers_context_menu ((GdkEvent *) event))
+ if (gdk_event_triggers_context_menu ((GdkEvent *) event) &&
+ swatch->priv->has_color)
{
do_popup (widget, event);
return TRUE;
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]