+Tue Feb 23 17:52:37 1999 Tim Janik <timj@gtk.org>
+
+ * gtk/gtkitemfactory.c (gtk_item_factory_create_item): fix implicit
+ branch creation, we need the *real* parent path for this and
+ gtk_item_factory_parse_path() only returns the parent path with "_?"
+ stripped off.
+
1999-02-23 Pavel Machek <pavel@artax.karlin.mff.cuni.cz>
* gtk/gtkentry.c (gtk_entry_finalize): trivial bugfix
+Tue Feb 23 17:52:37 1999 Tim Janik <timj@gtk.org>
+
+ * gtk/gtkitemfactory.c (gtk_item_factory_create_item): fix implicit
+ branch creation, we need the *real* parent path for this and
+ gtk_item_factory_parse_path() only returns the parent path with "_?"
+ stripped off.
+
1999-02-23 Pavel Machek <pavel@artax.karlin.mff.cuni.cz>
* gtk/gtkentry.c (gtk_entry_finalize): trivial bugfix
+Tue Feb 23 17:52:37 1999 Tim Janik <timj@gtk.org>
+
+ * gtk/gtkitemfactory.c (gtk_item_factory_create_item): fix implicit
+ branch creation, we need the *real* parent path for this and
+ gtk_item_factory_parse_path() only returns the parent path with "_?"
+ stripped off.
+
1999-02-23 Pavel Machek <pavel@artax.karlin.mff.cuni.cz>
* gtk/gtkentry.c (gtk_entry_finalize): trivial bugfix
+Tue Feb 23 17:52:37 1999 Tim Janik <timj@gtk.org>
+
+ * gtk/gtkitemfactory.c (gtk_item_factory_create_item): fix implicit
+ branch creation, we need the *real* parent path for this and
+ gtk_item_factory_parse_path() only returns the parent path with "_?"
+ stripped off.
+
1999-02-23 Pavel Machek <pavel@artax.karlin.mff.cuni.cz>
* gtk/gtkentry.c (gtk_entry_finalize): trivial bugfix
+Tue Feb 23 17:52:37 1999 Tim Janik <timj@gtk.org>
+
+ * gtk/gtkitemfactory.c (gtk_item_factory_create_item): fix implicit
+ branch creation, we need the *real* parent path for this and
+ gtk_item_factory_parse_path() only returns the parent path with "_?"
+ stripped off.
+
1999-02-23 Pavel Machek <pavel@artax.karlin.mff.cuni.cz>
* gtk/gtkentry.c (gtk_entry_finalize): trivial bugfix
+Tue Feb 23 17:52:37 1999 Tim Janik <timj@gtk.org>
+
+ * gtk/gtkitemfactory.c (gtk_item_factory_create_item): fix implicit
+ branch creation, we need the *real* parent path for this and
+ gtk_item_factory_parse_path() only returns the parent path with "_?"
+ stripped off.
+
1999-02-23 Pavel Machek <pavel@artax.karlin.mff.cuni.cz>
* gtk/gtkentry.c (gtk_entry_finalize): trivial bugfix
+Tue Feb 23 17:52:37 1999 Tim Janik <timj@gtk.org>
+
+ * gtk/gtkitemfactory.c (gtk_item_factory_create_item): fix implicit
+ branch creation, we need the *real* parent path for this and
+ gtk_item_factory_parse_path() only returns the parent path with "_?"
+ stripped off.
+
1999-02-23 Pavel Machek <pavel@artax.karlin.mff.cuni.cz>
* gtk/gtkentry.c (gtk_entry_finalize): trivial bugfix
if (!parent)
{
GtkItemFactoryEntry pentry;
+ gchar *ppath, *p;
- pentry.path = parent_path;
+ ppath = g_strdup (entry->path);
+ p = strrchr (ppath, '/');
+ g_return_if_fail (p != NULL);
+ *p = 0;
+ pentry.path = ppath;
pentry.accelerator = NULL;
pentry.callback = NULL;
pentry.callback_action = 0;
pentry.item_type = "<Branch>";
gtk_item_factory_create_item (ifactory, &pentry, NULL, 1);
+ g_free (ppath);
parent = gtk_item_factory_get_widget (ifactory, parent_path);
+ g_return_if_fail (parent != NULL);
}
g_free (parent_path);