[gedit] Ifdef the dbus stuff to not be used in windows.
- From: Ignacio Casal Quinteiro <icq src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gedit] Ifdef the dbus stuff to not be used in windows.
- Date: Wed, 18 Jan 2012 17:53:36 +0000 (UTC)
commit 2461439d92c797998651d9f1ad53e26c591b0f2d
Author: Ignacio Casal Quinteiro <icq gnome org>
Date: Wed Jan 18 18:55:22 2012 +0100
Ifdef the dbus stuff to not be used in windows.
For now the dbus support in windows is not very good so I rather
have no single instance than not having a windows port.
GSettings works anyway as it uses a regedit backend.
gedit/gedit.c | 8 +++++++-
1 files changed, 7 insertions(+), 1 deletions(-)
---
diff --git a/gedit/gedit.c b/gedit/gedit.c
index 0aeeb51..6d8ac32 100644
--- a/gedit/gedit.c
+++ b/gedit/gedit.c
@@ -222,9 +222,11 @@ main (int argc, char *argv[])
const gchar *dir;
GeditCommandLine *command_line;
gboolean ret;
+ gboolean service = FALSE;
+#ifdef G_OS_UNIX
GeditDBus *dbus;
GeditDBusResult dbusret;
- gboolean service = FALSE;
+#endif
#ifndef ENABLE_GVFS_METADATA
const gchar *cache_dir;
@@ -271,6 +273,7 @@ main (int argc, char *argv[])
return 1;
}
+#ifdef G_OS_UNIX
/* Run over dbus */
dbus = gedit_dbus_new ();
dbusret = gedit_dbus_run (dbus);
@@ -290,10 +293,13 @@ main (int argc, char *argv[])
case GEDIT_DBUS_RESULT_PROCEED:
break;
}
+#endif
gedit_main (service);
+#ifdef G_OS_UNIX
g_object_unref (dbus);
+#endif
g_object_unref (command_line);
return 0;
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]