Porting some exo code to GTK3 as part of SpaceFM - how to properly subclass GtkCellRendererText

compmastermike at yahoo.com compmastermike at yahoo.com
Sat Jul 11 02:07:06 CEST 2015


> On Friday, July 10, 2015 3:34 PM, OmegaPhil <OmegaPhil at startmail.com> wrote:
> SpaceFM[0] has recently nicked the icon picker/viewer from exo [...]


You shouldn't be using _get_size() at all in gtk3. This is the new height-for-width stuff that's new in gtk3. It's flexible, useful, and a pain. I learned it once when I ported viewnior to gtk3, but that's been a few years and I've otherwise forgotten it. Things to note that I do remember though are that calling gtk_widget_set_size_request will set the /minimum/ size of a widget and you won't be able to make it smaller than that. This is the best I can find right now that shows what it means:

https://developer.gnome.org/gtk3/stable/GtkWidget.html#geometry-management

https://blogs.gnome.org/tvb/2010/04/22/gtk-learns-height-for-width-geometry/

I can also try to dig up what I did and help you out.

~ BwackNinja


More information about the Xfce4-dev mailing list