Hi. Viraj Chatterjee <[EMAIL PROTECTED]> writes:
> I'm using gdk_draw_layout to draw certain text on some widgets in my > application, It works for most widgets, however, the text doesn't > render atall for a few widgets. > > Here's a snippet of code I'm using: > > PangoLayout *layout = gtk_widget_create_pango_layout(widget) > pango_layout_set_text(layout, text); > gdk_draw_layout(window, widget->style->fg_gc[state], x, y, layout); This code snippet is run in an expose event handler? Otherwise it is not surprising that it doesn't work since you must not draw outside an expose event handler. If that is not the problem and you are drawing from an expose event handler, does your code take widget->allocation.x and widget->allocation.y into account? In general, it would help to show a little more of your code if you want us to help you. Sven _______________________________________________ gtk-list mailing list [EMAIL PROTECTED] http://mail.gnome.org/mailman/listinfo/gtk-list