[gtk+] Avoid a 10th custom color
- From: Matthias Clasen <matthiasc src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gtk+] Avoid a 10th custom color
- Date: Tue, 14 Feb 2012 22:22:17 +0000 (UTC)
commit dc1929a9dece5f0a57972cfbcbe7be22c41a7a3a
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]