summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorPablo Barciela <[email protected]>2019-12-14 19:06:32 +0100
committerlukefromdc <[email protected]>2019-12-21 22:36:48 +0000
commitb42d1a69443352f6db52167452315a6fbb3562f6 (patch)
treec3a54ff0c2608ac579a595e45be109d4a305d5e9
parent23b891fd8f149a6f24fa168b87353f961389ea04 (diff)
downloadmate-session-manager-b42d1a69443352f6db52167452315a6fbb3562f6.tar.bz2
mate-session-manager-b42d1a69443352f6db52167452315a6fbb3562f6.tar.xz
avoid redundant redeclarations
-rw-r--r--capplet/gsm-app-dialog.c3
-rw-r--r--capplet/gsm-properties-dialog.c2
-rw-r--r--capplet/gsp-app-manager.h2
-rw-r--r--capplet/gsp-app.h2
-rw-r--r--egg/eggsmclient.h2
-rw-r--r--mate-session/gs-idle-monitor.c2
-rw-r--r--mate-session/gs-idle-monitor.h2
-rw-r--r--mate-session/gsm-app.h1
-rw-r--r--mate-session/gsm-autostart-app.h2
-rw-r--r--mate-session/gsm-client.h1
-rw-r--r--mate-session/gsm-consolekit.c2
-rw-r--r--mate-session/gsm-consolekit.h2
-rw-r--r--mate-session/gsm-inhibit-dialog.c2
-rw-r--r--mate-session/gsm-manager.c2
-rw-r--r--mate-session/gsm-store.c2
-rw-r--r--mate-session/gsm-store.h1
-rw-r--r--mate-session/gsm-systemd.c2
-rw-r--r--mate-session/gsm-systemd.h2
-rw-r--r--mate-session/gsm-xsmp-client.h2
-rw-r--r--mate-session/gsm-xsmp-server.c2
-rw-r--r--mate-session/mdm-signal-handler.c4
21 files changed, 1 insertions, 41 deletions
diff --git a/capplet/gsm-app-dialog.c b/capplet/gsm-app-dialog.c
index 1c038c9..9759bac 100644
--- a/capplet/gsm-app-dialog.c
+++ b/capplet/gsm-app-dialog.c
@@ -56,9 +56,6 @@ struct _GsmAppDialog
guint delay;
};
-static void gsm_app_dialog_class_init (GsmAppDialogClass *klass);
-static void gsm_app_dialog_init (GsmAppDialog *app_dialog);
-
enum {
PROP_0,
PROP_NAME,
diff --git a/capplet/gsm-properties-dialog.c b/capplet/gsm-properties-dialog.c
index bde8999..69fe3fe 100644
--- a/capplet/gsm-properties-dialog.c
+++ b/capplet/gsm-properties-dialog.c
@@ -78,8 +78,6 @@ enum {
NUMBER_OF_COLUMNS
};
-static void gsm_properties_dialog_class_init (GsmPropertiesDialogClass *klass);
-static void gsm_properties_dialog_init (GsmPropertiesDialog *properties_dialog);
static void gsm_properties_dialog_finalize (GObject *object);
G_DEFINE_TYPE (GsmPropertiesDialog, gsm_properties_dialog, GTK_TYPE_DIALOG)
diff --git a/capplet/gsp-app-manager.h b/capplet/gsp-app-manager.h
index b3ceb1e..515c67c 100644
--- a/capplet/gsp-app-manager.h
+++ b/capplet/gsp-app-manager.h
@@ -43,8 +43,6 @@ struct _GspAppManagerClass
GspApp *app);
};
-GType gsp_app_manager_get_type (void) G_GNUC_CONST;
-
GspAppManager *gsp_app_manager_get (void);
void gsp_app_manager_fill (GspAppManager *manager);
diff --git a/capplet/gsp-app.h b/capplet/gsp-app.h
index 6b0d640..8bc2700 100644
--- a/capplet/gsp-app.h
+++ b/capplet/gsp-app.h
@@ -40,8 +40,6 @@ struct _GspAppClass
void (* removed) (GspApp *app);
};
-GType gsp_app_get_type (void) G_GNUC_CONST;
-
void gsp_app_create (const char *name,
const char *comment,
const char *exec,
diff --git a/egg/eggsmclient.h b/egg/eggsmclient.h
index 1721bfd..825d2ee 100644
--- a/egg/eggsmclient.h
+++ b/egg/eggsmclient.h
@@ -71,8 +71,6 @@ struct _EggSMClientClass
void (*_egg_reserved4) (void);
};
-GType egg_sm_client_get_type (void) G_GNUC_CONST;
-
GOptionGroup *egg_sm_client_get_option_group (void);
/* Initialization */
diff --git a/mate-session/gs-idle-monitor.c b/mate-session/gs-idle-monitor.c
index f153c2b..a188af5 100644
--- a/mate-session/gs-idle-monitor.c
+++ b/mate-session/gs-idle-monitor.c
@@ -39,8 +39,6 @@
#include "gs-idle-monitor.h"
-static void gs_idle_monitor_class_init (GSIdleMonitorClass *klass);
-static void gs_idle_monitor_init (GSIdleMonitor *idle_monitor);
static void gs_idle_monitor_finalize (GObject *object);
struct _GSIdleMonitor {
diff --git a/mate-session/gs-idle-monitor.h b/mate-session/gs-idle-monitor.h
index 932c5f0..cf4be06 100644
--- a/mate-session/gs-idle-monitor.h
+++ b/mate-session/gs-idle-monitor.h
@@ -35,8 +35,6 @@ typedef gboolean (*GSIdleMonitorWatchFunc) (GSIdleMonitor *monitor,
gboolean condition,
gpointer user_data);
-GType gs_idle_monitor_get_type (void);
-
GSIdleMonitor * gs_idle_monitor_new (void);
guint gs_idle_monitor_add_watch (GSIdleMonitor *monitor,
diff --git a/mate-session/gsm-app.h b/mate-session/gsm-app.h
index a535fc5..af7db2b 100644
--- a/mate-session/gsm-app.h
+++ b/mate-session/gsm-app.h
@@ -75,7 +75,6 @@ typedef enum
#define GSM_APP_ERROR gsm_app_error_quark ()
GQuark gsm_app_error_quark (void);
-GType gsm_app_get_type (void) G_GNUC_CONST;
gboolean gsm_app_peek_autorestart (GsmApp *app);
diff --git a/mate-session/gsm-autostart-app.h b/mate-session/gsm-autostart-app.h
index ff92fca..48b2c48 100644
--- a/mate-session/gsm-autostart-app.h
+++ b/mate-session/gsm-autostart-app.h
@@ -40,8 +40,6 @@ struct _GsmAutostartAppClass
gboolean condition);
};
-GType gsm_autostart_app_get_type (void) G_GNUC_CONST;
-
GsmApp *gsm_autostart_app_new (const char *desktop_file);
#define GSM_AUTOSTART_APP_ENABLED_KEY "X-MATE-Autostart-enabled"
diff --git a/mate-session/gsm-client.h b/mate-session/gsm-client.h
index b623742..0afff15 100644
--- a/mate-session/gsm-client.h
+++ b/mate-session/gsm-client.h
@@ -93,7 +93,6 @@ typedef enum
GType gsm_client_error_get_type (void);
GQuark gsm_client_error_quark (void);
-GType gsm_client_get_type (void) G_GNUC_CONST;
const char *gsm_client_peek_id (GsmClient *client);
diff --git a/mate-session/gsm-consolekit.c b/mate-session/gsm-consolekit.c
index 31dbb70..82e04a5 100644
--- a/mate-session/gsm-consolekit.c
+++ b/mate-session/gsm-consolekit.c
@@ -64,8 +64,6 @@ enum {
static guint signals[LAST_SIGNAL] = { 0 };
-static void gsm_consolekit_class_init (GsmConsolekitClass *klass);
-static void gsm_consolekit_init (GsmConsolekit *ck);
static void gsm_consolekit_finalize (GObject *object);
static void gsm_consolekit_free_dbus (GsmConsolekit *manager);
diff --git a/mate-session/gsm-consolekit.h b/mate-session/gsm-consolekit.h
index 6cffd5b..ce4a821 100644
--- a/mate-session/gsm-consolekit.h
+++ b/mate-session/gsm-consolekit.h
@@ -56,8 +56,6 @@ enum _GsmConsolekitError {
#define GSM_CONSOLEKIT_SESSION_TYPE_LOGIN_WINDOW "LoginWindow"
-GType gsm_consolekit_get_type (void) G_GNUC_CONST;
-
GQuark gsm_consolekit_error_quark (void);
GsmConsolekit *gsm_consolekit_new (void) G_GNUC_MALLOC;
diff --git a/mate-session/gsm-inhibit-dialog.c b/mate-session/gsm-inhibit-dialog.c
index 7c6ec97..a4e86e8 100644
--- a/mate-session/gsm-inhibit-dialog.c
+++ b/mate-session/gsm-inhibit-dialog.c
@@ -84,8 +84,6 @@ enum {
NUMBER_OF_COLUMNS
};
-static void gsm_inhibit_dialog_class_init (GsmInhibitDialogClass *klass);
-static void gsm_inhibit_dialog_init (GsmInhibitDialog *inhibit_dialog);
static void gsm_inhibit_dialog_finalize (GObject *object);
G_DEFINE_TYPE (GsmInhibitDialog, gsm_inhibit_dialog, GTK_TYPE_DIALOG)
diff --git a/mate-session/gsm-manager.c b/mate-session/gsm-manager.c
index 5ce5158..9b0200f 100644
--- a/mate-session/gsm-manager.c
+++ b/mate-session/gsm-manager.c
@@ -171,8 +171,6 @@ enum {
static guint signals [LAST_SIGNAL] = { 0 };
-static void gsm_manager_class_init (GsmManagerClass *klass);
-static void gsm_manager_init (GsmManager *manager);
static void gsm_manager_finalize (GObject *object);
static gboolean _log_out_is_locked_down (GsmManager *manager);
diff --git a/mate-session/gsm-store.c b/mate-session/gsm-store.c
index e715e73..67d6520 100644
--- a/mate-session/gsm-store.c
+++ b/mate-session/gsm-store.c
@@ -51,8 +51,6 @@ enum {
static guint signals [LAST_SIGNAL] = { 0 };
-static void gsm_store_class_init (GsmStoreClass *klass);
-static void gsm_store_init (GsmStore *store);
static void gsm_store_finalize (GObject *object);
G_DEFINE_TYPE_WITH_PRIVATE (GsmStore, gsm_store, G_TYPE_OBJECT)
diff --git a/mate-session/gsm-store.h b/mate-session/gsm-store.h
index 5a7f408..94da2f7 100644
--- a/mate-session/gsm-store.h
+++ b/mate-session/gsm-store.h
@@ -51,7 +51,6 @@ typedef gboolean (*GsmStoreFunc) (const char *id,
gpointer user_data);
GQuark gsm_store_error_quark (void);
-GType gsm_store_get_type (void) G_GNUC_CONST;
GsmStore * gsm_store_new (void);
diff --git a/mate-session/gsm-systemd.c b/mate-session/gsm-systemd.c
index ac37d41..1ef7ddf 100644
--- a/mate-session/gsm-systemd.c
+++ b/mate-session/gsm-systemd.c
@@ -65,8 +65,6 @@ enum {
static guint signals[LAST_SIGNAL] = { 0 };
-static void gsm_systemd_class_init (GsmSystemdClass *klass);
-static void gsm_systemd_init (GsmSystemd *sd);
static void gsm_systemd_finalize (GObject *object);
static void gsm_systemd_free_dbus (GsmSystemd *manager);
diff --git a/mate-session/gsm-systemd.h b/mate-session/gsm-systemd.h
index c00ec03..9522709 100644
--- a/mate-session/gsm-systemd.h
+++ b/mate-session/gsm-systemd.h
@@ -56,8 +56,6 @@ enum _GsmSystemdError {
#define GSM_SYSTEMD_SESSION_TYPE_LOGIN_WINDOW "greeter"
-GType gsm_systemd_get_type (void) G_GNUC_CONST;
-
GQuark gsm_systemd_error_quark (void);
GsmSystemd *gsm_systemd_new (void) G_GNUC_MALLOC;
diff --git a/mate-session/gsm-xsmp-client.h b/mate-session/gsm-xsmp-client.h
index 0078d64..d080948 100644
--- a/mate-session/gsm-xsmp-client.h
+++ b/mate-session/gsm-xsmp-client.h
@@ -53,8 +53,6 @@ struct _GsmXSMPClientClass
};
-GType gsm_xsmp_client_get_type (void) G_GNUC_CONST;
-
GsmClient *gsm_xsmp_client_new (IceConn ice_conn);
void gsm_xsmp_client_connect (GsmXSMPClient *client,
diff --git a/mate-session/gsm-xsmp-server.c b/mate-session/gsm-xsmp-server.c
index bb6f20e..1566aba 100644
--- a/mate-session/gsm-xsmp-server.c
+++ b/mate-session/gsm-xsmp-server.c
@@ -77,8 +77,6 @@ enum {
PROP_CLIENT_STORE
};
-static void gsm_xsmp_server_class_init (GsmXsmpServerClass *klass);
-static void gsm_xsmp_server_init (GsmXsmpServer *xsmp_server);
static void gsm_xsmp_server_finalize (GObject *object);
static gpointer xsmp_server_object = NULL;
diff --git a/mate-session/mdm-signal-handler.c b/mate-session/mdm-signal-handler.c
index a07e40c..56287b2 100644
--- a/mate-session/mdm-signal-handler.c
+++ b/mate-session/mdm-signal-handler.c
@@ -64,9 +64,7 @@ struct _MdmSignalHandler {
gpointer fatal_data;
};
-static void mdm_signal_handler_class_init(MdmSignalHandlerClass* klass);
-static void mdm_signal_handler_init(MdmSignalHandler* signal_handler);
-static void mdm_signal_handler_finalize(GObject* object);
+static void mdm_signal_handler_finalize (GObject* object);
static gpointer signal_handler_object = NULL;
static int signal_pipes[2];