/*
- Copyright (C) 2010-2011 wpitchoune@gmail.com
+ Copyright (C) 2010-2011 jeanfi@gmail.com
This program is free software; you can redistribute it and/or modify
it under the terms of the GNU General Public License as published by
color.green = col->green;
color.blue = col->blue;
- colordlg = (GtkColorSelectionDialog *)
- gtk_color_selection_dialog_new(title);
+ colordlg = GTK_COLOR_SELECTION_DIALOG
+ (gtk_color_selection_dialog_new(title));
- colorsel = GTK_COLOR_SELECTION(colordlg->colorsel);
+ colorsel = GTK_COLOR_SELECTION
+ (gtk_color_selection_dialog_get_color_selection(colordlg));
- gtk_color_selection_set_previous_color(colorsel, &color);
gtk_color_selection_set_current_color(colorsel, &color);
res = gtk_dialog_run(GTK_DIALOG(colordlg));