[gtk+] tests/testcombo.c: Use GdkRGBA instead GdkColor
- From: Javier JardÃn <jjardon src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gtk+] tests/testcombo.c: Use GdkRGBA instead GdkColor
- Date: Tue, 20 Dec 2011 18:32:44 +0000 (UTC)
commit 325142fba782ffe7d165cc105c7ad0099cf29958
Author: Javier JardÃn <jjardon gnome org>
Date: Mon Dec 19 14:09:36 2011 +0000
tests/testcombo.c: Use GdkRGBA instead GdkColor
tests/testcombo.c | 9 +++++----
1 files changed, 5 insertions(+), 4 deletions(-)
---
diff --git a/tests/testcombo.c b/tests/testcombo.c
index 2a9c527..3459feb 100644
--- a/tests/testcombo.c
+++ b/tests/testcombo.c
@@ -1092,7 +1092,7 @@ main (int argc, char **argv)
GtkTreeModel *model;
GtkTreePath *path;
GtkTreeIter iter;
- GdkColor color;
+ GdkRGBA color;
GtkCellArea *area;
gtk_init (&argc, &argv);
@@ -1285,10 +1285,11 @@ main (int argc, char **argv)
gtk_cell_layout_set_attributes (GTK_CELL_LAYOUT (tmp), renderer,
"text", 1,
NULL);
- color.red = 0xffff;
- color.blue = 0xffff;
+ color.red = 1.0;
+ color.blue = 1.0;
color.green = 0;
- gtk_cell_view_set_background_color (GTK_CELL_VIEW (tmp), &color);
+ color.alpha = 1.0;
+ gtk_cell_view_set_background_rgba (GTK_CELL_VIEW (tmp), &color);
displayed_row_changed (GTK_COMBO_BOX (combobox), GTK_CELL_VIEW (tmp));
g_signal_connect (combobox, "changed", G_CALLBACK (displayed_row_changed), tmp);
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]