Use GObject constructor for Gtk.Alignment
With PyGTK, all parameters of the Alignment constructor had defaults [1]. With GTK3+pygi, when using the explicit constructor (Alignment.new() resp. gtk_alignment_new() [2]), all values would need to be passed. However when using the GObject constructor, named properties can be passed in instead and we only need to pass those that different from the default. [1] http://developer.gnome.org/pygtk/stable/class-gtkalignment.html#constructor-gtkalignment [2] http://developer.gnome.org/gtk/stable/GtkAlignment.html#gtk-alignment-new Signed-off-by: Simon Schampijer <simon@schampijer.de> [assembled from several patches; replaced description] Signed-off-by: Sascha Silbe <silbe@activitycentral.com>master
parent
c82a775267
commit
20319cb3c4
Loading…
Reference in New Issue