comparison pidgin/gtkblist.c @ 15490:d4f627770107

Remove separator again, and use the 16px prpl icon instead of the 22
author Sean Egan <seanegan@gmail.com>
date Fri, 02 Feb 2007 20:10:17 +0000
parents 29e8e230d1b6
children 88070d5f4c62
comparison
equal deleted inserted replaced
15489:29e8e230d1b6 15490:d4f627770107
2197 */ 2197 */
2198 #define STATUS_SIZE 32 2198 #define STATUS_SIZE 32
2199 #define TOOLTIP_BORDER 12 2199 #define TOOLTIP_BORDER 12
2200 #define SMALL_SPACE 6 2200 #define SMALL_SPACE 6
2201 #define LARGE_SPACE 12 2201 #define LARGE_SPACE 12
2202 #define PRPL_SIZE 22 2202 #define PRPL_SIZE 16
2203 struct tooltip_data { 2203 struct tooltip_data {
2204 PangoLayout *layout; 2204 PangoLayout *layout;
2205 PangoLayout *name_layout; 2205 PangoLayout *name_layout;
2206 GdkPixbuf *prpl_icon; 2206 GdkPixbuf *prpl_icon;
2207 GdkPixbuf *status_icon; 2207 GdkPixbuf *status_icon;
2228 account = ((GaimChat*)(node))->account; 2228 account = ((GaimChat*)(node))->account;
2229 } 2229 }
2230 2230
2231 td->status_icon = gaim_gtk_blist_get_status_icon(node, GAIM_STATUS_ICON_LARGE); 2231 td->status_icon = gaim_gtk_blist_get_status_icon(node, GAIM_STATUS_ICON_LARGE);
2232 td->avatar = gaim_gtk_blist_get_buddy_icon(node, !full, FALSE, TRUE); 2232 td->avatar = gaim_gtk_blist_get_buddy_icon(node, !full, FALSE, TRUE);
2233 td->prpl_icon = gaim_gtk_create_prpl_icon(account, PIDGIN_PRPL_ICON_MEDIUM); 2233 td->prpl_icon = gaim_gtk_create_prpl_icon(account, PIDGIN_PRPL_ICON_SMALL);
2234 tooltip_text = gaim_get_tooltip_text(node, full); 2234 tooltip_text = gaim_get_tooltip_text(node, full);
2235 td->layout = gtk_widget_create_pango_layout(gtkblist->tipwindow, NULL); 2235 td->layout = gtk_widget_create_pango_layout(gtkblist->tipwindow, NULL);
2236 td->name_layout = gtk_widget_create_pango_layout(gtkblist->tipwindow, NULL); 2236 td->name_layout = gtk_widget_create_pango_layout(gtkblist->tipwindow, NULL);
2237 2237
2238 if (GAIM_BLIST_NODE_IS_BUDDY(node)) 2238 if (GAIM_BLIST_NODE_IS_BUDDY(node))
2342 gtk_paint_layout (style, gtkblist->tipwindow->window, GTK_STATE_NORMAL, FALSE, 2342 gtk_paint_layout (style, gtkblist->tipwindow->window, GTK_STATE_NORMAL, FALSE,
2343 NULL, gtkblist->tipwindow, "tooltip", 2343 NULL, gtkblist->tipwindow, "tooltip",
2344 TOOLTIP_BORDER + STATUS_SIZE + SMALL_SPACE, current_height + td->name_height, td->layout); 2344 TOOLTIP_BORDER + STATUS_SIZE + SMALL_SPACE, current_height + td->name_height, td->layout);
2345 2345
2346 current_height += MAX(td->name_height + td->height, td->avatar_height) + TOOLTIP_BORDER; 2346 current_height += MAX(td->name_height + td->height, td->avatar_height) + TOOLTIP_BORDER;
2347 if(l->next)
2348 gtk_paint_hline(style, gtkblist->tipwindow->window, GTK_STATE_NORMAL,
2349 NULL, NULL, NULL, 4, max_width - 4, current_height-6);
2350 } 2347 }
2351 } 2348 }
2352 2349
2353 2350
2354 static void gaim_gtk_blist_tooltip_destroy() 2351 static void gaim_gtk_blist_tooltip_destroy()