diff options
author | Peter Harvey <peter.a.harvey@gmail.com> | 2006-02-21 21:44:16 +0800 |
---|---|---|
committer | Peter Anthony Harvey <paharvey@src.gnome.org> | 2006-02-21 21:44:16 +0800 |
commit | c66ab87ed9b35bfafa1ad6aba79419d153e29de7 (patch) | |
tree | b79583242bc9e7387724f658f061fb687c0bc8fb /lib/egg/egg-toolbars-model.c | |
parent | 6dd4bf1e1ebfee184ebfa38781ab6418c42e652a (diff) | |
download | gsoc2013-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 'lib/egg/egg-toolbars-model.c')
-rwxr-xr-x | lib/egg/egg-toolbars-model.c | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/lib/egg/egg-toolbars-model.c b/lib/egg/egg-toolbars-model.c index 3162c304a..f0a5b0fa0 100755 --- a/lib/egg/egg-toolbars-model.c +++ b/lib/egg/egg-toolbars-model.c @@ -123,6 +123,8 @@ egg_toolbars_model_to_xml (EggToolbarsModel *model) xmlSetProp (tnode, (const xmlChar*) "name", (const xmlChar*) toolbar->name); xmlSetProp (tnode, (const xmlChar*) "hidden", (toolbar->flags&EGG_TB_MODEL_HIDDEN) ? (const xmlChar*) "true" : (const xmlChar*) "false"); + xmlSetProp (tnode, (const xmlChar*) "editable", + (toolbar->flags&EGG_TB_MODEL_NOT_EDITABLE) ? (const xmlChar*) "false" : (const xmlChar*) "true"); for (l2 = l1->children; l2 != NULL; l2 = l2->next) { @@ -588,6 +590,11 @@ parse_toolbars (EggToolbarsModel *model, flags = egg_toolbars_model_get_flags (model, position); xmlFree (string); + string = xmlGetProp (child, (const xmlChar*) "editable"); + if (string && xmlStrEqual (string, (const xmlChar*) "false")) + flags |= EGG_TB_MODEL_NOT_EDITABLE; + xmlFree (string); + string = xmlGetProp (child, (const xmlChar*) "hidden"); if (string && xmlStrEqual (string, (const xmlChar*) "true")) flags |= EGG_TB_MODEL_HIDDEN; |