pidgin/plugins/convcolors.c

changeset 33683
bf243e3394a7
parent 33133
9a31f084f259
child 34477
86f6c431da7b
child 34660
68c776e3436e
--- a/pidgin/plugins/convcolors.c	Sat Jan 26 17:40:31 2013 -0800
+++ b/pidgin/plugins/convcolors.c	Sat Jan 26 18:12:03 2013 -0800
@@ -198,12 +198,8 @@
 {
 	if (response == GTK_RESPONSE_OK)
 	{
-#if GTK_CHECK_VERSION(2,14,0)
 		GtkWidget *colorsel =
 			gtk_color_selection_dialog_get_color_selection(GTK_COLOR_SELECTION_DIALOG(color_dialog));
-#else
-		GtkWidget *colorsel = GTK_COLOR_SELECTION_DIALOG(color_dialog)->colorsel;
-#endif
 		GdkColor color;
 		char colorstr[8];
 		char tmp[128];
@@ -237,15 +233,9 @@
 	g_snprintf(tmp, sizeof(tmp), "%s/color", data);
 	if (gdk_color_parse(purple_prefs_get_string(tmp), &color))
 	{
-#if GTK_CHECK_VERSION(2,14,0)
 		gtk_color_selection_set_current_color(GTK_COLOR_SELECTION(
 			gtk_color_selection_dialog_get_color_selection(GTK_COLOR_SELECTION_DIALOG(color_dialog))),
 			&color);
-#else
-		gtk_color_selection_set_current_color(
-			GTK_COLOR_SELECTION(GTK_COLOR_SELECTION_DIALOG(color_dialog)->colorsel),
-			&color);
-#endif
 	}
 
 	gtk_window_present(GTK_WINDOW(color_dialog));

mercurial