[gtk+] Fix use_alpha initialization and propagation
- From: Matthias Clasen <matthiasc src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gtk+] Fix use_alpha initialization and propagation
- Date: Tue, 14 Feb 2012 22:21:47 +0000 (UTC)
commit 7f44feab194c512e81ae263d09e65869d54c0fc4
Author: Matthias Clasen <mclasen redhat com>
Date: Wed Feb 8 20:21:10 2012 -0500
Fix use_alpha initialization and propagation
We must set use_alpha to TRUE initially, and when passing it
down to the swatches, we must iterate over the custom box, too.
gtk/gtkcolorchooserwidget.c | 4 +++-
1 files changed, 3 insertions(+), 1 deletions(-)
---
diff --git a/gtk/gtkcolorchooserwidget.c b/gtk/gtkcolorchooserwidget.c
index 10d29c2..dc48c18 100644
--- a/gtk/gtkcolorchooserwidget.c
+++ b/gtk/gtkcolorchooserwidget.c
@@ -224,7 +224,7 @@ gtk_color_chooser_widget_set_use_alpha (GtkColorChooserWidget *cc,
{
grid = p->data;
- if (!GTK_IS_GRID (grid))
+ if (!GTK_IS_CONTAINER (grid))
continue;
children = gtk_container_get_children (GTK_CONTAINER (grid));
@@ -399,6 +399,8 @@ gtk_color_chooser_widget_init (GtkColorChooserWidget *cc)
cc->priv = G_TYPE_INSTANCE_GET_PRIVATE (cc, GTK_TYPE_COLOR_CHOOSER_WIDGET, GtkColorChooserWidgetPrivate);
+ cc->priv->use_alpha = TRUE;
+
gtk_orientable_set_orientation (GTK_ORIENTABLE (cc), GTK_ORIENTATION_VERTICAL);
cc->priv->palette = gtk_box_new (GTK_ORIENTATION_VERTICAL, 0);
gtk_container_add (GTK_CONTAINER (cc), cc->priv->palette);
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]