changeset 766:936c132ea0a1

[gaim-migrate @ 776] whoa, that did wacky things for me. i don't think it's necessary for colors anyway. it's too hard to pick the same point again. if you don't want to change just hit cancel. committer: Tailor Script <tailor@pidgin.im>
author Eric Warmenhoven <eric@warmenhoven.org>
date Fri, 25 Aug 2000 05:11:32 +0000
parents bf31bf916f53
children be917c4d3e39
files src/dialogs.c
diffstat 1 files changed, 0 insertions(+), 19 deletions(-) [+]
line wrap: on
line diff
--- a/src/dialogs.c	Fri Aug 25 05:04:41 2000 +0000
+++ b/src/dialogs.c	Fri Aug 25 05:11:32 2000 +0000
@@ -2389,19 +2389,6 @@
 	}
 }
 
-void set_color_selection(GtkWidget *selection, GdkColor color)
-{
-	gdouble colors[4];
-
-	colors[0] = color.red;
-	colors[1] = color.green;
-	colors[2] = color.blue;
-	colors[3] = 0; /* opacity, currently unused */
-	gtk_color_selection_set_color(GTK_COLOR_SELECTION(selection), colors);
-
-	return;
-}
-	
 void show_color_dialog(struct conversation *c, GtkWidget *color)
 {
 	GtkWidget *colorsel;
@@ -2409,8 +2396,6 @@
 	if ((int)color == 1) { /* foreground */
 		if (fgcseld) return;
 		fgcseld = gtk_color_selection_dialog_new(_("Select Text Color"));
-
-		set_color_selection(GTK_COLOR_SELECTION_DIALOG(fgcseld)->colorsel, fgcolor);
 		
 		gtk_signal_connect(GTK_OBJECT(fgcseld), "delete_event", GTK_SIGNAL_FUNC(destroy_colorsel), (void *)1);
 		gtk_signal_connect(GTK_OBJECT(GTK_COLOR_SELECTION_DIALOG(fgcseld)->cancel_button), "clicked", GTK_SIGNAL_FUNC(destroy_colorsel), (void *)1);
@@ -2424,8 +2409,6 @@
 		if (bgcseld) return;
 		bgcseld = gtk_color_selection_dialog_new(_("Select Background Color"));
 
-		set_color_selection(GTK_COLOR_SELECTION_DIALOG(bgcseld)->colorsel, bgcolor);
-
 		gtk_signal_connect(GTK_OBJECT(bgcseld), "delete_event", GTK_SIGNAL_FUNC(destroy_colorsel), NULL);
 		gtk_signal_connect(GTK_OBJECT(GTK_COLOR_SELECTION_DIALOG(bgcseld)->cancel_button), "clicked", GTK_SIGNAL_FUNC(destroy_colorsel), NULL);
 		gtk_signal_connect(GTK_OBJECT(GTK_COLOR_SELECTION_DIALOG(bgcseld)->ok_button), "clicked", GTK_SIGNAL_FUNC(apply_color_dlg), (void *)2);
@@ -2442,8 +2425,6 @@
 		
 		colorsel = GTK_COLOR_SELECTION_DIALOG(c->color_dialog)->colorsel;
 
-		set_color_selection(colorsel, fgcolor);
-
 		gtk_object_set_user_data(GTK_OBJECT(colorsel), c);
 		
 		gtk_signal_connect(GTK_OBJECT(c->color_dialog), "delete_event", GTK_SIGNAL_FUNC(delete_event_dialog), c);