Adapt to Gtk.icon_size_lookup*() API changes
In PyGTK, icon_size_lookup*() returned just the icon size as a 2-tuple [1]. In GTK3+pygi, an additional boolean value indicating whether the passed-in value was valid is returned. [3,4] [1] http://developer.gnome.org/pygtk/stable/class-gtkiconsource.html#function-gtk--icon-size-lookup [2] http://developer.gnome.org/pygtk/stable/class-gtkiconsource.html#function-gtk--icon-size-lookup-for-settings [3] http://developer.gnome.org/gtk/stable/gtk-Themeable-Stock-Images.html#gtk-icon-size-lookup [4] http://developer.gnome.org/gtk/stable/gtk-Themeable-Stock-Images.html#gtk-icon-size-lookup-for-settings Signed-off-by: Simon Schampijer <simon@schampijer.de> [marked unused local variables, fixed overlong line] Signed-off-by: Sascha Silbe <silbe@activitycentral.com>master
parent
8efb7c3f93
commit
0d827e7e66
Loading…
Reference in New Issue