# HG changeset patch # User Elliott Sales de Andrade # Date 1258932446 0 # Node ID 87e124c52a473237b7e26ff5a943cd27cf05c780 # Parent 3dcdc023ea37f1188dd03cd96ebad37baeb27237 Change lookup of docklet icons to use an 'icon name' instead of a stock name. This chooses the correct size without weird scaling, but I don't think it will work properly with icon themes, so I'll need to look into that eventually. diff -r 3dcdc023ea37 -r 87e124c52a47 pidgin/gtkdocklet-gtk.c --- a/pidgin/gtkdocklet-gtk.c Fri Nov 20 06:51:08 2009 +0000 +++ b/pidgin/gtkdocklet-gtk.c Sun Nov 22 23:27:26 2009 +0000 @@ -79,7 +79,7 @@ icon_name = PIDGIN_STOCK_TRAY_CONNECT; if (icon_name) { - gtk_status_icon_set_from_stock(docklet, icon_name); + gtk_status_icon_set_from_icon_name(docklet, icon_name); } } @@ -156,6 +156,8 @@ docklet_ui_init(void) { pidgin_docklet_set_ui_ops(&ui_ops); + gtk_icon_theme_append_search_path(gtk_icon_theme_get_default(), + DATADIR G_DIR_SEPARATOR_S "pixmaps" G_DIR_SEPARATOR_S "pidgin" G_DIR_SEPARATOR_S "tray"); } #endif /* GTK_CHECK_VERSION(2,10,0) */