diff options
Diffstat (limited to 'src/ephy-shell.c')
-rw-r--r-- | src/ephy-shell.c | 15 |
1 files changed, 15 insertions, 0 deletions
diff --git a/src/ephy-shell.c b/src/ephy-shell.c index 731bec1ea..9d71bfcef 100644 --- a/src/ephy-shell.c +++ b/src/ephy-shell.c @@ -58,6 +58,7 @@ struct EphyShellPrivate Session *session; EphyAutocompletion *autocompletion; EphyBookmarks *bookmarks; + EphyToolbarsModel *toolbars_model; GtkWidget *bme; GtkWidget *history_window; }; @@ -263,6 +264,7 @@ ephy_shell_init (EphyShell *gs) gs->priv->bookmarks = NULL; gs->priv->bme = NULL; gs->priv->history_window = NULL; + gs->priv->toolbars_model = NULL; ephy_shell = gs; g_object_add_weak_pointer (G_OBJECT(ephy_shell), @@ -640,6 +642,19 @@ ephy_shell_get_bookmarks (EphyShell *gs) return gs->priv->bookmarks; } +EphyToolbarsModel * +ephy_shell_get_toolbars_model (EphyShell *gs) +{ + if (gs->priv->toolbars_model == NULL) + { + gs->priv->toolbars_model = ephy_toolbars_model_new (); + egg_toolbars_model_load (EGG_TOOLBARS_MODEL (gs->priv->toolbars_model), + ephy_file ("epiphany-toolbar.xml")); + } + + return gs->priv->toolbars_model; +} + static void bookmarks_hide_cb (GtkWidget *widget, gpointer data) { |