diff pidgin/plugins/themeedit-icon.c @ 27310:801e54fde3df

Change the name of the file selector from "Buddy Icon" to the name of the icon when choosing a new one from the theme editor plugin.
author Elliott Sales de Andrade <qulogic@pidgin.im>
date Wed, 01 Jul 2009 03:13:50 +0000
parents 81559f83e993
children 390c3a6a44c6
line wrap: on
line diff
--- a/pidgin/plugins/themeedit-icon.c	Wed Jul 01 01:44:00 2009 +0000
+++ b/pidgin/plugins/themeedit-icon.c	Wed Jul 01 03:13:50 2009 +0000
@@ -237,6 +237,8 @@
 {
 	GtkWidget *win = pidgin_buddy_icon_chooser_new(GTK_WINDOW(gtk_widget_get_toplevel(widget)),
 			stock_icon_selected, image);
+	gtk_window_set_title(GTK_WINDOW(win),
+	                     g_object_get_data(G_OBJECT(image), "localized-name"));
 	gtk_widget_show_all(win);
 
 	return TRUE;
@@ -279,6 +281,7 @@
 
 			g_signal_connect(G_OBJECT(ebox), "button-press-event", G_CALLBACK(change_stock_image), image);
 			g_object_set_data(G_OBJECT(image), "property-name", (gpointer)id);
+			g_object_set_data(G_OBJECT(image), "localized-name", (gpointer)text);
 
 			gtk_size_group_add_widget(sizegroup, label);
 			gtk_box_pack_start(GTK_BOX(hbox), label, FALSE, FALSE, 0);