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


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:

Thanks for your help.


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