# HG changeset patch # User Justin Rodriguez # Date 1217991279 0 # Node ID d93578eb7244de2370ae6781947939e375f9207d # Parent 2ecd716746e6abe28e39ceca9c88ed4320596cea# Parent 09feece6ecd55104de762ca390966c27e4329452 merge of '3a9f71b3ea427344c6b6e95c63c3559bef222013' and 'd370f99001126b27ce4cf920e66083b8ff7cd629' diff -r 2ecd716746e6 -r d93578eb7244 pidgin/gtkblist.c --- a/pidgin/gtkblist.c Wed Aug 06 02:39:40 2008 +0000 +++ b/pidgin/gtkblist.c Wed Aug 06 02:54:39 2008 +0000 @@ -3828,7 +3828,7 @@ presence = purple_buddy_get_presence(b); /* Name is all that is needed */ - if (biglist || !aliased) { + if (!aliased && biglist) { /* Status Info */ prpl = purple_find_prpl(purple_account_get_protocol_id(b->account)); @@ -3953,13 +3953,13 @@ status_font = (pair != NULL && pair->font != NULL) ? pair->font : ""; } - if (selected) { + if (!aliased && selected) { name_color = "black"; status_color = "black"; } /* Put it all together */ - if (biglist && (statustext || idletime)) { + if (!aliased && biglist && (statustext || idletime)) { /* using breaks the status, so it must be seperated into */ text = g_strdup_printf("%s\n" "%s%s%s", diff -r 2ecd716746e6 -r d93578eb7244 pidgin/gtkprefs.c --- a/pidgin/gtkprefs.c Wed Aug 06 02:39:40 2008 +0000 +++ b/pidgin/gtkprefs.c Wed Aug 06 02:54:39 2008 +0000 @@ -58,6 +58,8 @@ #define PROXYUSER 2 #define PROXYPASS 3 +#define PREFS_OPTIMAL_ICON_SIZE 32 + static int sound_row_sel = 0; static GtkWidget *prefsnotebook; @@ -599,14 +601,14 @@ { GdkPixbuf *pixbuf = NULL; GtkTreeIter iter; - gchar *image_full, *markup; + gchar *image_full = NULL, *markup; const gchar *name, *author, *description; if (PURPLE_IS_SOUND_THEME(theme)){ image_full = purple_theme_get_image_full(theme); if (image_full != NULL){ - pixbuf = gdk_pixbuf_new_from_file(image_full, NULL); + pixbuf = gdk_pixbuf_new_from_file_at_scale(image_full, PREFS_OPTIMAL_ICON_SIZE, PREFS_OPTIMAL_ICON_SIZE, TRUE, NULL); g_free(image_full); } else pixbuf = NULL; @@ -620,7 +622,7 @@ image_full = purple_theme_get_image_full(theme); if (image_full != NULL){ - pixbuf = gdk_pixbuf_new_from_file(image_full, NULL); + pixbuf = gdk_pixbuf_new_from_file_at_scale(image_full, PREFS_OPTIMAL_ICON_SIZE, PREFS_OPTIMAL_ICON_SIZE, TRUE, NULL); g_free(image_full); } else pixbuf = NULL; @@ -648,8 +650,8 @@ gchar *filename; GtkTreeIter iter; - filename = g_build_filename(DATADIR, "icons", "hicolor", "16x16", "apps", "pidgin.png", NULL); - pixbuf= gdk_pixbuf_new_from_file(filename, NULL); + filename = g_build_filename(DATADIR, "icons", "hicolor", "32x32", "apps", "pidgin.png", NULL); + pixbuf = gdk_pixbuf_new_from_file_at_scale(filename, PREFS_OPTIMAL_ICON_SIZE, PREFS_OPTIMAL_ICON_SIZE, TRUE, NULL); g_free(filename); /* sound themes */ @@ -1122,6 +1124,7 @@ gtk_box_pack_start(GTK_BOX (vbox), combo_box, TRUE, TRUE, 0); cell_rend = gtk_cell_renderer_pixbuf_new(); + gtk_cell_renderer_set_fixed_size(cell_rend, PREFS_OPTIMAL_ICON_SIZE, PREFS_OPTIMAL_ICON_SIZE); gtk_cell_layout_pack_start(GTK_CELL_LAYOUT (combo_box), cell_rend, FALSE); gtk_cell_layout_set_attributes(GTK_CELL_LAYOUT(combo_box), cell_rend, "pixbuf", 0, NULL); @@ -2155,6 +2158,7 @@ gtk_box_pack_start(GTK_BOX (vbox), combo_box, FALSE, FALSE, 0); cell_rend = gtk_cell_renderer_pixbuf_new(); + gtk_cell_renderer_set_fixed_size(cell_rend, PREFS_OPTIMAL_ICON_SIZE, PREFS_OPTIMAL_ICON_SIZE); gtk_cell_layout_pack_start(GTK_CELL_LAYOUT (combo_box), cell_rend, FALSE); gtk_cell_layout_set_attributes(GTK_CELL_LAYOUT(combo_box), cell_rend, "pixbuf", 0, NULL);