No popup menu on the button

This commit is contained in:
Matthias Clasen 2012-01-31 00:39:00 -05:00
parent 9b81322409
commit 9161119329

View File

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