summaryrefslogtreecommitdiff
path: root/docs/tools/widgets.c
diff options
context:
space:
mode:
authorJavier Jardón <jjardon@gnome.org>2011-04-26 16:04:52 +0100
committerJavier Jardón <jjardon@gnome.org>2011-05-02 14:08:42 +0100
commite73c0d9800ca499994070cb9129f5ee868949348 (patch)
tree3543c48319a65e641db360a6a31e3cf5ffce7056 /docs/tools/widgets.c
parentdac718a463d93b2548c0258ee8f941ea2826ecbe (diff)
downloadgtk+-e73c0d9800ca499994070cb9129f5ee868949348.tar.gz
docs/tools/widgets.c: Use GdkRGBA instead GdkColor
Diffstat (limited to 'docs/tools/widgets.c')
-rw-r--r--docs/tools/widgets.c22
1 files changed, 11 insertions, 11 deletions
diff --git a/docs/tools/widgets.c b/docs/tools/widgets.c
index e847442a88..7709e3c993 100644
--- a/docs/tools/widgets.c
+++ b/docs/tools/widgets.c
@@ -649,23 +649,23 @@ create_colorsel (void)
GtkWidget *widget;
GtkColorSelection *colorsel;
GtkColorSelectionDialog *selection_dialog;
- GdkColor color;
+ GdkRGBA rgba;
widget = gtk_color_selection_dialog_new ("Color Selection Dialog");
selection_dialog = GTK_COLOR_SELECTION_DIALOG (widget);
colorsel = GTK_COLOR_SELECTION (gtk_color_selection_dialog_get_color_selection (selection_dialog));
- color.red = 0x7979;
- color.green = 0xdbdb;
- color.blue = 0x9595;
+ rgba.red = 0.4745;
+ rgba.green = 0.8588;
+ rgba.blue = 0.5843;
- gtk_color_selection_set_previous_color (colorsel, &color);
-
- color.red = 0x7d7d;
- color.green = 0x9393;
- color.blue = 0xc3c3;
-
- gtk_color_selection_set_current_color (colorsel, &color);
+ gtk_color_selection_set_previous_rgba (colorsel, &rgba);
+
+ rgba.red = 0.4902;
+ rgba.green = 0.5764;
+ rgba.blue = 0.7647;
+
+ gtk_color_selection_set_current_rgba (colorsel, &rgba);
info = new_widget_info ("colorsel", widget, ASIS);
info->include_decorations = TRUE;