How to remove GTK entry border?

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

 



Hello,

Right now my textbox looks like this:

https://i.imgur.com/cK5tDjd.png

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
_______________________________________________
gtk-list mailing list
gtk-list@xxxxxxxxx
https://mail.gnome.org/mailman/listinfo/gtk-list

[Index of Archives]     [Touch Screen Library]     [GIMP Users]     [Gnome]     [KDE]     [Yosemite News]     [Steve's Art]

  Powered by Linux