tags:

views:

69

answers:

1

In GTK+, how to remove this dotted border around a GtkButton, which gets drawn after we click the button?

alt text

+1  A: 

This is the "focus" indicator. To get rid of this, remove support for keyboard-controlled focus from the button, like this:

GTK_WIDGET_UNSET_FLAGS(GTK_WIDGET(button), GTK_WIDGET_CAN_FOCUS);
unwind