Re: How do I convert this code?
- Date: Sun, 2 Aug 2015 16:56:09 -0400
- From: Igor Korot <ikorot01@xxxxxxxxx>
- Subject: Re: How do I convert this code?
On Sun, Aug 2, 2015 at 3:52 PM, Emmanuele Bassi <ebassi@xxxxxxxxx> wrote:
> the actual question is: why do you need the border of the GtkEntry at all?
> Are you drawing over the entry?
I'm trying to convert the code which uses an "inner border of GtkEntry.
It gets the border sets some values to it and then sets the modified border.
Now I have no idea what is it for and where this code is calling from...
So I converted the geting the border piece, but it looks like there is no
gtk_style_context_set_border(). Any help on that?
And for the time being I prefer to just stay with the old algorithm...
> On Sunday, August 2, 2015, Igor Korot <ikorot01@xxxxxxxxx> wrote:
>> Hi, ALL,
>> In my GTK+-2 I have a following code:
>> const GtkBorder* oldBorder = gtk_entry_get_inner_border(entry);
>> Unfortunately this function is deprecated in GTK+-3.4.
>> Now the documentation suggests to use GtkStyleContext and GtkCssProvider.
>> Looking at GtkStyleContext I see that it has
>> However, this function first parameter is "GtkStyleContext *".
>> So what would be the proper code replacement?
>> Should I construct a blank GtkStyleContext? But then how to attach it
>> to the widget? Or I am looking at it completely wrong?
>> Thank you for any pointers you can provide.
>> gtk-list mailing list
> [@] ebassi [@gmail.com]
gtk-list mailing list