GNOME Bugzilla – Bug 553582
Add orientation API to GtkSeparator
Last modified: 2010-07-10 03:49:51 UTC
See bug #541009. Here are the patches for GtkSeparator, GtkHSeparator and GtkVSeparator.
Created attachment 119300 [details] [review] Patch implementing the above Add orientation API to GtkSeparator, move all of GtkHSeparator's and GtkVSeparatoir's code to GtkSeparator. Will do deprecations in separate commits because they imply lots of related changes.
Looks fine to me. Please do the obvious gtk.symbols and gtk-sections.txt addition when committing.
Committed a modified patch which uses the new GtkOrientable API. Leaving the bug open since deprecation needs to be discussed. Also, do we want to lock the orientation for objects created with the old API? 2008-09-30 Michael Natterer <mitch@imendio.com> Bug 553582 – Add orientation API to GtkSeparator * gtk/gtkseparator.[ch]: implement the GtkOrientable interface and swallow all code from GtkHSeparator and GtkVSeparator. Add gtk_separator_new() which takes a GtkOrientation argument. * gtk/gtkhseparator.c * gtk/gtkvseparator.c: remove all code except the constructor and call gtk_orientable_set_orientation() in init(). * gtk/gtk.symbols: add gtk_separator_new().
Patch was not committed as-is, but it's still pretty much the same that is in SVN now.
We also need to discuss changing the new instantiatable widget's defaults (like defaulting to visible instead of invisible) before this bug can be closed.
Closing since we gave up on visible