aboutsummaryrefslogtreecommitdiffstats
path: root/lib/egg/egg-toolbars-model.c
diff options
context:
space:
mode:
authorMarco Pesenti Gritti <marco@gnome.org>2003-09-19 16:50:56 +0800
committerMarco Pesenti Gritti <marco@src.gnome.org>2003-09-19 16:50:56 +0800
commite886e958845ad243debf35139ffa81be9aad3088 (patch)
treef34abd6e2d5a11a346d59b0584e25a0900e7e127 /lib/egg/egg-toolbars-model.c
parent3d4cc4657225dcd214857e2c6d9798d881d00623 (diff)
downloadgsoc2013-epiphany-e886e958845ad243debf35139ffa81be9aad3088.tar
gsoc2013-epiphany-e886e958845ad243debf35139ffa81be9aad3088.tar.gz
gsoc2013-epiphany-e886e958845ad243debf35139ffa81be9aad3088.tar.bz2
gsoc2013-epiphany-e886e958845ad243debf35139ffa81be9aad3088.tar.lz
gsoc2013-epiphany-e886e958845ad243debf35139ffa81be9aad3088.tar.xz
gsoc2013-epiphany-e886e958845ad243debf35139ffa81be9aad3088.tar.zst
gsoc2013-epiphany-e886e958845ad243debf35139ffa81be9aad3088.zip
Do not use .in for not to translate files.
2003-09-19 Marco Pesenti Gritti <marco@gnome.org> * data/ui/Makefile.am: * data/ui/epiphany-bookmark-editor-ui.xml.in: * data/ui/epiphany-fs-toolbar.xml: * data/ui/epiphany-history-window-ui.xml.in: * data/ui/epiphany-toolbar.xml.in: * data/ui/epiphany-ui.xml.in: Do not use .in for not to translate files. * lib/egg/egg-editable-toolbar.c: (create_toolbar), (toolbars_clean), (egg_editable_toolbar_construct), (egg_editable_toolbar_set_model), (egg_editable_toolbar_set_merge): * lib/egg/egg-toolbars-model.c: (parse_toolbars): Handle change of properties correctly. Add a toolbar style property in the xml. * src/bookmarks/ephy-bookmark-properties.c: (ephy_bookmark_properties_init): * src/bookmarks/ephy-bookmarks-editor.c: (ephy_bookmarks_editor_init): * src/ephy-shell.c: (ephy_shell_init), (ephy_shell_finalize), (ephy_shell_get_toolbars_model): * src/ephy-shell.h: * src/ephy-window.c: (ephy_window_fullscreen), (ephy_window_unfullscreen): * src/toolbar.c: (bookmark_destroy_cb), (toolbar_ensure_action), (init_bookmarks_toolbar), (init_normal_mode), (init_fullscreen_mode), (window_state_event_cb), (toolbar_set_window), (toolbar_set_visibility): * src/toolbar.h: * src/window-commands.c: (toolbar_editor_response_cb), (window_cmd_edit_toolbar): Special, more compact, toolbar layout for fullscreen.
Diffstat (limited to 'lib/egg/egg-toolbars-model.c')
-rwxr-xr-xlib/egg/egg-toolbars-model.c8
1 files changed, 8 insertions, 0 deletions
diff --git a/lib/egg/egg-toolbars-model.c b/lib/egg/egg-toolbars-model.c
index 85ed145ab..fc74aa174 100755
--- a/lib/egg/egg-toolbars-model.c
+++ b/lib/egg/egg-toolbars-model.c
@@ -410,12 +410,20 @@ parse_toolbars (EggToolbarsModel *t,
if (xmlStrEqual (child->name, "toolbar"))
{
xmlChar *name;
+ xmlChar *style;
int position;
name = xmlGetProp (child, "name");
position = egg_toolbars_model_add_toolbar (t, -1, name);
xmlFree (name);
+ style = xmlGetProp (child, "style");
+ if (style && strcmp (style, "icons-only") == 0)
+ {
+ egg_toolbars_model_set_flags (t, EGG_TB_MODEL_ICONS_ONLY, 0);
+ }
+ xmlFree (style);
+
parse_item_list (t, child->children, position);
}