[Glade-devel] Re: GtkSeparatorMenuItem hack in _gtk_menu_item_is_selectable()



On Thu, 2004-01-22 at 05:45, Murray Cumming Comneon com wrote:
As I discovered here,
http://bugzilla.gnome.org/show_bug.cgi?id=130570

there is a hack in GTK+ in _gtk_menu_item_is_selectable() to allow
glade/libglade to use GtkMenuItems without labels, instead of
GtkSeparatorMenuItems, for separator menu items:
http://cvs.gnome.org/lxr/source/gtk+/gtk/gtkmenuitem.c#1381

Changing the .glade files to use GtkSeparatorMenuItems seems to work, so I
wonder why this hack exists. I'd like to fix glade so that C++ developers
don't need to edit the .glade file manually:
http://bugzilla.gnome.org/show_bug.cgi?id=129848

menus without labels was the GTK+-0.0 => GTK+-1.2 API for separators.
There was no good reason to break that usage, and it's not really
possible to deprecate it in any controlled way. So we might as well
keep it working.

Regards,
                                                Owen






[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]