summaryrefslogtreecommitdiff
path: root/plugins/glue
diff options
context:
space:
mode:
authorRob Taylor <rob.taylor@codethink.co.uk>2007-09-23 18:45:15 +0100
committerRob Taylor <rob.taylor@codethink.co.uk>2007-09-23 18:45:15 +0100
commit55ba3a7c3bb62cb7ea2161a03207cee6be59d6c0 (patch)
tree94491999a5482ecb57b2fffe7ed104b7f28742ab /plugins/glue
parent44e720303af9454d74e50e69c962451fd97b07b1 (diff)
idle glue: remove unnecessary init
No need to check xorg.has_xauthority as we'll get a notify after intialisation.
Diffstat (limited to 'plugins/glue')
-rw-r--r--plugins/glue/idle/ohm-plugin-idle.c25
1 files changed, 2 insertions, 23 deletions
diff --git a/plugins/glue/idle/ohm-plugin-idle.c b/plugins/glue/idle/ohm-plugin-idle.c
index 3b55202..f163d9a 100644
--- a/plugins/glue/idle/ohm-plugin-idle.c
+++ b/plugins/glue/idle/ohm-plugin-idle.c
@@ -83,27 +83,6 @@ plugin_connect_idletime (OhmPlugin *plugin)
}
/**
- * plugin_initalize:
- * @plugin: This class instance
- *
- * Coldplug, i.e. read and set the initial state of the plugin.
- * We can assume all the required modules have been loaded, although it's
- * dangerous to assume the key values are anything other than the defaults.
- */
-static void
-plugin_initalize (OhmPlugin *plugin)
-{
- gint value;
-
- /* check system inhibit - this is broken as any client can unref all */
- ohm_plugin_conf_get_key (plugin, "xorg.has_xauthority", &value);
- if (value == 1) {
- plugin_connect_idletime (plugin);
- }
-
-}
-
-/**
* plugin_notify:
* @plugin: This class instance
*
@@ -153,9 +132,9 @@ OHM_PLUGIN_DESCRIPTION (
"0.0.1", /* version */
"richard@hughsie.com", /* author */
OHM_LICENSE_LGPL, /* license */
- plugin_initalize, /* initalize */
+ NULL, /* initalize */
plugin_destroy, /* destroy */
- plugin_notify /* notify */
+ plugin_notify /* notify */
);
OHM_PLUGIN_REQUIRES ("xorg");