diff --git a/src/pw3270/uiparser/toolbar.c b/src/pw3270/uiparser/toolbar.c index 1820cda..038adbf 100644 --- a/src/pw3270/uiparser/toolbar.c +++ b/src/pw3270/uiparser/toolbar.c @@ -52,6 +52,7 @@ { GtkWidget * widget = NULL; const gchar * label = NULL; + const gchar * key; if(info->element) { @@ -67,6 +68,68 @@ widget = gtk_toolbar_new(); + key = ui_get_attribute("style",names,values); + if(key) + { + static const struct _xlat + { + GtkToolbarStyle style; + const gchar * name; + } xlat[] = + { + { GTK_TOOLBAR_ICONS, "icons" }, + { GTK_TOOLBAR_TEXT, "text" }, + { GTK_TOOLBAR_BOTH, "icons&text" }, + { GTK_TOOLBAR_BOTH, "both" }, + { GTK_TOOLBAR_BOTH_HORIZ, "horizontal" }, + { GTK_TOOLBAR_BOTH_HORIZ, "htext" }, + }; + + int f; + + for(f=0;f