# HG changeset patch # User Elliott Sales de Andrade # Date 1246418030 0 # Node ID 801e54fde3df439a2aefe9999b5646b1ac8eac0c # Parent 6202c7e62287a9a64716618d58ede79c00fe6acb 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. diff -r 6202c7e62287 -r 801e54fde3df pidgin/plugins/themeedit-icon.c --- 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);