Commit 26ffb003 authored by Tim Janik's avatar Tim Janik Committed by Tim Janik

fix implicit branch creation, we need the *real* parent path for this and

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.
parent e3eedba2
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
......
......@@ -1024,16 +1024,23 @@ gtk_item_factory_create_item (GtkItemFactory *ifactory,
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);
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment