pidgin: f6d52847: Change the name of the file selector fro...

qulogic at pidgin.im qulogic at pidgin.im
Thu Jul 2 23:41:19 EDT 2009


-----------------------------------------------------------------
Revision: f6d52847cf0802d50198c3d9d02c02aa182ca50f
Ancestor: 7b901807cccaed6fa3f28a29ae7aa0275d3f21b5
Author: qulogic at pidgin.im
Date: 2009-07-01T03:13:50
Branch: im.pidgin.pidgin
URL: http://d.pidgin.im/viewmtn/revision/info/f6d52847cf0802d50198c3d9d02c02aa182ca50f

Modified files:
        pidgin/plugins/themeedit-icon.c

ChangeLog: 

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.

-------------- next part --------------
============================================================
--- pidgin/plugins/themeedit-icon.c	dabb985d7ad23c77411fd5df19b751cf3bbc1010
+++ pidgin/plugins/themeedit-icon.c	4f8c11cc2e3cb755686ee2e713397d531b49c3b7
@@ -237,6 +237,8 @@ change_stock_image(GtkWidget *widget, Gd
 {
 	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 @@ void pidgin_icon_theme_edit(PurplePlugin
 
 			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);


More information about the Commits mailing list