Rob Wilkens wrote:
...
This results, somehow, in the label text (on the button) being WHITE. The box itself is not white (in fact it has black borders I think).
You change the foreground of widget->style->fg_gc, this is mistake - it is shared. You should create and use your own gc for drawing operations or revert all changes you did on the style's gc. Try this:
gboolean
drawingExpose (GtkWidget *widget, GdkEventExpose *event)
{
        GdkGC *gc=gdk_gc_new(widget->window);

        /* copy&paste your code here */

        g_object_unref(gc);
        return TRUE;
}

        Olexiy
_______________________________________________
gtk-list mailing list
[EMAIL PROTECTED]
http://mail.gnome.org/mailman/listinfo/gtk-list

Reply via email to