aboutsummaryrefslogtreecommitdiffstats
path: root/lib/egg/egg-toolbars-model.c
diff options
context:
space:
mode:
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);
}