summaryrefslogtreecommitdiff
path: root/tests
diff options
context:
space:
mode:
authorChristian Dywan <christian@twotoasts.de>2010-04-06 17:45:56 +0200
committerJavier Jardón <jjardon@gnome.org>2010-05-03 01:51:22 +0200
commit6536ad7299cd94b78132d93c05f5ec5351ade8b4 (patch)
tree14026e39e7aa9b28f99660324254a89d40b67e19 /tests
parenteaf3ccfba058b9fc6163de95bfec5ca3912231b1 (diff)
downloadgdk-pixbuf-6536ad7299cd94b78132d93c05f5ec5351ade8b4.tar.gz
Use new 2.14 GtkColorSelection API in testgtk
Diffstat (limited to 'tests')
-rw-r--r--tests/testgtk.c19
1 files changed, 10 insertions, 9 deletions
diff --git a/tests/testgtk.c b/tests/testgtk.c
index dc6530102..26a9a23dc 100644
--- a/tests/testgtk.c
+++ b/tests/testgtk.c
@@ -5692,24 +5692,25 @@ void
color_selection_ok (GtkWidget *w,
GtkColorSelectionDialog *cs)
{
- GtkColorSelection *colorsel;
- gdouble color[4];
+ GtkWidget *colorsel;
+ GdkColor color;
- colorsel=GTK_COLOR_SELECTION(cs->colorsel);
+ colorsel = gtk_color_selection_dialog_get_color_selection (cs);
- gtk_color_selection_get_color(colorsel,color);
- gtk_color_selection_set_color(colorsel,color);
+ gtk_color_selection_get_current_color (GTK_COLOR_SELECTION (colorsel), &color);
+ gtk_color_selection_set_current_color (GTK_COLOR_SELECTION (colorsel), &color);
}
void
color_selection_changed (GtkWidget *w,
GtkColorSelectionDialog *cs)
{
- GtkColorSelection *colorsel;
- gdouble color[4];
+ GtkWidget *colorsel;
+ GdkColor color;
- colorsel=GTK_COLOR_SELECTION(cs->colorsel);
- gtk_color_selection_get_color(colorsel,color);
+ colorsel = gtk_color_selection_dialog_get_color_selection (cs);
+ gtk_color_selection_get_current_color (GTK_COLOR_SELECTION (colorsel), &color);
+ gtk_color_selection_set_current_color (GTK_COLOR_SELECTION (colorsel), &color);
}
#if 0 /* unused */