gnome-panel r10884 - in trunk: . applets/clock
- From: ovitters svn gnome org
- To: svn-commits-list gnome org
- Subject: gnome-panel r10884 - in trunk: . applets/clock
- Date: Sun, 24 Feb 2008 11:11:47 +0000 (GMT)
Author: ovitters
Date: Sun Feb 24 11:11:46 2008
New Revision: 10884
URL: http://svn.gnome.org/viewvc/gnome-panel?rev=10884&view=rev
Log:
* applets/clock/set-timezone-dummy.c: Add set_system_timezone_async,
needed when compiling without polkit.
Fix bug #517685.
Patch by Frederic Peters.
Modified:
trunk/ChangeLog
trunk/applets/clock/set-timezone-dummy.c
Modified: trunk/applets/clock/set-timezone-dummy.c
==============================================================================
--- trunk/applets/clock/set-timezone-dummy.c (original)
+++ trunk/applets/clock/set-timezone-dummy.c Sun Feb 24 11:11:46 2008
@@ -20,18 +20,6 @@
#include <glib.h>
#include "set-timezone.h"
-gboolean
-set_system_timezone (const char *filename,
- GError **err)
-{
- g_set_error (err,
- G_SPAWN_ERROR,
- G_SPAWN_ERROR_FAILED,
- "Timezone setting is not supported");
-
- return FALSE;
-}
-
gint
can_set_system_timezone (void)
{
@@ -65,3 +53,27 @@
if (notify)
notify (data);
}
+
+void
+set_system_timezone_async (const gchar *filename,
+ GFunc callback,
+ gpointer d,
+ GDestroyNotify notify)
+{
+ GError *error;
+
+ if (filename == NULL)
+ return;
+
+ if (callback) {
+ error = g_error_new_literal (G_SPAWN_ERROR,
+ G_SPAWN_ERROR_FAILED,
+ "Timezone setting is not supported");
+ callback (d, error);
+
+ g_error_free (error);
+ }
+
+ if (notify)
+ notify (d);
+}
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]