Re: Button Labels & Test Post
- From: Olexiy Avramchenko <olexiy ctech cn ua>
- To: Rob Wilkens <robw optonline net>
- Cc: gtk-list gnome org
- Subject: Re: Button Labels & Test Post
- Date: Mon, 22 Aug 2005 10:06:18 +0300
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
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]