From 9663801be7ef4c702c0821a634bd5cdf57e8ddaf Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Javier=20Jard=C3=B3n?= Date: Wed, 2 Jun 2010 04:24:16 +0200 Subject: Use accessor functions to access GtkColorSelectionDialog --- examples/colorsel/colorsel.c | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to 'examples') 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); -- cgit v1.2.1