From 52e0d15a4509061b094fbed66ef5278cc21f84e1 Mon Sep 17 00:00:00 2001 From: perry.werneck@gmail.com Date: Fri, 9 Mar 2012 14:20:28 +0000 Subject: [PATCH] Iniciando implementação dos menus popup --- src/gtk/mainwindow.c | 19 ++++++++++++++++++- src/gtk/uiparser/uiparser.cbp | 5 ++--- 2 files changed, 20 insertions(+), 4 deletions(-) diff --git a/src/gtk/mainwindow.c b/src/gtk/mainwindow.c index a72d680..c2a5a92 100644 --- a/src/gtk/mainwindow.c +++ b/src/gtk/mainwindow.c @@ -47,6 +47,16 @@ ACTION_GROUP_MAX }; + enum popup_group + { + POPUP_DEFAULT, + POPUP_ONLINE, + POPUP_OFFLINE, + POPUP_SELECTION, + + POPUP_MAX + }; + static const gchar *groupname[ACTION_GROUP_MAX+1] = { "default", "online", "offline", @@ -56,6 +66,13 @@ "paste", NULL }; + + static const gchar *popupname[POPUP_MAX+1] = { "default", + "online", + "offline", + "selection", + NULL + }; /*--[ Implement ]------------------------------------------------------------------------------------*/ static void save_toggle(GtkWidget *widget, LIB3270_TOGGLE id, gboolean toggled, const gchar *name, GtkWindow *toplevel) @@ -208,7 +225,7 @@ } // Create window - window = ui_parse_xml_folder(path,groupname,terminal,widget_setup); + window = ui_parse_xml_folder(path,groupname,popupname,terminal,widget_setup); group = g_object_get_data(G_OBJECT(window),"action_groups"); // Setup action groups diff --git a/src/gtk/uiparser/uiparser.cbp b/src/gtk/uiparser/uiparser.cbp index 349bdb6..5288f37 100644 --- a/src/gtk/uiparser/uiparser.cbp +++ b/src/gtk/uiparser/uiparser.cbp @@ -31,13 +31,12 @@ - + - + -