eog r4873 - in trunk: . src
- From: friemann svn gnome org
- To: svn-commits-list gnome org
- Subject: eog r4873 - in trunk: . src
- Date: Fri, 14 Nov 2008 20:44:16 +0000 (UTC)
Author: friemann
Date: Fri Nov 14 20:44:15 2008
New Revision: 4873
URL: http://svn.gnome.org/viewvc/eog?rev=4873&view=rev
Log:
2008-11-14 Felix Riemann <friemann svn gnome org>
* src/main.c: (main): Change variable name to something that should
be less prone to produce conflicts. Should fix compilation errors
under Mac OS X. Fixes bug #560065.
Modified:
trunk/ChangeLog
trunk/src/main.c
Modified: trunk/src/main.c
==============================================================================
--- trunk/src/main.c (original)
+++ trunk/src/main.c Fri Nov 14 20:44:15 2008
@@ -58,7 +58,7 @@
static gboolean slide_show = FALSE;
static gboolean disable_collection = FALSE;
#if HAVE_DBUS
-static gboolean wait = FALSE;
+static gboolean force_new_instance = FALSE;
#endif
static gchar **startup_files = NULL;
@@ -68,7 +68,7 @@
{ "disable-image-collection", 'c', 0, G_OPTION_ARG_NONE, &disable_collection, N_("Disable image collection"), NULL },
{ "slide-show", 's', 0, G_OPTION_ARG_NONE, &slide_show, N_("Open in slide show mode"), NULL },
#if HAVE_DBUS
- { "new-instance", 'n', 0, G_OPTION_ARG_NONE, &wait, N_("Start a new instance instead of reusing an existing one"), NULL },
+ { "new-instance", 'n', 0, G_OPTION_ARG_NONE, &force_new_instance, N_("Start a new instance instead of reusing an existing one"), NULL },
#endif
{ G_OPTION_REMAINING, 0, 0, G_OPTION_ARG_FILENAME_ARRAY, &startup_files, NULL, N_("[FILE...]") },
{ NULL }
@@ -196,7 +196,8 @@
set_startup_flags ();
#ifdef HAVE_DBUS
- if (!wait && !eog_application_register_service (EOG_APP)) {
+ if (!force_new_instance &&
+ !eog_application_register_service (EOG_APP)) {
if (load_files_remote ()) {
g_object_unref (program);
return 0;
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]