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  
    6767#include "gimp-log.h"
    6868#include "gimp-intl.h"
    6969
     70#if defined (GDK_WINDOWING_QUARTZ) && defined (__x86_64__)
     71  #include <igemacintegration/gtkosxapplication.h>
     72#endif
     73
    7074
    7175static gboolean  gimp_option_fatal_warnings   (const gchar  *option_name,
    7276                                               const gchar  *value,
     
    268272  const gchar    *abort_message;
    269273  gchar          *basename;
    270274  gint            i;
    271 
     275#if defined (GDK_WINDOWING_QUARTZ) && defined (__x86_64__)
     276  GtkOSXApplication   *theApp;
     277#endif
     278       
    272279#if defined (__GNUC__) && defined (_WIN64)
    273280  /* mingw-w64, at least the unstable build from late July 2008,
    274281   * starts subsystem:windows programs in main(), but passes them
     
    394401
    395402  gimp_init_signal_handlers (stack_trace_mode);
    396403
     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       
    397409  app_run (argv[0],
    398410           filenames,
    399411           system_gimprc,
     
    413425           use_debug_handler,
    414426           stack_trace_mode,
    415427           pdb_compat_mode);
     428       
     429#if defined (GDK_WINDOWING_QUARTZ) && defined (__x86_64__)     
     430  g_object_unref(theApp);
     431#endif
    416432
    417433  g_option_context_free (context);
    418434