2008-02-17 Johan Dahlin <johan@gnome.org>
* gtk/gtk-builder-convert (GtkBuilderConverter._add_action_from_menuitem):
When converting a stock item based on the label, remove the label property.
(bug #515824, Yuri Pimenov)
svn path=/trunk/; revision=19607
+2008-02-17 Johan Dahlin <johan@gnome.org>
+
+ * gtk/gtk-builder-convert (GtkBuilderConverter._add_action_from_menuitem):
+ When converting a stock item based on the label, remove the label property.
+
2008-02-17 Richard Hult <richard@imendio.com>
* gdk/quartz/GdkQuartzWindow.c: (showAndMakeKey): Update the
raise NotImplementedError(object_class)
if get_property(node, 'use_stock') == 'True':
- child = get_property_node(node, 'label')
- if child:
+ if 'label' in properties:
properties['stock_id'] = child
+ del properties['label']
properties['name'] = object_id
action = self._create_object(name,
object_id,
properties=properties)
-
for signal in get_signal_nodes(node):
signal_name = signal.getAttribute('name')
if signal_name in ['activate', 'toggled']: