开发者

How to remove "selected" border around GtkButton?

开发者 https://www.devze.com 2022-12-11 09:44 出处:网络
In GTK+, how to remove this dotted border aro开发者_如何学Pythonund a GtkButton, which gets drawn after we click the button?

In GTK+, how to remove this dotted border aro开发者_如何学Pythonund a GtkButton, which gets drawn after we click the button?

How to remove "selected" border around GtkButton?


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);
0

精彩评论

暂无评论...
验证码 换一张
取 消