GtkButton vs. GtkLabel font relief: how to customise one or the other?



Hello,

I would like to create a completely borderless button.

  1. Using gtk_button_set_relief(GtkButton, GTK_RELIEF_NONE) changes the button appearance on GTK_STATE_NORMAL only.
  2. Using a GtkEventBox to wrap a label has two graphical drawbacks:
    1. the label's font has no relief in comparison to the button's font,
    2. the event box, even when set_visible_window() is set to False, renders a resize-handle on the bottom, right hand side.
Ideally i would like to create a borderless button-like widget, with font relief, callbacks and no resize handle.

I detailed this problem on StackOverflow with screenshots: http://stackoverflow.com/questions/5924037/gtkbutton-vs-gtklabel-font-relief-how-to-customise-one-or-the-other

Thanks for your help.

Benjamin


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