# HG changeset patch # User Mark Doliner # Date 1160468097 0 # Node ID bee0bdd63b1f159b3841de282999aedbd247e206 # Parent f063e0bc1f200113ed0ac51ce65132b1c95cb98e [gaim-migrate @ 17454] Make the buddy icon button in modify account windows clickable and get rid of the modify button committer: Tailor Script diff -r f063e0bc1f20 -r bee0bdd63b1f gtk/gtkaccount.c --- 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);