pidgin/pidgintooltip.c

changeset 33271
53bf180b9eb1
parent 33170
ce4447562d64
child 33683
bf243e3394a7
equal deleted inserted replaced
33270:a6493d38dc28 33271:53bf180b9eb1
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

mercurial