[brasero] One more fix for #594716 - Use accessor functions instead direct access (use GSEAL GnomeGoal)



commit 3ed136b4fb9e9eb3bb3724a01bebce57cd6960fe
Author: Philippe Rouquier <bonfire-app wanadoo fr>
Date:   Thu Sep 24 12:54:18 2009 +0200

    One more fix for #594716 -  Use accessor functions instead direct access (use GSEAL GnomeGoal)

 libbrasero-utils/brasero-tool-color-picker.c |    5 ++++-
 1 files changed, 4 insertions(+), 1 deletions(-)
---
diff --git a/libbrasero-utils/brasero-tool-color-picker.c b/libbrasero-utils/brasero-tool-color-picker.c
index e4541c2..16f30ff 100644
--- a/libbrasero-utils/brasero-tool-color-picker.c
+++ b/libbrasero-utils/brasero-tool-color-picker.c
@@ -165,7 +165,10 @@ brasero_tool_color_picker_clicked (BraseroToolColorPicker *self,
 	priv = BRASERO_TOOL_COLOR_PICKER_PRIVATE (self);
 
 	dialog = gtk_color_selection_dialog_new (_("Pick a Color"));
-	selection = GTK_COLOR_SELECTION (GTK_COLOR_SELECTION_DIALOG (dialog)->colorsel);
+	selection = NULL;
+	g_object_get (dialog,
+	              "color-selection", &selection,
+	              NULL);
 	gtk_color_selection_set_current_color (selection, &priv->color);
 
 	toplevel = gtk_widget_get_toplevel (GTK_WIDGET (self));



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