Commit a945d22b authored by Leesoo Ahn's avatar Leesoo Ahn

dbus-manager: migrate to G_DECLARE_* format

G_DECLARE_* macro is used for emitting the usual declarations.
It is better than previous way for developers.
parent 4c237cff
Pipeline #17823 failed with stages
in 18 minutes and 17 seconds
......@@ -30,8 +30,6 @@
#define DEBUG_FLAG NAUTILUS_DEBUG_DBUS
#include "nautilus-debug.h"
#include <gio/gio.h>
struct _NautilusDBusManager
{
GObject parent;
......@@ -39,11 +37,6 @@ struct _NautilusDBusManager
NautilusDBusFileOperations *file_operations;
};
struct _NautilusDBusManagerClass
{
GObjectClass parent_class;
};
G_DEFINE_TYPE (NautilusDBusManager, nautilus_dbus_manager, G_TYPE_OBJECT);
static void
......@@ -161,8 +154,7 @@ nautilus_dbus_manager_class_init (NautilusDBusManagerClass *klass)
NautilusDBusManager *
nautilus_dbus_manager_new (void)
{
return g_object_new (nautilus_dbus_manager_get_type (),
NULL);
return g_object_new (NAUTILUS_TYPE_DBUS_MANAGER, NULL);
}
gboolean
......
......@@ -25,10 +25,9 @@
#include <glib-object.h>
#include <gio/gio.h>
typedef struct _NautilusDBusManager NautilusDBusManager;
typedef struct _NautilusDBusManagerClass NautilusDBusManagerClass;
#define NAUTILUS_TYPE_DBUS_MANAGER (nautilus_dbus_manager_get_type())
G_DECLARE_FINAL_TYPE (NautilusDBusManager, nautilus_dbus_manager, NAUTILUS, DBUS_MANAGER, GObject)
GType nautilus_dbus_manager_get_type (void);
NautilusDBusManager * nautilus_dbus_manager_new (void);
gboolean nautilus_dbus_manager_register (NautilusDBusManager *self,
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment