[Goodies-commits] r7041 - in xfce4-power-manager/trunk: . settings src
Ali Abdallah
aliov at xfce.org
Mon Mar 30 11:20:49 CEST 2009
Author: aliov
Date: 2009-03-30 09:20:49 +0000 (Mon, 30 Mar 2009)
New Revision: 7041
Modified:
xfce4-power-manager/trunk/ChangeLog
xfce4-power-manager/trunk/TODO
xfce4-power-manager/trunk/configure.ac.in
xfce4-power-manager/trunk/settings/Makefile.am
xfce4-power-manager/trunk/settings/xfpm-settings-main.c
xfce4-power-manager/trunk/src/Makefile.am
xfce4-power-manager/trunk/src/xfpm-main.c
Log:
Initializing gthread and dbus_g_thread+updates on TODO
Modified: xfce4-power-manager/trunk/ChangeLog
===================================================================
--- xfce4-power-manager/trunk/ChangeLog 2009-03-30 07:25:09 UTC (rev 7040)
+++ xfce4-power-manager/trunk/ChangeLog 2009-03-30 09:20:49 UTC (rev 7041)
@@ -1,4 +1,7 @@
+2009-03-30 11:20 Ali aliov at xfce.org
+ * : Initializing gthread and dbus_g_thread+updates on TODO
+
2009-03-29 19:46 Ali aliov at xfce.org
* : Prepare an alpha version of 0.8.0
Modified: xfce4-power-manager/trunk/TODO
===================================================================
--- xfce4-power-manager/trunk/TODO 2009-03-30 07:25:09 UTC (rev 7040)
+++ xfce4-power-manager/trunk/TODO 2009-03-30 09:20:49 UTC (rev 7041)
@@ -1,3 +1,28 @@
-* : Should we inhibit the power manager when a screensaver is inhibited by a movie player
+* : Should we inhibit the power manager when a screensaver is inhibited by a movie player?
-* :
+* : Brightness popup indicating the current level.
+
+* : Search for leacks if any.
+
+* : Option to sleep when system is idle for a long time (does anybody needs this?).
+
+* : OnBattery and OnLowBattery DBus signals.
+
+* : What we do if the application inhibiting the power manager crahes and didn't send us the cookie
+ back, the power manager will stay in inhibit state until a session restart, should we monitor
+ the DBusConnection opened by that application?
+
+* : Block any other notification when OnCriticalPower notification is opened, in the way that
+ we don't close it before the user close it or the Adapter is plugged in again.
+
+* : Support Suspend Hybrid!
+
+* : Probably an exit option in the context menu?
+
+* : Use the session logout when we do shutdown, probably use the shutdown session interface anyway.
+
+* : Translations need to be updated.
+
+* : Man pages for xfce4-power-manager and its settings.
+
+* : Updating the documentations.
Modified: xfce4-power-manager/trunk/configure.ac.in
===================================================================
--- xfce4-power-manager/trunk/configure.ac.in 2009-03-30 07:25:09 UTC (rev 7040)
+++ xfce4-power-manager/trunk/configure.ac.in 2009-03-30 09:20:49 UTC (rev 7041)
@@ -69,6 +69,8 @@
XDT_CHECK_PACKAGE([GTK], [gtk+-2.0], [gtk_minimum_version])
XDT_CHECK_PACKAGE([GLIB], [glib-2.0], [glib_minimum_version])
+XDT_CHECK_PACKAGE([GOBJECT], [gobject-2.0], [glib_minimum_version])
+XDT_CHECK_PACKAGE([GTHREAD], [gthread-2.0], [glib_minimum_version])
XDT_CHECK_PACKAGE([DBUS], [dbus-1], [dbus_minimum_version])
XDT_CHECK_PACKAGE([DBUS_GLIB], [dbus-glib-1], [dbus_glib_minimum_version])
XDT_CHECK_PACKAGE([XFCONF], [libxfconf-0],[xfconf_minimum_version])
Modified: xfce4-power-manager/trunk/settings/Makefile.am
===================================================================
--- xfce4-power-manager/trunk/settings/Makefile.am 2009-03-30 07:25:09 UTC (rev 7040)
+++ xfce4-power-manager/trunk/settings/Makefile.am 2009-03-30 09:20:49 UTC (rev 7041)
@@ -16,6 +16,7 @@
-DG_LOG_DOMAIN=\"xfce4-power-manager-settings\" \
$(GTK_CFLAGS) \
$(GLIB_CFLAGS) \
+ $(GTHREAD_CFLAGS) \
$(DBUS_CFLAGS) \
$(DBUS_GLIB_CFLAGS) \
$(LIBXFCE4GUI_CFLAGS) \
@@ -26,6 +27,7 @@
xfce4_power_manager_settings_LDADD = \
$(GTK_LIBS) \
$(GLIB_LIBS) \
+ $(GTHREAD_LIBS) \
$(DBUS_LIBS) \
$(DBUS_GLIB_LIBS) \
$(LIBXFCE4GUI_LIBS) \
Modified: xfce4-power-manager/trunk/settings/xfpm-settings-main.c
===================================================================
--- xfce4-power-manager/trunk/settings/xfpm-settings-main.c 2009-03-30 07:25:09 UTC (rev 7040)
+++ xfce4-power-manager/trunk/settings/xfpm-settings-main.c 2009-03-30 09:20:49 UTC (rev 7041)
@@ -117,6 +117,11 @@
return EXIT_FAILURE;
}
+ if ( !g_thread_supported () )
+ g_thread_init (NULL);
+
+ dbus_g_thread_init ();
+
channel = xfconf_channel_new(XFPM_CHANNEL_CFG);
proxy = dbus_g_proxy_new_for_name(bus,
Modified: xfce4-power-manager/trunk/src/Makefile.am
===================================================================
--- xfce4-power-manager/trunk/src/Makefile.am 2009-03-30 07:25:09 UTC (rev 7040)
+++ xfce4-power-manager/trunk/src/Makefile.am 2009-03-30 09:20:49 UTC (rev 7041)
@@ -62,6 +62,8 @@
-DG_LOG_DOMAIN=\"xfce4-power-manager\" \
$(GTK_CFLAGS) \
$(GLIB_CFLAGS) \
+ $(GOBJECT_CFLAGS) \
+ $(GTHREAD_CFLAGS) \
$(DBUS_CFLAGS) \
$(DBUS_GLIB_CFLAGS) \
$(LIBXFCE4GUI_CFLAGS) \
@@ -76,6 +78,8 @@
$(top_builddir)/libxfpm/libxfpmcommon.la\
$(GTK_LIBS) \
$(GLIB_LIBS) \
+ $(GOBJECT_LIBS) \
+ $(GTHREAD_LIBS) \
$(DBUS_LIBS) \
$(DBUS_GLIB_LIBS) \
$(LIBXFCE4GUI_LIBS) \
Modified: xfce4-power-manager/trunk/src/xfpm-main.c
===================================================================
--- xfce4-power-manager/trunk/src/xfpm-main.c 2009-03-30 07:25:09 UTC (rev 7040)
+++ xfce4-power-manager/trunk/src/xfpm-main.c 2009-03-30 09:20:49 UTC (rev 7041)
@@ -109,14 +109,14 @@
g_printerr("\n");
return EXIT_FAILURE;
}
+
+ if ( !g_thread_supported () )
+ g_thread_init (NULL);
+
+ dbus_g_thread_init ();
- if ( no_daemon == FALSE && daemon(0,0) )
- {
- g_critical ("Could not daemonize");
- }
-
bus = dbus_g_bus_get(DBUS_BUS_SESSION, &error);
-
+
if ( error )
{
gchar *message = g_strdup(_("Unable to get connection to the message bus session"));
@@ -227,6 +227,10 @@
else
{
TRACE("Starting the power manager\n");
+ if ( no_daemon == FALSE && daemon(0,0) )
+ {
+ g_critical ("Could not daemonize");
+ }
XfpmManager *manager;
manager = xfpm_manager_new(bus);
xfpm_manager_start(manager);
More information about the Goodies-commits
mailing list