[gtk+/wip/colorchooser-v2: 62/77] Avoid a 10th custom color
- From: Cosimo Cecchi <cosimoc src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gtk+/wip/colorchooser-v2: 62/77] Avoid a 10th custom color
- Date: Thu, 9 Feb 2012 21:31:31 +0000 (UTC)
commit 79abe2eb2a064cb238beae25c86f31c60f240fe7
Author: Matthias Clasen <mclasen redhat com>
Date: Wed Feb 8 22:12:31 2012 -0500
Avoid a 10th custom color
gtk/gtkcolorchooserwidget.c | 6 +++---
1 files changed, 3 insertions(+), 3 deletions(-)
---
diff --git a/gtk/gtkcolorchooserwidget.c b/gtk/gtkcolorchooserwidget.c
index 7ca4f9f..d91e149 100644
--- a/gtk/gtkcolorchooserwidget.c
+++ b/gtk/gtkcolorchooserwidget.c
@@ -133,7 +133,7 @@ swatch_customize (GtkColorSwatch *swatch,
gtk_widget_hide (cc->priv->palette);
gtk_widget_show (cc->priv->editor);
- g_object_notify (cc, "show-editor");
+ g_object_notify (G_OBJECT (cc), "show-editor");
}
static void
@@ -164,7 +164,7 @@ button_activate (GtkColorSwatch *swatch,
gtk_widget_hide (cc->priv->palette);
gtk_widget_show (cc->priv->editor);
- g_object_notify (cc, "show-editor");
+ g_object_notify (G_OBJECT (cc), "show-editor");
}
static void
@@ -599,7 +599,7 @@ add_custom_color (GtkColorChooserWidget *cc,
GList *children;
children = gtk_container_get_children (GTK_CONTAINER (cc->priv->custom));
- if (g_list_length (children) == 8)
+ if (g_list_length (children) >= 8)
{
last = g_list_last (children)->data;
gtk_widget_destroy (last);
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]