Re: [gtk-list] implementing pixmap-rendered buttons



>      if ((button->relief != GTK_RELIEF_NONE) ||
>	  ((GTK_WIDGET_STATE(widget) != GTK_STATE_NORMAL) &&
>	   (GTK_WIDGET_STATE(widget) != GTK_STATE_INSENSITIVE)))
>	gtk_paint_box (widget->style, widget->window,
>		       GTK_WIDGET_STATE (widget),
>		       shadow_type, area, widget, "button",
>		       x, y, width, height);
>
>which draws over the pixmaps and looks ugly.

>Does anybody have a suggestion?

gtk_button_set_relief() looks like it might do the trick, given the
first clause of the if(...) statement above.

now you have to send me your code when it works :) i did this kind of
thing already, but in pure Gtk--, which makes it worthless for GTK+
users.

--p



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]