Ticket #17032: patch-src-main.c.diff

File patch-src-main.c.diff, 1.2 KB (added by markdigital69@…, 16 years ago)
  • src/main.c

    old new  
    5858static gboolean slide_show = FALSE;
    5959static gboolean disable_collection = FALSE;
    6060#if HAVE_DBUS
    61 static gboolean wait = FALSE;
     61static gboolean eog_wait = FALSE;
    6262#endif
    6363static gchar **startup_files = NULL;
    6464
     
    6868        { "disable-image-collection", 'c', 0, G_OPTION_ARG_NONE, &disable_collection, N_("Disable image collection"), NULL  },
    6969        { "slide-show", 's', 0, G_OPTION_ARG_NONE, &slide_show, N_("Open in slide show mode"), NULL  },
    7070#if HAVE_DBUS
    71         { "new-instance", 'n', 0, G_OPTION_ARG_NONE, &wait, N_("Start a new instance instead of reusing an existing one"), NULL },
     71        { "new-instance", 'n', 0, G_OPTION_ARG_NONE, &eog_wait, N_("Start a new instance instead of reusing an existing one"), NULL },
    7272#endif
    7373        { G_OPTION_REMAINING, 0, 0, G_OPTION_ARG_FILENAME_ARRAY, &startup_files, NULL, N_("[FILE...]") },
    7474        { NULL }
     
    196196        set_startup_flags ();
    197197       
    198198#ifdef HAVE_DBUS
    199         if (!wait && !eog_application_register_service (EOG_APP)) {
     199        if (!eog_wait && !eog_application_register_service (EOG_APP)) {
    200200                if (load_files_remote ()) {
    201201                        g_object_unref (program);
    202202                        return 0;