From 0b0a0fb00589e051fc7d28361f069375b6913059 Mon Sep 17 00:00:00 2001 From: perry.werneck@gmail.com Date: Fri, 3 May 2013 17:32:39 +0000 Subject: [PATCH] Incluindo mais atributos na toolbar --- src/pw3270/uiparser/toolbar.c | 63 +++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 63 insertions(+), 0 deletions(-) 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