[nautilus/freedesktop-dbus] fdo-dbus: coding style cleanups
- From: Cosimo Cecchi <cosimoc src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [nautilus/freedesktop-dbus] fdo-dbus: coding style cleanups
- Date: Wed, 14 Dec 2011 11:29:58 +0000 (UTC)
commit 326f5d86a5650d201c48acacaf77752d544668da
Author: Cosimo Cecchi <cosimoc gnome org>
Date: Wed Dec 14 12:18:39 2011 +0100
fdo-dbus: coding style cleanups
src/nautilus-freedesktop-dbus.c | 11 ++++++-----
1 files changed, 6 insertions(+), 5 deletions(-)
---
diff --git a/src/nautilus-freedesktop-dbus.c b/src/nautilus-freedesktop-dbus.c
index 03dc7fe..3051bc8 100644
--- a/src/nautilus-freedesktop-dbus.c
+++ b/src/nautilus-freedesktop-dbus.c
@@ -66,8 +66,7 @@ enum {
static GType nautilus_freedesktop_dbus_get_type (void) G_GNUC_CONST;
G_DEFINE_TYPE (NautilusFreedesktopDBus, nautilus_freedesktop_dbus, G_TYPE_OBJECT);
-static NautilusFreedesktopDBus *singleton;
-
+static NautilusFreedesktopDBus *singleton = NULL;
static gboolean
skeleton_handle_show_items_cb (NautilusFreedesktopFileManager1 *object,
@@ -136,8 +135,9 @@ skeleton_handle_show_item_properties_cb (NautilusFreedesktopFileManager1 *object
files = NULL;
- for (i = 0; uris[i] != NULL; i++)
+ for (i = 0; uris[i] != NULL; i++) {
files = g_list_prepend (files, nautilus_file_get_by_uri (uris[i]));
+ }
files = g_list_reverse (files);
@@ -298,9 +298,10 @@ nautilus_freedesktop_dbus_init (NautilusFreedesktopDBus *fdb)
/* Tries to own the org.freedesktop.FileManager1 service name */
void
nautilus_freedesktop_dbus_start (NautilusApplication *app)
-{
- if (singleton)
+{
+ if (singleton != NULL) {
return;
+ }
singleton = g_object_new (nautilus_freedesktop_dbus_get_type (),
"application", app,
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]