Ticket #25962: app-main.c.diff
File app-main.c.diff, 1.4 KB (added by hsivank@…, 14 years ago) |
---|
-
app/main.c
old new 67 67 #include "gimp-log.h" 68 68 #include "gimp-intl.h" 69 69 70 #if defined (GDK_WINDOWING_QUARTZ) && defined (__x86_64__) 71 #include <igemacintegration/gtkosxapplication.h> 72 #endif 73 70 74 71 75 static gboolean gimp_option_fatal_warnings (const gchar *option_name, 72 76 const gchar *value, … … 268 272 const gchar *abort_message; 269 273 gchar *basename; 270 274 gint i; 271 275 #if defined (GDK_WINDOWING_QUARTZ) && defined (__x86_64__) 276 GtkOSXApplication *theApp; 277 #endif 278 272 279 #if defined (__GNUC__) && defined (_WIN64) 273 280 /* mingw-w64, at least the unstable build from late July 2008, 274 281 * starts subsystem:windows programs in main(), but passes them … … 394 401 395 402 gimp_init_signal_handlers (stack_trace_mode); 396 403 404 #if defined (GDK_WINDOWING_QUARTZ) && defined (__x86_64__) 405 theApp = g_object_new(GTK_TYPE_OSX_APPLICATION, NULL); 406 gtk_osxapplication_ready(theApp); 407 #endif 408 397 409 app_run (argv[0], 398 410 filenames, 399 411 system_gimprc, … … 413 425 use_debug_handler, 414 426 stack_trace_mode, 415 427 pdb_compat_mode); 428 429 #if defined (GDK_WINDOWING_QUARTZ) && defined (__x86_64__) 430 g_object_unref(theApp); 431 #endif 416 432 417 433 g_option_context_free (context); 418 434