summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAli Abdallah <ali.slackware@gmail.com>2009-06-06 12:22:30 +0000
committerAli Abdallah <ali.slackware@gmail.com>2009-06-06 12:22:30 +0000
commitc400d161ce6c47ccd7da2daf7ca079f3a48bf371 (patch)
tree32017c9d76d5c37471bfe2c29a0e77868b7f441b
parent29c37191369414e97cee44564d389f038d4b7b6e (diff)
downloadixfce4-power-manager-c400d161ce6c47ccd7da2daf7ca079f3a48bf371.tar.gz
*: Use the channel in the private data.
*: Don't show popup message if xfmp is already running and a new instance is trying to load for some reason. (Old svn revision: 7470)
-rw-r--r--AUTHORS8
-rw-r--r--ChangeLog5
-rw-r--r--src/xfpm-main.c7
-rw-r--r--src/xfpm-xfconf.c3
-rw-r--r--src/xfpm-xfconf.h3
5 files changed, 17 insertions, 9 deletions
diff --git a/AUTHORS b/AUTHORS
index 61c5083a..011ec75e 100644
--- a/AUTHORS
+++ b/AUTHORS
@@ -1,3 +1,7 @@
-Ali Abdallah aliov@xfce.org
+Ali Abdallah aliov@xfce.org
-Special Thanks to Fabian Nowak. \ No newline at end of file
+Special Thanks to:
+------------------
+* Yves-Alexis Perez corsac@debian.org.
+* Mike Masonnet mmassonnet@xfce.org.
+* Fabian Nowak timystery@arcor.de.
diff --git a/ChangeLog b/ChangeLog
index b18f71d6..3387be35 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,8 @@
+2009-06-04: 15:00 Ali aliov@xfce.org
+ *: Use the channel in the private data.
+ *: Don't show popup message if xfmp is already running and
+ a new instance is trying to load for some reason.
+
2009-06-04: 12:00 Ali aliov@xfce.org
*: Reset the idle counter when we switch from battery to AC and vise versa.
diff --git a/src/xfpm-main.c b/src/xfpm-main.c
index 10849761..725b0572 100644
--- a/src/xfpm-main.c
+++ b/src/xfpm-main.c
@@ -267,9 +267,10 @@ int main(int argc, char **argv)
if (xfpm_dbus_name_has_owner (dbus_g_connection_get_connection(bus), "org.freedesktop.PowerManagement") )
{
-
- xfpm_info(_("Xfce Power Manager"),
- _("Another power manager is already running"));
+ g_print ("%s: %s\n",
+ _("Xfce Power Manager"),
+ _("Another power manager is already running"));
+
}
else if (xfpm_dbus_name_has_owner(dbus_g_connection_get_connection(bus),
"org.xfce.PowerManager"))
diff --git a/src/xfpm-xfconf.c b/src/xfpm-xfconf.c
index ce52852a..e44b8797 100644
--- a/src/xfpm-xfconf.c
+++ b/src/xfpm-xfconf.c
@@ -29,6 +29,8 @@
#include <glib.h>
#include <libxfce4util/libxfce4util.h>
+#include <xfconf/xfconf.h>
+
#include "libxfpm/xfpm-string.h"
#include "libxfpm/xfpm-common.h"
@@ -600,7 +602,6 @@ xfpm_xfconf_init (XfpmXfconf *conf)
G_CALLBACK (xfpm_xfconf_property_changed_cb), conf);
xfpm_xfconf_load_configuration (conf);
}
- conf->channel = xfconf_channel_new ("xfce4-power-manager");
}
static void
diff --git a/src/xfpm-xfconf.h b/src/xfpm-xfconf.h
index 9055fc5e..c4d6b9f2 100644
--- a/src/xfpm-xfconf.h
+++ b/src/xfpm-xfconf.h
@@ -23,8 +23,6 @@
#include <glib-object.h>
-#include <xfconf/xfconf.h>
-
G_BEGIN_DECLS
#define XFPM_TYPE_XFCONF (xfpm_xfconf_get_type () )
@@ -36,7 +34,6 @@ typedef struct XfpmXfconfPrivate XfpmXfconfPrivate;
typedef struct
{
GObject parent;
- XfconfChannel *channel;
XfpmXfconfPrivate *priv;
} XfpmXfconf;