diff options
author | 2008-10-27 03:44:14 -0400 | |
---|---|---|
committer | 2008-10-27 03:44:14 -0400 | |
commit | a87d7403532c3a2be43e158e0cf3dd1e8e82f7ab (patch) | |
tree | fd710e6ba5286026f26a6a4e69dfd84dcc109f1f /src/textadept.h | |
parent | 99c71445d4892fb8d465dc33767ac2fbc769ec50 (diff) | |
download | textadept-a87d7403532c3a2be43e158e0cf3dd1e8e82f7ab.tar.gz textadept-a87d7403532c3a2be43e158e0cf3dd1e8e82f7ab.zip |
Updated Textadept to compile and run on OSX with native GTK framework.
Diffstat (limited to 'src/textadept.h')
-rw-r--r-- | src/textadept.h | 18 |
1 files changed, 11 insertions, 7 deletions
diff --git a/src/textadept.h b/src/textadept.h index 4397b5f2..ad490cf2 100644 --- a/src/textadept.h +++ b/src/textadept.h @@ -12,17 +12,21 @@ #include <SciLexer.h> #include <ScintillaWidget.h> -#ifdef WIN32 -#include "Windows.h" -#define strcasecmp _stricmp -#endif - extern "C" { #include <lua.h> #include <lualib.h> #include <lauxlib.h> } +#ifdef WIN32 +#include "Windows.h" +#define strcasecmp _stricmp +#endif + +#ifdef MAC +#include "CoreFoundation/CoreFoundation.h" +#endif + // globals extern GtkWidget *window, *focused_editor, *command_entry, @@ -31,7 +35,7 @@ extern GtkWidget extern GtkEntryCompletion *command_entry_completion; extern GtkTreeStore *cec_store, *pm_store; extern lua_State *lua; -#ifndef WIN32 +#if !(WIN32 || MAC) static const char *textadept_home = "/usr/share/textadept/"; #else extern char *textadept_home; @@ -59,7 +63,7 @@ void pm_toggle_focus(); void pm_open_parent(GtkTreeIter *iter, GtkTreePath *path); void pm_close_parent(GtkTreeIter *iter, GtkTreePath *path); void pm_activate_selection(); -void pm_popup_context_menu(GdkEventButton *event, GCallback callback); +void pm_popup_context_menu(GdkEventButton *event); void pm_process_selected_menu_item(GtkWidget *menu_item); GtkWidget *find_create_ui(); |