diff options
author | Javier Jardón <jjardon@gnome.org> | 2010-06-02 04:24:16 +0200 |
---|---|---|
committer | Javier Jardón <jjardon@gnome.org> | 2010-07-13 19:40:46 +0200 |
commit | 9663801be7ef4c702c0821a634bd5cdf57e8ddaf (patch) | |
tree | d80e184648ce5fc3f363ca90266f7050eb60f9c8 /examples | |
parent | 56eafbaad8dcd8d0742fea795f6381e731e4edbc (diff) | |
download | gtk+-9663801be7ef4c702c0821a634bd5cdf57e8ddaf.tar.gz |
Use accessor functions to access GtkColorSelectionDialog
Diffstat (limited to 'examples')
-rw-r--r-- | examples/colorsel/colorsel.c | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/examples/colorsel/colorsel.c b/examples/colorsel/colorsel.c index 9d3671de69..d5eb68634d 100644 --- a/examples/colorsel/colorsel.c +++ b/examples/colorsel/colorsel.c @@ -27,6 +27,7 @@ static gboolean area_event( GtkWidget *widget, gint handled = FALSE; gint response; GtkColorSelection *colorsel; + GtkColorSelectionDialog *selection_dialog; /* Check if we've received a button pressed event */ @@ -39,7 +40,8 @@ static gboolean area_event( GtkWidget *widget, colorseldlg = gtk_color_selection_dialog_new ("Select background color"); /* Get the ColorSelection widget */ - colorsel = GTK_COLOR_SELECTION (GTK_COLOR_SELECTION_DIALOG (colorseldlg)->colorsel); + selection_dialog = GTK_COLOR_SELECTION_DIALOG (colorseldlg); + colorsel = GTK_COLOR_SELECTION (gtk_color_selection_dialog_get_colorsel (selection_dialog)); gtk_color_selection_set_previous_color (colorsel, &color); gtk_color_selection_set_current_color (colorsel, &color); |