aboutsummaryrefslogtreecommitdiffstats
path: root/src/ephy-toolbar.c
diff options
context:
space:
mode:
authorPeter Harvey <peter.a.harvey@gmail.com>2006-02-21 21:44:16 +0800
committerPeter Anthony Harvey <paharvey@src.gnome.org>2006-02-21 21:44:16 +0800
commitc66ab87ed9b35bfafa1ad6aba79419d153e29de7 (patch)
treeb79583242bc9e7387724f658f061fb687c0bc8fb /src/ephy-toolbar.c
parent6dd4bf1e1ebfee184ebfa38781ab6418c42e652a (diff)
downloadgsoc2013-epiphany-c66ab87ed9b35bfafa1ad6aba79419d153e29de7.tar
gsoc2013-epiphany-c66ab87ed9b35bfafa1ad6aba79419d153e29de7.tar.gz
gsoc2013-epiphany-c66ab87ed9b35bfafa1ad6aba79419d153e29de7.tar.bz2
gsoc2013-epiphany-c66ab87ed9b35bfafa1ad6aba79419d153e29de7.tar.lz
gsoc2013-epiphany-c66ab87ed9b35bfafa1ad6aba79419d153e29de7.tar.xz
gsoc2013-epiphany-c66ab87ed9b35bfafa1ad6aba79419d153e29de7.tar.zst
gsoc2013-epiphany-c66ab87ed9b35bfafa1ad6aba79419d153e29de7.zip
data/ui/epiphany-fs-toolbar.xml lib/egg/egg-toolbars-model.c
2006-02-21 Peter Harvey <peter.a.harvey@gmail.com> * data/ui/epiphany-fs-toolbar.xml * lib/egg/egg-toolbars-model.c * lib/egg/egg-toolbars-model.h Added "editable" attribute for toolbars. * data/ui/epiphany-ui.xml * lib/egg/egg-editable-toolbar.c * lib/egg/egg-editable-toolbar.h * src/ephy-toolbar.c * src/ephy-window.c Many improvements to toolbar menus. Includes changes to show visibility toggles in multiple locations. * lib/ephy-stock-icons.c * lib/ephy-stock-icons.h Additional stock icon for drag and drop. * src/bookmarks/ephy-bookmarks-ui.c Make 'customize toolbar' invisible when editing. * src/ephy-shell.c Mark the full-screen toolbar as non-removable.
Diffstat (limited to 'src/ephy-toolbar.c')
-rwxr-xr-xsrc/ephy-toolbar.c20
1 files changed, 15 insertions, 5 deletions
diff --git a/src/ephy-toolbar.c b/src/ephy-toolbar.c
index f69d25a3c..2524764bd 100755
--- a/src/ephy-toolbar.c
+++ b/src/ephy-toolbar.c
@@ -736,9 +736,19 @@ ephy_toolbar_get_type (void)
EphyToolbar *
ephy_toolbar_new (EphyWindow *window)
{
- return EPHY_TOOLBAR (g_object_new (EPHY_TYPE_TOOLBAR,
- "window", window,
- "ui-manager", ephy_window_get_ui_manager (window),
- "visibility-path", "/menubar/ViewMenu/ViewTogglesGroup/ToolbarMenu",
- NULL));
+ EggEditableToolbar *etoolbar;
+
+ etoolbar = EGG_EDITABLE_TOOLBAR
+ (g_object_new (EPHY_TYPE_TOOLBAR,
+ "window", window,
+ "ui-manager", ephy_window_get_ui_manager (window),
+ "popup-path", "/ToolbarPopup",
+ NULL));
+
+ egg_editable_toolbar_add_visibility
+ (etoolbar, "/menubar/ViewMenu/ViewTogglesGroup/ToolbarMenu/ViewToolbarsGroup");
+ egg_editable_toolbar_add_visibility
+ (etoolbar, "/ToolbarPopup/ViewToolbarsGroup");
+
+ return EPHY_TOOLBAR (etoolbar);
}