pidgin/gtkblist.c

branch
cpw.qulogic.gtk3
changeset 32410
3d78feb90b9c
parent 32408
9f2580caad19
child 32411
21e9527afb95
equal deleted inserted replaced
32409:8487d731f10d 32410:3d78feb90b9c
3026 3026
3027 current_height = 12; 3027 current_height = 12;
3028 for(l = gtkblist->tooltipdata; l; l = l->next) 3028 for(l = gtkblist->tooltipdata; l; l = l->next)
3029 { 3029 {
3030 struct tooltip_data *td = l->data; 3030 struct tooltip_data *td = l->data;
3031 cairo_t *cr = gdk_cairo_create(GDK_DRAWABLE(gtk_widget_get_window(gtkblist->tipwindow))); 3031 cairo_t *cr = gdk_cairo_create(gtk_widget_get_window(gtkblist->tipwindow));
3032 3032
3033 if (td->avatar && pidgin_gdk_pixbuf_is_opaque(td->avatar)) 3033 if (td->avatar && pidgin_gdk_pixbuf_is_opaque(td->avatar))
3034 { 3034 {
3035 if (dir == GTK_TEXT_DIR_RTL) 3035 if (dir == GTK_TEXT_DIR_RTL)
3036 gtk_paint_flat_box(style, cr, GTK_STATE_NORMAL, GTK_SHADOW_OUT, 3036 gtk_paint_flat_box(style, cr, GTK_STATE_NORMAL, GTK_SHADOW_OUT,
3252 GtkTreeIter i; 3252 GtkTreeIter i;
3253 3253
3254 pidgin_blist_expand_contact_cb(NULL, node); 3254 pidgin_blist_expand_contact_cb(NULL, node);
3255 3255
3256 gtk_tree_view_get_cell_area(GTK_TREE_VIEW(tv), path, NULL, &gtkblist->contact_rect); 3256 gtk_tree_view_get_cell_area(GTK_TREE_VIEW(tv), path, NULL, &gtkblist->contact_rect);
3257 gtkblist->contact_rect.width = 3257 gtkblist->contact_rect.width =
3258 gdk_window_get_width(GDK_DRAWABLE(gtk_widget_get_window(tv))); 3258 gdk_window_get_width(gtk_widget_get_window(tv));
3259 gtkblist->mouseover_contact = node; 3259 gtkblist->mouseover_contact = node;
3260 gtk_tree_path_down (path); 3260 gtk_tree_path_down (path);
3261 while (gtk_tree_model_get_iter(GTK_TREE_MODEL(gtkblist->treemodel), &i, path)) { 3261 while (gtk_tree_model_get_iter(GTK_TREE_MODEL(gtkblist->treemodel), &i, path)) {
3262 GdkRectangle rect; 3262 GdkRectangle rect;
3263 gtk_tree_view_get_cell_area(GTK_TREE_VIEW(tv), path, NULL, &rect); 3263 gtk_tree_view_get_cell_area(GTK_TREE_VIEW(tv), path, NULL, &rect);
5639 static gboolean 5639 static gboolean
5640 paint_headline_hbox (GtkWidget *widget, 5640 paint_headline_hbox (GtkWidget *widget,
5641 GdkEventExpose *event, 5641 GdkEventExpose *event,
5642 gpointer user_data) 5642 gpointer user_data)
5643 { 5643 {
5644 cairo_t *cr = gdk_cairo_create(GDK_DRAWABLE(widget)); 5644 cairo_t *cr = gdk_cairo_create(gtk_widget_get_window(widget));
5645 GtkAllocation allocation; 5645 GtkAllocation allocation;
5646 5646
5647 gtk_widget_get_allocation(widget, &allocation); 5647 gtk_widget_get_allocation(widget, &allocation);
5648 gtk_paint_flat_box (gtk_widget_get_style(widget), 5648 gtk_paint_flat_box (gtk_widget_get_style(widget),
5649 cr, 5649 cr,
5650 GTK_STATE_NORMAL, 5650 GTK_STATE_NORMAL,
5651 GTK_SHADOW_OUT, 5651 GTK_SHADOW_OUT,
5652 widget, 5652 widget,
5653 "tooltip", 5653 "tooltip",
5654 allocation.x + 1, 5654 allocation.x + 1,
5655 allocation.y + 1, 5655 allocation.y + 1,
5656 allocation.width - 2, 5656 allocation.width - 2,
5657 allocation.height - 2); 5657 allocation.height - 2);
5658 cairo_destroy(cr); 5658 cairo_destroy(cr);
5659 5659
5660 return FALSE; 5660 return FALSE;
5661 } 5661 }
5662 5662
5663 /* This assumes there are not things like groupless buddies or multi-leveled groups. 5663 /* This assumes there are not things like groupless buddies or multi-leveled groups.
5664 * I'm sure other things in this code assumes that also. 5664 * I'm sure other things in this code assumes that also.

mercurial