How to remove GTK entry border?

2018-03-26 Thread Alexander Medvednikov
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, GtkEnt

Re: How to remove GTK entry border?

2018-03-26 Thread Timm Bäder
I'm not going to question an entry without any visible border here for a second. GtkEntry has a has-frame property you can set to FALSE which will add the .flat style class to it, and themes *should* disable the border in that case. You are also aware that gtk4 is not stable? If you want to comp

Re: How to remove GTK entry border?

2018-03-26 Thread Alexander Medvednikov
Thanks Timm, I draw a light border myself, so the text entry is quite visible. I forgot to mention that I already tried gtk_entry_set_has_frame(entry, FALSE). I'll try it with GTK 3. -Alex On 26 March 2018 at 14:34, Timm Bäder wrote: > > I'm not going to question an entry without any visibl

Re: How to remove GTK entry border?

2018-03-26 Thread Alexander Medvednikov
Actually border:none did it. Thanks a lot! On 26 March 2018 at 14:39, Alexander Medvednikov wrote: > Thanks Timm, > > I draw a light border myself, so the text entry is quite visible. > > I forgot to mention that I already tried gtk_entry_set_has_frame(entry, > FALSE). > > I'll try it with GTK 3