How to remove GTK entry border?
- From: Alexander Medvednikov <alexander medvednikov com>
- To: gtk-list gnome org
- Subject: How to remove GTK entry border?
- Date: Mon, 26 Mar 2018 13:50:47 +0300
Hello,
Right now my textbox looks like this:
I want there to be no border at all. I tried the following code without any luck:
GtkCssProvider *provider = gtk_css_provider_new ();
gtk_css_provider_load_from_data (GTK_CSS_PROVIDER (provider),
"entry, .entry, GtkEntry { border-width:0px ; }",
-1, NULL);
GdkDisplay *display = gdk_display_get_default ();
GdkScreen *screen = gdk_display_get_default_screen (display);
gtk_style_context_add_provider_for_screen (screen, GTK_STYLE_PROVIDER
(provider), GTK_STYLE_PROVIDER_PRIORITY_APPLICATION);
I'm using libgtk-4-0/artful 3.90.0-0ubuntu2 amd64
Thanks a lot!
-Alex
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]