diff options
author | Marco Pesenti Gritti <mpeseng@src.gnome.org> | 2003-02-13 03:21:00 +0800 |
---|---|---|
committer | Marco Pesenti Gritti <mpeseng@src.gnome.org> | 2003-02-13 03:21:00 +0800 |
commit | 764f52e639805fe04fc9efbb1a398160fd424e5f (patch) | |
tree | 6d40b33dc86f32014f54102df98934235615db58 /src/toolbar.c | |
parent | 87dacf48f3b15b9cef564af8a82b05f4a0b236d9 (diff) | |
download | gsoc2013-epiphany-764f52e639805fe04fc9efbb1a398160fd424e5f.tar gsoc2013-epiphany-764f52e639805fe04fc9efbb1a398160fd424e5f.tar.gz gsoc2013-epiphany-764f52e639805fe04fc9efbb1a398160fd424e5f.tar.bz2 gsoc2013-epiphany-764f52e639805fe04fc9efbb1a398160fd424e5f.tar.lz gsoc2013-epiphany-764f52e639805fe04fc9efbb1a398160fd424e5f.tar.xz gsoc2013-epiphany-764f52e639805fe04fc9efbb1a398160fd424e5f.tar.zst gsoc2013-epiphany-764f52e639805fe04fc9efbb1a398160fd424e5f.zip |
*** empty log message ***
Diffstat (limited to 'src/toolbar.c')
-rwxr-xr-x | src/toolbar.c | 17 |
1 files changed, 17 insertions, 0 deletions
diff --git a/src/toolbar.c b/src/toolbar.c index 5ae01edc2..1872a86eb 100755 --- a/src/toolbar.c +++ b/src/toolbar.c @@ -33,6 +33,7 @@ #include "ephy-string.h" #include "ephy-debug.h" #include "ephy-new-bookmark.h" +#include "ephy-toolbars-group.h" #include <string.h> @@ -157,6 +158,7 @@ toolbar_get_action (EphyEditableToolbar *etoolbar, title = (const char *)uris->next->data; } + LOG ("Action for bookmark -%s-. EphyBookmarks %p", url, bookmarks) id = ephy_bookmarks_get_bookmark_id (bookmarks, url); if (id == 0) @@ -335,11 +337,26 @@ toolbar_set_window (Toolbar *t, EphyWindow *window) static void toolbar_init (Toolbar *t) { + static EphyToolbarsGroup *group = NULL; + t->priv = g_new0 (ToolbarPrivate, 1); t->priv->window = NULL; t->priv->ui_merge = NULL; t->priv->visibility = TRUE; + + if (group == NULL) + { + char *user; + + user = g_build_filename (ephy_dot_dir (), "toolbar.xml", NULL); + group = ephy_toolbars_group_new (); + ephy_toolbars_group_set_source + (group, ephy_file ("epiphany-toolbar.xml"), user); + g_free (user); + } + + g_object_set (t, "ToolbarsGroup", group, NULL); } static void |