Commit ae0903ea87393a8952bfbf7f0df46ce1912f4fd2
1 parent
a2df9ddc
Exists in
master
and in
5 other branches
Corrigindo apresentação dos menus popup.
Showing
5 changed files
with
12 additions
and
11 deletions
Show diff stats
src/gtk/common/config.c
| ... | ... | @@ -355,7 +355,7 @@ void set_boolean_to_config(const gchar *group, const gchar *key, gboolean val) |
| 355 | 355 | DWORD disp; |
| 356 | 356 | gchar * path = g_strdup_printf("%s\\%s",registry_path,group); |
| 357 | 357 | |
| 358 | - trace("Creating key %s",path); | |
| 358 | +// trace("Creating key %s",path); | |
| 359 | 359 | if(RegCreateKeyEx(HKEY_CURRENT_USER,path,0,NULL,REG_OPTION_NON_VOLATILE,KEY_SET_VALUE,NULL,&hKey,&disp) == ERROR_SUCCESS) |
| 360 | 360 | { |
| 361 | 361 | DWORD value = val ? 1 : 0; | ... | ... |
src/gtk/uiparser/menuitem.c
| ... | ... | @@ -89,7 +89,7 @@ |
| 89 | 89 | |
| 90 | 90 | gtk_menu_shell_append((GtkMenuShell *) menu, widget); |
| 91 | 91 | |
| 92 | - return G_OBJECT(ui_insert_element(info, action, UI_ELEMENT_MENUITEM, names, values, G_OBJECT(widget), error)); | |
| 92 | + return G_OBJECT(widget); | |
| 93 | 93 | } |
| 94 | 94 | |
| 95 | 95 | void ui_end_menuitem(GObject *widget,struct parser *info,GError **error) | ... | ... |
src/gtk/uiparser/private.h
| ... | ... | @@ -38,7 +38,6 @@ |
| 38 | 38 | { |
| 39 | 39 | UI_ELEMENT_MENUBAR, |
| 40 | 40 | UI_ELEMENT_MENU, |
| 41 | - UI_ELEMENT_MENUITEM, | |
| 42 | 41 | UI_ELEMENT_TOOLBAR, |
| 43 | 42 | UI_ELEMENT_TOOLITEM, |
| 44 | 43 | UI_ELEMENT_POPUP, |
| ... | ... | @@ -49,6 +48,7 @@ |
| 49 | 48 | #define UI_ELEMENT_SEPARATOR UI_ELEMENT_COUNT+1 |
| 50 | 49 | #define UI_ELEMENT_ACCELERATOR UI_ELEMENT_COUNT+2 |
| 51 | 50 | #define UI_ELEMENT_SCRIPT UI_ELEMENT_COUNT+3 |
| 51 | + #define UI_ELEMENT_MENUITEM UI_ELEMENT_COUNT+4 | |
| 52 | 52 | |
| 53 | 53 | struct parser |
| 54 | 54 | { | ... | ... |
src/gtk/uiparser/uiparser.cbp
| ... | ... | @@ -7,8 +7,8 @@ |
| 7 | 7 | <Option compiler="gcc" /> |
| 8 | 8 | <Build> |
| 9 | 9 | <Target title="Debug"> |
| 10 | - <Option output=".bin/Debug/uiparser" prefix_auto="1" extension_auto="1" /> | |
| 11 | - <Option object_output=".obj/Debug/" /> | |
| 10 | + <Option output=".bin\Debug\uiparser" prefix_auto="1" extension_auto="1" /> | |
| 11 | + <Option object_output=".obj\Debug\" /> | |
| 12 | 12 | <Option type="1" /> |
| 13 | 13 | <Option compiler="gcc" /> |
| 14 | 14 | <Compiler> |
| ... | ... | @@ -17,8 +17,8 @@ |
| 17 | 17 | </Compiler> |
| 18 | 18 | </Target> |
| 19 | 19 | <Target title="Release"> |
| 20 | - <Option output=".bin/Release/uiparser" prefix_auto="1" extension_auto="1" /> | |
| 21 | - <Option object_output=".obj/Release/" /> | |
| 20 | + <Option output=".bin\Release\uiparser" prefix_auto="1" extension_auto="1" /> | |
| 21 | + <Option object_output=".obj\Release\" /> | |
| 22 | 22 | <Option type="0" /> |
| 23 | 23 | <Option compiler="gcc" /> |
| 24 | 24 | <Compiler> |
| ... | ... | @@ -32,13 +32,13 @@ |
| 32 | 32 | <Compiler> |
| 33 | 33 | <Add option="-Wall" /> |
| 34 | 34 | <Add option="`pkg-config gtk+-2.0 --cflags`" /> |
| 35 | - <Add directory="../../include" /> | |
| 35 | + <Add directory="..\..\include" /> | |
| 36 | 36 | </Compiler> |
| 37 | 37 | <Linker> |
| 38 | 38 | <Add option="`pkg-config gtk+-2.0 --libs`" /> |
| 39 | 39 | </Linker> |
| 40 | - <Unit filename="../common/common.h.in" /> | |
| 41 | - <Unit filename="../common/config.c"> | |
| 40 | + <Unit filename="..\common\common.h.in" /> | |
| 41 | + <Unit filename="..\common\config.c"> | |
| 42 | 42 | <Option compilerVar="CC" /> |
| 43 | 43 | </Unit> |
| 44 | 44 | <Unit filename="accelerator.c"> |
| ... | ... | @@ -83,6 +83,7 @@ |
| 83 | 83 | <Unit filename="toolitem.c"> |
| 84 | 84 | <Option compilerVar="CC" /> |
| 85 | 85 | </Unit> |
| 86 | + <Unit filename="..\..\..\ui\default.xml" /> | |
| 86 | 87 | <Extensions> |
| 87 | 88 | <code_completion /> |
| 88 | 89 | <debugger /> | ... | ... |
ui/default.xml
| ... | ... | @@ -155,7 +155,7 @@ |
| 155 | 155 | <menuitem action='Quit'/> |
| 156 | 156 | </popup> |
| 157 | 157 | |
| 158 | - <popup name='defaultpopup' type="default"> | |
| 158 | + <popup name='defaultpopup' type='default'> | |
| 159 | 159 | <menuitem action='Paste'/> |
| 160 | 160 | <menuitem action='PasteNext'/> |
| 161 | 161 | <menuitem action='SelectAll'/> | ... | ... |