Mercurial > pidgin
changeset 29323:87e124c52a47
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.
author | Elliott Sales de Andrade <qulogic@pidgin.im> |
---|---|
date | Sun, 22 Nov 2009 23:27:26 +0000 |
parents | 3dcdc023ea37 |
children | 4135044c6497 |
files | pidgin/gtkdocklet-gtk.c |
diffstat | 1 files changed, 3 insertions(+), 1 deletions(-) [+] |
line wrap: on
line diff
--- 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) */