Commit 52e0d15a4509061b094fbed66ef5278cc21f84e1
1 parent
60f6a213
Exists in
master
and in
5 other branches
Iniciando implementação dos menus popup
Showing
2 changed files
with
20 additions
and
4 deletions
Show diff stats
src/gtk/mainwindow.c
| ... | ... | @@ -47,6 +47,16 @@ |
| 47 | 47 | ACTION_GROUP_MAX |
| 48 | 48 | }; |
| 49 | 49 | |
| 50 | + enum popup_group | |
| 51 | + { | |
| 52 | + POPUP_DEFAULT, | |
| 53 | + POPUP_ONLINE, | |
| 54 | + POPUP_OFFLINE, | |
| 55 | + POPUP_SELECTION, | |
| 56 | + | |
| 57 | + POPUP_MAX | |
| 58 | + }; | |
| 59 | + | |
| 50 | 60 | static const gchar *groupname[ACTION_GROUP_MAX+1] = { "default", |
| 51 | 61 | "online", |
| 52 | 62 | "offline", |
| ... | ... | @@ -56,6 +66,13 @@ |
| 56 | 66 | "paste", |
| 57 | 67 | NULL |
| 58 | 68 | }; |
| 69 | + | |
| 70 | + static const gchar *popupname[POPUP_MAX+1] = { "default", | |
| 71 | + "online", | |
| 72 | + "offline", | |
| 73 | + "selection", | |
| 74 | + NULL | |
| 75 | + }; | |
| 59 | 76 | /*--[ Implement ]------------------------------------------------------------------------------------*/ |
| 60 | 77 | |
| 61 | 78 | static void save_toggle(GtkWidget *widget, LIB3270_TOGGLE id, gboolean toggled, const gchar *name, GtkWindow *toplevel) |
| ... | ... | @@ -208,7 +225,7 @@ |
| 208 | 225 | } |
| 209 | 226 | |
| 210 | 227 | // Create window |
| 211 | - window = ui_parse_xml_folder(path,groupname,terminal,widget_setup); | |
| 228 | + window = ui_parse_xml_folder(path,groupname,popupname,terminal,widget_setup); | |
| 212 | 229 | group = g_object_get_data(G_OBJECT(window),"action_groups"); |
| 213 | 230 | |
| 214 | 231 | // Setup action groups | ... | ... |
src/gtk/uiparser/uiparser.cbp
| ... | ... | @@ -31,13 +31,12 @@ |
| 31 | 31 | </Build> |
| 32 | 32 | <Compiler> |
| 33 | 33 | <Add option="-Wall" /> |
| 34 | - <Add option="`pkg-config gtk+-2.0 lib3270 --cflags`" /> | |
| 34 | + <Add option="`pkg-config gtk+-2.0 --cflags`" /> | |
| 35 | 35 | <Add directory="../../include" /> |
| 36 | 36 | </Compiler> |
| 37 | 37 | <Linker> |
| 38 | - <Add option="`pkg-config gtk+-2.0 lib3270 --libs`" /> | |
| 38 | + <Add option="`pkg-config gtk+-2.0 --libs`" /> | |
| 39 | 39 | </Linker> |
| 40 | - <Unit filename="../common/common.h" /> | |
| 41 | 40 | <Unit filename="../common/common.h.in" /> |
| 42 | 41 | <Unit filename="../common/config.c"> |
| 43 | 42 | <Option compilerVar="CC" /> | ... | ... |