This part describes what you need to change in programs use older versions of GTK+ so that they can use the new features. It also mentions how to convert applications using widgets found in the libgnomeui library to use their counterparts in GTK+.
Table of Contents
- Migrating from GTK+ 2.x to GTK+ 4
- Migrating from GTK+ 3.x to GTK+ 4
- Preparation in GTK+ 3.x
- Changes that need to be done at the time of the switch
- Adapt to GdkWindow API changes
- Adapt to GtkStyleContext API changes
- Adapt to GtkCssProvider API changes
- Stop using GtkContainer::border-width
- Adapt to GtkWidget's size request changes
- Switch to GtkWidget's children APIs
- Don't use -gtk-gradient in your CSS
- Don't use -gtk-icon-effect in your CSS
- Use gtk_widget_measure
- Adapt to drawing model changes
- Stop using APIs to query GdkWindows
- Adapt to changes in animated hiding and showing of widgets
- Stop passing commandline arguments to
gtk_init()
