changeset 14702:bee0bdd63b1f

[gaim-migrate @ 17454] Make the buddy icon button in modify account windows clickable and get rid of the modify button committer: Tailor Script <tailor@pidgin.im>
author Mark Doliner <mark@kingant.net>
date Tue, 10 Oct 2006 08:14:57 +0000
parents f063e0bc1f20
children 1734f4fd4a00
files gtk/gtkaccount.c
diffstat 1 files changed, 8 insertions(+), 8 deletions(-) [+]
line wrap: on
line diff
--- a/gtk/gtkaccount.c	Tue Oct 10 00:45:14 2006 +0000
+++ b/gtk/gtkaccount.c	Tue Oct 10 08:14:57 2006 +0000
@@ -573,10 +573,16 @@
 	gtk_box_pack_start(GTK_BOX(hbox), label, FALSE, FALSE, 0);
 	gtk_widget_show(label);
 
+	button = gtk_button_new();
+	gtk_box_pack_start(GTK_BOX(hbox), button, FALSE, FALSE, 0);
+	gtk_widget_show(button);
+	g_signal_connect(G_OBJECT(button), "clicked",
+	                 G_CALLBACK(icon_select_cb), dialog);
+
 	dialog->icon_entry = gtk_image_new();
-	gtk_box_pack_start(GTK_BOX(hbox), dialog->icon_entry,
-					   FALSE, FALSE, 0);
+	gtk_container_add(GTK_CONTAINER(button), dialog->icon_entry);
 	gtk_widget_show(dialog->icon_entry);
+	/* TODO: Uh, isn't this next line pretty useless? */
 	gaim_set_accessible_label (dialog->icon_entry, label);
 	dialog->icon_path = NULL;
 
@@ -588,12 +594,6 @@
 	gtk_box_pack_start(GTK_BOX(vbox2), hbox2, FALSE, FALSE, GAIM_HIG_BORDER);
 	gtk_widget_show(hbox2);
 
-	button = gtk_button_new_from_stock(GTK_STOCK_OPEN);
-	gtk_box_pack_start(GTK_BOX(hbox2), button, FALSE, FALSE, 0);
-	g_signal_connect(G_OBJECT(button), "clicked",
-					 G_CALLBACK(icon_select_cb), dialog);
-	gtk_widget_show(button);
-
 	button = gtk_button_new_from_stock(GTK_STOCK_REMOVE);
 	g_signal_connect(G_OBJECT(button), "clicked",
 			 G_CALLBACK(icon_reset_cb), dialog);