Make gtk_ui_manager_add_ui() accept paths with a leading "/ui". (#149077,
Tue Aug 3 20:03:33 2004 Matthias Clasen <maclas@gmx.de> * gtk/gtkuimanager.c (get_node): Make gtk_ui_manager_add_ui() accept paths with a leading "/ui". (#149077, David Malcolm)
This commit is contained in:
parent
a8139b2d59
commit
f2f361cb12
@ -1,3 +1,12 @@
|
|||||||
|
Tue Aug 3 20:03:33 2004 Matthias Clasen <maclas@gmx.de>
|
||||||
|
|
||||||
|
* gtk/gtkuimanager.c (get_node): Make gtk_ui_manager_add_ui()
|
||||||
|
accept paths with a leading "/ui". (#149077, David Malcolm)
|
||||||
|
|
||||||
|
Tue Aug 3 19:59:29 2004 Matthias Clasen <maclas@gmx.de>
|
||||||
|
|
||||||
|
* gtk/gtkiconview.c: Fix some warnings.
|
||||||
|
|
||||||
Tue Aug 3 18:38:40 2004 Matthias Clasen <maclas@gmx.de>
|
Tue Aug 3 18:38:40 2004 Matthias Clasen <maclas@gmx.de>
|
||||||
|
|
||||||
* gtk/gtktreemodelfilter.c: Correct the return type
|
* gtk/gtktreemodelfilter.c: Correct the return type
|
||||||
|
@ -1,3 +1,12 @@
|
|||||||
|
Tue Aug 3 20:03:33 2004 Matthias Clasen <maclas@gmx.de>
|
||||||
|
|
||||||
|
* gtk/gtkuimanager.c (get_node): Make gtk_ui_manager_add_ui()
|
||||||
|
accept paths with a leading "/ui". (#149077, David Malcolm)
|
||||||
|
|
||||||
|
Tue Aug 3 19:59:29 2004 Matthias Clasen <maclas@gmx.de>
|
||||||
|
|
||||||
|
* gtk/gtkiconview.c: Fix some warnings.
|
||||||
|
|
||||||
Tue Aug 3 18:38:40 2004 Matthias Clasen <maclas@gmx.de>
|
Tue Aug 3 18:38:40 2004 Matthias Clasen <maclas@gmx.de>
|
||||||
|
|
||||||
* gtk/gtktreemodelfilter.c: Correct the return type
|
* gtk/gtktreemodelfilter.c: Correct the return type
|
||||||
|
@ -1,3 +1,12 @@
|
|||||||
|
Tue Aug 3 20:03:33 2004 Matthias Clasen <maclas@gmx.de>
|
||||||
|
|
||||||
|
* gtk/gtkuimanager.c (get_node): Make gtk_ui_manager_add_ui()
|
||||||
|
accept paths with a leading "/ui". (#149077, David Malcolm)
|
||||||
|
|
||||||
|
Tue Aug 3 19:59:29 2004 Matthias Clasen <maclas@gmx.de>
|
||||||
|
|
||||||
|
* gtk/gtkiconview.c: Fix some warnings.
|
||||||
|
|
||||||
Tue Aug 3 18:38:40 2004 Matthias Clasen <maclas@gmx.de>
|
Tue Aug 3 18:38:40 2004 Matthias Clasen <maclas@gmx.de>
|
||||||
|
|
||||||
* gtk/gtktreemodelfilter.c: Correct the return type
|
* gtk/gtktreemodelfilter.c: Correct the return type
|
||||||
|
@ -1,3 +1,12 @@
|
|||||||
|
Tue Aug 3 20:03:33 2004 Matthias Clasen <maclas@gmx.de>
|
||||||
|
|
||||||
|
* gtk/gtkuimanager.c (get_node): Make gtk_ui_manager_add_ui()
|
||||||
|
accept paths with a leading "/ui". (#149077, David Malcolm)
|
||||||
|
|
||||||
|
Tue Aug 3 19:59:29 2004 Matthias Clasen <maclas@gmx.de>
|
||||||
|
|
||||||
|
* gtk/gtkiconview.c: Fix some warnings.
|
||||||
|
|
||||||
Tue Aug 3 18:38:40 2004 Matthias Clasen <maclas@gmx.de>
|
Tue Aug 3 18:38:40 2004 Matthias Clasen <maclas@gmx.de>
|
||||||
|
|
||||||
* gtk/gtktreemodelfilter.c: Correct the return type
|
* gtk/gtktreemodelfilter.c: Correct the return type
|
||||||
|
@ -711,8 +711,6 @@ gtk_ui_manager_get_widget (GtkUIManager *self,
|
|||||||
* widget */
|
* widget */
|
||||||
gtk_ui_manager_ensure_update (self);
|
gtk_ui_manager_ensure_update (self);
|
||||||
|
|
||||||
if (strncmp ("/ui", path, 3) == 0)
|
|
||||||
path += 3;
|
|
||||||
node = get_node (self, path, NODE_TYPE_UNDECIDED, FALSE);
|
node = get_node (self, path, NODE_TYPE_UNDECIDED, FALSE);
|
||||||
|
|
||||||
if (node == NULL)
|
if (node == NULL)
|
||||||
@ -915,6 +913,9 @@ get_node (GtkUIManager *self,
|
|||||||
const gchar *pos, *end;
|
const gchar *pos, *end;
|
||||||
GNode *parent, *node;
|
GNode *parent, *node;
|
||||||
|
|
||||||
|
if (strncmp ("/ui", path, 3) == 0)
|
||||||
|
path += 3;
|
||||||
|
|
||||||
end = path + strlen (path);
|
end = path + strlen (path);
|
||||||
pos = path;
|
pos = path;
|
||||||
parent = node = NULL;
|
parent = node = NULL;
|
||||||
|
Loading…
Reference in New Issue
Block a user