[gtk+] docs/tools/widgets.c: Use GdkRGBA instead GdkColor



commit e73c0d9800ca499994070cb9129f5ee868949348
Author: Javier Jardón <jjardon gnome org>
Date:   Tue Apr 26 16:04:52 2011 +0100

    docs/tools/widgets.c: Use GdkRGBA instead GdkColor

 docs/tools/widgets.c |   22 +++++++++++-----------
 1 files changed, 11 insertions(+), 11 deletions(-)
---
diff --git a/docs/tools/widgets.c b/docs/tools/widgets.c
index e847442..7709e3c 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;



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]