menu seperator had label

Bug #241251 reported by David D Lowe
2
Affects Status Importance Assigned to Milestone
Glade
Fix Released
Undecided
Unassigned
glade-3 (Ubuntu)
Fix Released
Low
Ubuntu Desktop Bugs

Bug Description

Binary package hint: glade-3

Here are the steps to reproduce the problem using Glade 3.4.1:
- Create a new window, add a menu bar to it.
- Right click the menu bar, click edit
- Add an image stock preferences menu item after gtk-delete in the Edit menu.
- Add a menu item betwenn the preferences menu item and the gtk-delete menu item
- By default this menu item is of type Normal, change the label to something else, in my case "menutiemHaha"
- Now change the type to seperator.
- Save
In glade, the menu item will appear as a seperator, however, when using the glade file in a simple python pygtk app, the item will appear as a normal menu item, with a label.
Upon examining the glade file in a text editor, I found the offending piece of XML:
<widget class="GtkSeparatorMenuItem" id="menuitem6">
 <property name="visible">True</property>
 <property name="events">GDK_POINTER_MOTION_MASK | GDK_POINTER_MOTION_HINT_MASK | GDK_BUTTON_PRESS_MASK | GDK_BUTTON_RELEASE_MASK</property>
 <property name="label" translatable="yes">menuitemHaha</property>
 <property name="use_underline">True</property>
</widget>
The element property with the name "label" should have been deleted.

Attached is the glade file generated by Glade and not edited by hand.

ProblemType: Bug
Architecture: i386
Date: Thu Jun 19 11:53:48 2008
DistroRelease: Ubuntu 7.10
NonfreeKernelModules: fglrx
Package: glade-3 3.4.1-1~getdeb1
PackageArchitecture: i386
SourcePackage: glade-3
Uname: Linux david-laptop 2.6.22-14-generic #1 SMP Tue Feb 12 07:42:25 UTC 2008 i686 GNU/Linux
UnreportableReason: This is not a genuine Ubuntu package

Tags: apport-bug
Revision history for this message
David D Lowe (flimm) wrote :
description: updated
Revision history for this message
Pedro Villavicencio (pedro) wrote :

do you have the same with glade-3 from hardy?

Changed in glade-3:
assignee: nobody → desktop-bugs
importance: Undecided → Low
status: New → Incomplete
Revision history for this message
David D Lowe (flimm) wrote :

Yes, I just tested, I have the same problem with Glade 3.4.5 on Hardy.
BTW, to fix the flawed XML that was generated, I had to delete both:
<property name="label" translatable="yes">menuitemHaha</property>
and
<property name="use_underline">True</property>

Revision history for this message
David D Lowe (flimm) wrote :

Reset status from Incomplete to New, since I've answered the question.

Changed in glade-3:
status: Incomplete → New
Revision history for this message
Pedro Villavicencio (pedro) wrote :

thanks will send this upstream.

Changed in glade-3:
status: New → Confirmed
Revision history for this message
Robert Ancell (robert-ancell) wrote :

Tested in Glade 3.6.0 (Jaunty) - the menu editor no longer allows a menuitem to be changed after it is created so this cannot be reproduced. Thanks for the bug report.

Changed in glade-3:
status: Confirmed → Fix Released
status: New → Fix Released
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.