comparison pidgin/gtkblist.c @ 23700:2d436084d866

fixes initialize icon theme bug by pre-loading the theme
author Justin Rodriguez <ffdragon@soc.pidgin.im>
date Sun, 10 Aug 2008 02:36:00 +0000
parents fc8047e1fa39
children 1a4417138a8f
comparison
equal deleted inserted replaced
23699:fc8047e1fa39 23700:2d436084d866
48 #include "gtkcertmgr.h" 48 #include "gtkcertmgr.h"
49 #include "gtkconv.h" 49 #include "gtkconv.h"
50 #include "gtkdebug.h" 50 #include "gtkdebug.h"
51 #include "gtkdialogs.h" 51 #include "gtkdialogs.h"
52 #include "gtkft.h" 52 #include "gtkft.h"
53 #include "gtkicon-theme.h"
54 #include "gtklog.h" 53 #include "gtklog.h"
55 #include "gtkmenutray.h" 54 #include "gtkmenutray.h"
56 #include "gtkpounce.h" 55 #include "gtkpounce.h"
57 #include "gtkplugin.h" 56 #include "gtkplugin.h"
58 #include "gtkprefs.h" 57 #include "gtkprefs.h"
5302 #if GTK_CHECK_VERSION(2,6,0) 5301 #if GTK_CHECK_VERSION(2,6,0)
5303 g_signal_connect(G_OBJECT(rend), "editing-started", G_CALLBACK(gtk_blist_renderer_editing_started_cb), NULL); 5302 g_signal_connect(G_OBJECT(rend), "editing-started", G_CALLBACK(gtk_blist_renderer_editing_started_cb), NULL);
5304 g_signal_connect(G_OBJECT(rend), "editing-canceled", G_CALLBACK(gtk_blist_renderer_editing_cancelled_cb), list); 5303 g_signal_connect(G_OBJECT(rend), "editing-canceled", G_CALLBACK(gtk_blist_renderer_editing_cancelled_cb), list);
5305 #endif 5304 #endif
5306 g_signal_connect(G_OBJECT(rend), "edited", G_CALLBACK(gtk_blist_renderer_edited_cb), list); 5305 g_signal_connect(G_OBJECT(rend), "edited", G_CALLBACK(gtk_blist_renderer_edited_cb), list);
5307 g_object_set(rend, "ypad", 0, "yalign", 0.5, NULL);
5308 #if GTK_CHECK_VERSION(2,6,0) 5306 #if GTK_CHECK_VERSION(2,6,0)
5309 g_object_set(rend, "ellipsize", PANGO_ELLIPSIZE_END, NULL); 5307 g_object_set(rend, "ellipsize", PANGO_ELLIPSIZE_END, NULL);
5310 #endif 5308 #endif
5311 5309
5312 /* idle */ 5310 /* idle */
5389 5387
5390 gtkblist = PIDGIN_BLIST(list); 5388 gtkblist = PIDGIN_BLIST(list);
5391 priv = PIDGIN_BUDDY_LIST_GET_PRIVATE(gtkblist); 5389 priv = PIDGIN_BUDDY_LIST_GET_PRIVATE(gtkblist);
5392 5390
5393 priv->current_theme = PIDGIN_BLIST_THEME(purple_theme_manager_find_theme(purple_prefs_get_string(PIDGIN_PREFS_ROOT "/blist/theme"), "blist")); 5391 priv->current_theme = PIDGIN_BLIST_THEME(purple_theme_manager_find_theme(purple_prefs_get_string(PIDGIN_PREFS_ROOT "/blist/theme"), "blist"));
5394
5395 pidgin_stock_load_status_icon_theme(PIDGIN_STATUS_ICON_THEME(purple_theme_manager_find_theme(purple_prefs_get_string(PIDGIN_PREFS_ROOT "/icon/status/theme"), "status-icon")));
5396 5392
5397 gtkblist->empty_avatar = gdk_pixbuf_new(GDK_COLORSPACE_RGB, TRUE, 8, 32, 32); 5393 gtkblist->empty_avatar = gdk_pixbuf_new(GDK_COLORSPACE_RGB, TRUE, 8, 32, 32);
5398 gdk_pixbuf_fill(gtkblist->empty_avatar, 0x00000000); 5394 gdk_pixbuf_fill(gtkblist->empty_avatar, 0x00000000);
5399 5395
5400 gtkblist->window = pidgin_create_window(_("Buddy List"), 0, "buddy_list", TRUE); 5396 gtkblist->window = pidgin_create_window(_("Buddy List"), 0, "buddy_list", TRUE);