Author: alexl
Date: Fri Feb  8 14:50:22 2008
New Revision: 1238
URL: http://svn.gnome.org/viewvc/gvfs?rev=1238&view=rev

Log:
2008-02-08  Alexander Larsson  <[EMAIL PROTECTED]>

        * common/gvfsdaemonprotocol.c:
        Fix up indentation
        Don't unref file from g_file_icon_get_file().




Modified:
   trunk/ChangeLog
   trunk/common/gvfsdaemonprotocol.c

Modified: trunk/common/gvfsdaemonprotocol.c
==============================================================================
--- trunk/common/gvfsdaemonprotocol.c   (original)
+++ trunk/common/gvfsdaemonprotocol.c   Fri Feb  8 14:50:22 2008
@@ -32,36 +32,36 @@
 static const char *
 get_object_signature (GObject *obj)
 {
-      if (G_IS_THEMED_ICON (obj))
+  if (G_IS_THEMED_ICON (obj))
+    {
+      return
+       DBUS_STRUCT_BEGIN_CHAR_AS_STRING
+         DBUS_TYPE_UINT32_AS_STRING
+         DBUS_TYPE_ARRAY_AS_STRING DBUS_TYPE_STRING_AS_STRING
+       DBUS_STRUCT_END_CHAR_AS_STRING;
+       }
+  else if (G_IS_FILE_ICON (obj))
+    {
+      GFile *file;
+      char *path;
+      
+      file = g_file_icon_get_file (G_FILE_ICON (obj));
+      
+      path = g_file_get_path (file);
+      if (path)
        {
+         g_free (path);
          return
            DBUS_STRUCT_BEGIN_CHAR_AS_STRING
              DBUS_TYPE_UINT32_AS_STRING
-             DBUS_TYPE_ARRAY_AS_STRING DBUS_TYPE_STRING_AS_STRING
+             DBUS_TYPE_ARRAY_AS_STRING DBUS_TYPE_BYTE_AS_STRING
            DBUS_STRUCT_END_CHAR_AS_STRING;
        }
-      else if (G_IS_FILE_ICON (obj))
-       {
-         GFile *file;
-         char *path;
-
-         file = g_file_icon_get_file (G_FILE_ICON (obj));
-
-         path = g_file_get_path (file);
-         if (path)
-           {
-             g_free (path);
-             return
-               DBUS_STRUCT_BEGIN_CHAR_AS_STRING
-                 DBUS_TYPE_UINT32_AS_STRING
-                 DBUS_TYPE_ARRAY_AS_STRING DBUS_TYPE_BYTE_AS_STRING
-               DBUS_STRUCT_END_CHAR_AS_STRING;
-           }
-       }
-      return
-       DBUS_STRUCT_BEGIN_CHAR_AS_STRING
-         DBUS_TYPE_UINT32_AS_STRING
-       DBUS_STRUCT_END_CHAR_AS_STRING;
+    }
+  return
+    DBUS_STRUCT_BEGIN_CHAR_AS_STRING
+      DBUS_TYPE_UINT32_AS_STRING
+    DBUS_STRUCT_END_CHAR_AS_STRING;
 }
 
 static void
@@ -144,7 +144,6 @@
                                               DBUS_TYPE_UINT32, &v_uint32))
            _g_dbus_oom ();
        }
-      g_object_unref (file);
     }
   else
     {
_______________________________________________
SVN-commits-list mailing list (read only)
http://mail.gnome.org/mailman/listinfo/svn-commits-list

Want to limit the commits to a few modules? Go to above URL, log in to edit 
your options and select the modules ('topics') you want.
Module maintainer? It is possible to set the reply-to to your development 
mailing list. Email [EMAIL PROTECTED] if interested.

Reply via email to