| 107 GtkAllocation allocation; |
107 GtkAllocation allocation; |
| 108 |
108 |
| 109 gtk_widget_get_allocation(widget, &allocation); |
109 gtk_widget_get_allocation(widget, &allocation); |
| 110 |
110 |
| 111 if (pidgin_tooltip.paint_tooltip) { |
111 if (pidgin_tooltip.paint_tooltip) { |
| 112 gtk_paint_flat_box(gtk_widget_get_style(widget), cr, |
112 GtkStyleContext *context = gtk_widget_get_style_context(widget); |
| 113 GTK_STATE_NORMAL, GTK_SHADOW_OUT, |
113 gtk_style_context_add_class(context, GTK_STYLE_CLASS_TOOLTIP); |
| 114 widget, "tooltip", |
114 gtk_render_background(context, cr, |
| 115 0, 0, allocation.width, allocation.height); |
115 0, 0, allocation.width, allocation.height); |
| 116 pidgin_tooltip.paint_tooltip(widget, cr, data); |
116 pidgin_tooltip.paint_tooltip(widget, cr, data); |
| 117 } |
117 } |
| 118 return FALSE; |
118 return FALSE; |
| 119 } |
119 } |
| 120 #else |
120 #else |