[gtk+] color-editor: mark the GtkColorSwatch as not selectable



commit 039eb8dc04fb260d250a3afaf3119a251ef56b96
Author: Cosimo Cecchi <cosimoc gnome org>
Date:   Fri Feb 17 17:02:43 2012 +0100

    color-editor: mark the GtkColorSwatch as not selectable

 gtk/gtkcoloreditor.c |    1 +
 1 files changed, 1 insertions(+), 0 deletions(-)
---
diff --git a/gtk/gtkcoloreditor.c b/gtk/gtkcoloreditor.c
index 5bab7ae..ae151fe 100644
--- a/gtk/gtkcoloreditor.c
+++ b/gtk/gtkcoloreditor.c
@@ -399,6 +399,7 @@ gtk_color_editor_init (GtkColorEditor *editor)
 
   /* Construct the main UI */
   editor->priv->swatch = swatch = gtk_color_swatch_new ();
+  gtk_color_swatch_set_selectable (GTK_COLOR_SWATCH (editor->priv->swatch), FALSE);
   gtk_widget_set_events (swatch, gtk_widget_get_events (swatch)
                                  & ~(GDK_BUTTON_PRESS_MASK
                                      | GDK_BUTTON_RELEASE_MASK



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]