diff --git configure.ac configure.ac
index 5970a32..1cd97a8 100644
|
|
if test "$native_win32" = "yes"; then |
224 | 224 | fi |
225 | 225 | fi |
226 | 226 | |
227 | | dnl ================================================================ |
228 | | dnl Check for GDK Quartz and MacOSX integration package |
229 | | dnl ================================================================ |
230 | | _gdk_tgt=`$PKG_CONFIG --variable=target gdk-2.0` |
231 | | AM_CONDITIONAL([GDK_TARGET_QUARTZ], [test x$_gdk_tgt = xquartz]) |
232 | | if test "x$_gdk_tgt" = xquartz; then |
233 | | PKG_CHECK_MODULES(IGE_MAC, ige-mac-integration) |
234 | | |
235 | | IGE_MAC_BUNDLE_FLAG= |
236 | | |
237 | | AC_ARG_ENABLE(mac-bundle, |
238 | | AS_HELP_STRING([--enable-mac-bundle], [enable mac bundling]), |
239 | | build_bundle=yes, build_bundle=no) |
240 | | |
241 | | if test "x$build_bundle" = xyes; then |
242 | | AC_MSG_NOTICE([enableing mac bundle..]) |
243 | | |
244 | | IGE_MAC_BUNDLE_FLAG=-DMAC_BUNDLE |
245 | | fi |
246 | | |
247 | | AC_SUBST(IGE_MAC_BUNDLE_FLAG) |
248 | | AC_SUBST(IGE_MAC_LIBS) |
249 | | AC_SUBST(IGE_MAC_CFLAGS) |
250 | | fi |
251 | | |
252 | 227 | AC_SUBST([AM_CPPFLAGS]) |
253 | 228 | AC_SUBST([AM_CFLAGS]) |
254 | 229 | AC_SUBST([AM_CXXFLAGS]) |
diff --git gladeui/Makefile.am gladeui/Makefile.am
index c2ef6e4..90e928f 100644
|
|
libgladeui_1_la_CPPFLAGS = \ |
67 | 67 | -I$(top_srcdir) \ |
68 | 68 | -I$(top_builddir) \ |
69 | 69 | $(GTK_CFLAGS) \ |
70 | | $(IGE_MAC_BUNDLE_FLAG) \ |
71 | | $(IGE_MAC_CFLAGS) \ |
72 | 70 | $(WARN_CFLAGS) \ |
73 | 71 | $(AM_CPPFLAGS) |
74 | 72 | |
… |
… |
libgladeui_1_la_CFLAGS = \ |
76 | 74 | $(AM_CFLAGS) |
77 | 75 | |
78 | 76 | libgladeui_1_la_LDFLAGS = -version-info $(GLADE_CURRENT):$(GLADE_REVISION):$(GLADE_AGE) $(AM_LDFLAGS) |
79 | | libgladeui_1_la_LIBADD = $(GTK_LIBS) $(IGE_MAC_LIBS) |
| 77 | libgladeui_1_la_LIBADD = $(GTK_LIBS) |
80 | 78 | |
81 | 79 | |
82 | 80 | libgladeuiincludedir=$(includedir)/libgladeui-1.0/gladeui |
diff --git gladeui/glade-app.c gladeui/glade-app.c
index 88cdd48..0bff5da 100644
|
|
|
48 | 48 | #include <gdk/gdkkeysyms.h> |
49 | 49 | #include <gtk/gtk.h> |
50 | 50 | |
51 | | #ifdef MAC_INTEGRATION |
52 | | # include <ige-mac-integration.h> |
53 | | #endif |
54 | | |
55 | 51 | #define GLADE_CONFIG_FILENAME "glade-3.conf" |
56 | 52 | |
57 | 53 | #define GLADE_APP_GET_PRIVATE(o) (G_TYPE_INSTANCE_GET_PRIVATE ((o), GLADE_TYPE_APP, GladeAppPrivate)) |
… |
… |
glade_app_get_bin_dir (void) |
373 | 369 | static void |
374 | 370 | build_package_paths (void) |
375 | 371 | { |
376 | | #if defined (G_OS_WIN32) || (defined (MAC_INTEGRATION) && defined (MAC_BUNDLE)) |
| 372 | #if defined (G_OS_WIN32) |
377 | 373 | gchar *prefix; |
378 | 374 | |
379 | | # ifdef G_OS_WIN32 |
380 | 375 | prefix = g_win32_get_package_installation_directory_of_module (NULL); |
381 | 376 | |
382 | | # else // defined (MAC_INTEGRATION) && defined (MAC_BUNDLE) |
383 | | IgeMacBundle *bundle = ige_mac_bundle_get_default (); |
384 | | |
385 | | prefix = g_build_filename (ige_mac_bundle_get_path (bundle), "Contents", "Resources", NULL); |
386 | | # endif |
387 | | |
388 | 377 | pixmaps_dir = g_build_filename (prefix, "share", PACKAGE, "pixmaps", NULL); |
389 | 378 | catalogs_dir = g_build_filename (prefix, "share", PACKAGE, "catalogs", NULL); |
390 | 379 | modules_dir = g_build_filename (prefix, "lib", PACKAGE, "modules", NULL); |
diff --git gladeui/glade-popup.c gladeui/glade-popup.c
index 5c8679f..d028951 100644
|
|
glade_popup_is_popup_event (GdkEventButton *event) |
838 | 838 | { |
839 | 839 | g_return_val_if_fail (event, FALSE); |
840 | 840 | |
841 | | #ifdef MAC_INTEGRATION |
842 | | return (event->type == GDK_BUTTON_PRESS && event->button == 1 && ((event->state & GDK_MOD1_MASK) != 0)); |
843 | | #else |
844 | 841 | return (event->type == GDK_BUTTON_PRESS && event->button == 3); |
845 | | #endif |
846 | 842 | } |
847 | 843 | |
diff --git src/Makefile.am src/Makefile.am
index 4ec720a..2c4f86c 100644
|
|
glade_3_CPPFLAGS = \ |
7 | 7 | -I$(top_builddir) \ |
8 | 8 | -DGLADE_GNOMEHELPDIR="\"$(HELP_DIR)\"" \ |
9 | 9 | $(GTK_CFLAGS) \ |
10 | | $(IGE_MAC_CFLAGS) \ |
11 | 10 | $(WARN_CFLAGS) \ |
12 | 11 | $(AM_CPPFLAGS) |
13 | 12 | |
… |
… |
glade_3_CFLAGS = \ |
16 | 15 | |
17 | 16 | glade_3_LDFLAGS = $(AM_LDFLAGS) |
18 | 17 | |
19 | | glade_3_LDADD = $(top_builddir)/gladeui/libgladeui-1.la $(IGE_MAC_LIBS) |
| 18 | glade_3_LDADD = $(top_builddir)/gladeui/libgladeui-1.la |
20 | 19 | |
21 | 20 | glade_3_SOURCES = \ |
22 | 21 | glade-window.c \ |
diff --git src/glade-window.c src/glade-window.c
index b21dba7..6d43671 100644
|
|
|
41 | 41 | #include <gdk/gdkkeysyms.h> |
42 | 42 | #include <gtk/gtk.h> |
43 | 43 | |
44 | | #ifdef MAC_INTEGRATION |
45 | | # include <ige-mac-integration.h> |
46 | | #endif |
47 | | |
48 | 44 | |
49 | 45 | #define ACTION_GROUP_STATIC "GladeStatic" |
50 | 46 | #define ACTION_GROUP_PROJECT "GladeProject" |
… |
… |
glade_window_init (GladeWindow *window) |
3366 | 3362 | |
3367 | 3363 | glade_window_config_load (window); |
3368 | 3364 | |
3369 | | #ifdef MAC_INTEGRATION |
3370 | | { |
3371 | | /* Fix up the menubar for MacOSX Quartz builds */ |
3372 | | gtk_widget_hide (menubar); |
3373 | | ige_mac_menu_set_menu_bar (GTK_MENU_SHELL (menubar)); |
3374 | | |
3375 | | widget = gtk_ui_manager_get_widget (window->priv->ui, "/MenuBar/FileMenu/Quit"); |
3376 | | ige_mac_menu_set_quit_menu_item (GTK_MENU_ITEM (widget)); |
3377 | | } |
3378 | | #endif |
3379 | | |
3380 | | |
3381 | 3365 | } |
3382 | 3366 | |
3383 | 3367 | static void |