commit gnome-power-manager for openSUSE:Factory
Hello community, here is the log from the commit of package gnome-power-manager for openSUSE:Factory checked in at Tue Oct 6 03:00:33 CEST 2009. -------- --- GNOME/gnome-power-manager/gnome-power-manager.changes 2009-09-09 04:41:15.000000000 +0200 +++ gnome-power-manager/gnome-power-manager.changes 2009-10-05 16:45:40.000000000 +0200 @@ -1,0 +2,25 @@ +Mon Oct 5 16:36:16 CEST 2009 - vuntz@opensuse.org + +- Add gnome-power-manager-ck-events-idle.patch to fix suspend + happening when coming back from suspend and the lid is closed. We + emit ConsoleKit events in the idle loop to suppress consecutive + events which were causing the bug. Fix bnc#540517. + +------------------------------------------------------------------- +Tue Sep 22 15:20:14 CEST 2009 - dimstar@opensuse.org + +- Update to version 2.28.0: + + Bugfix: + - Use accessor functions instead direct access + - Only print the DeviceKit-power device data when debugging + - Use the correct interface name for DeviceKit-disks + - Use the correct gnome-screensaver path + - Use g_ptr_array_unref() in more places, which also fixes a + few small memory leaks + - Comment out the AuthRequest signal handling + - Change the default of show_actions_in_menu to FALSE + - bgo#593800 - Inhibit applet now will inhibit the session from + being marked IDLE + + Updated translations. + +------------------------------------------------------------------- calling whatdependson for head-i586 Old: ---- gnome-power-manager-2.27.92.tar.bz2 New: ---- gnome-power-manager-2.28.0.tar.bz2 gnome-power-manager-ck-events-idle.patch ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ Other differences: ------------------ ++++++ gnome-power-manager.spec ++++++ --- /var/tmp/diff_new_pack.H4AJvK/_old 2009-10-06 02:59:03.000000000 +0200 +++ /var/tmp/diff_new_pack.H4AJvK/_new 2009-10-06 02:59:03.000000000 +0200 @@ -1,5 +1,5 @@ # -# spec file for package gnome-power-manager (Version 2.27.92) +# spec file for package gnome-power-manager (Version 2.28.0) # # Copyright (c) 2009 SUSE LINUX Products GmbH, Nuernberg, Germany. # @@ -18,13 +18,15 @@ Name: gnome-power-manager -Version: 2.27.92 +Version: 2.28.0 Release: 1 License: GPL v2 or later Summary: Power Management for GNOME Url: http://gnome-power.sourceforge.net/ Group: System/GUI/GNOME Source: ftp://ftp.gnome.org/pub/gnome/sources/%{name}/2.16/%{name}-%{version}.tar.bz2 +# PATCH-FIX-UPSTREAM gnome-power-manager-ck-events-idle.patch bgo597189 bnc540517 vuntz@opensuse.org -- Emit ConsoleKit events in the idle loop to suppress consecutive events, and fix suspend happening when coming back from suspend (when lid is closed) +Patch1: gnome-power-manager-ck-events-idle.patch # PATCH-NEEDS-REBASE gnome-power-manager-schedule-wakeups.patch gburt fate302448 -- add tab to prefs to schedule rtcwake (was PATCH-FEATURE-OPENSUSE) Patch10: gnome-power-manager-schedule-wakeups.patch # PATCH-FEATURE-UPSTREAM gnome-power-manager-notify-idle-sleep.patch hmacht bnc#439018 bgo575467 -- notify user about auto suspend when returning from sleep @@ -102,6 +104,7 @@ #gnome-patch-translation-prepare # Needs rebase: #%patch10 -p1 +%patch1 -p1 %patch12 -p1 %patch14 -p1 #gnome-patch-translation-update ++++++ gnome-power-manager-2.27.92.tar.bz2 -> gnome-power-manager-2.28.0.tar.bz2 ++++++ ++++ 31190 lines of diff (skipped) ++++++ gnome-power-manager-ck-events-idle.patch ++++++ Index: gnome-power-manager-2.28.0/src/egg-console-kit.c =================================================================== --- gnome-power-manager-2.28.0.orig/src/egg-console-kit.c +++ gnome-power-manager-2.28.0/src/egg-console-kit.c @@ -50,6 +50,9 @@ struct EggConsoleKitPrivate DBusGProxy *proxy_manager; DBusGProxy *proxy_session; gchar *session_id; + guint emit_changed_id; + gboolean last_emitted_active; + gboolean last_changed_active; }; enum { @@ -231,13 +234,37 @@ out: } /** + * egg_console_kit_emit_active_changed_cb: + **/ +static gboolean +egg_console_kit_emit_active_changed_cb (EggConsoleKit *console) +{ + egg_debug ("emitting active: %i", console->priv->last_changed_active); + g_signal_emit (console, signals [EGG_CONSOLE_KIT_ACTIVE_CHANGED], 0, console->priv->last_changed_active); + console->priv->last_emitted_active = console->priv->last_changed_active; + console->priv->emit_changed_id = 0; + return FALSE; +} + +/** * egg_console_kit_active_changed_cb: **/ static void egg_console_kit_active_changed_cb (DBusGProxy *proxy, gboolean active, EggConsoleKit *console) { - egg_debug ("emitting active: %i", active); - g_signal_emit (console, signals [EGG_CONSOLE_KIT_ACTIVE_CHANGED], 0, active); + if (console->priv->emit_changed_id != 0) { + g_source_remove (console->priv->emit_changed_id); + console->priv->emit_changed_id = 0; + } + + if (console->priv->last_emitted_active == active) { + egg_debug ("ignoring active (same value as last emitted): %i", active); + return; + } + + egg_debug ("queuing active: %i", active); + console->priv->last_changed_active = active; + console->priv->emit_changed_id = g_idle_add ((GSourceFunc) egg_console_kit_emit_active_changed_cb, console); } /** @@ -271,6 +298,8 @@ egg_console_kit_init (EggConsoleKit *con console->priv = EGG_CONSOLE_KIT_GET_PRIVATE (console); console->priv->proxy_manager = NULL; console->priv->session_id = NULL; + console->priv->emit_changed_id = 0; + console->priv->last_changed_active = FALSE; /* connect to D-Bus */ console->priv->connection = dbus_g_bus_get (DBUS_BUS_SYSTEM, &error); @@ -315,6 +344,8 @@ egg_console_kit_init (EggConsoleKit *con dbus_g_proxy_connect_signal (console->priv->proxy_session, "ActiveChanged", G_CALLBACK (egg_console_kit_active_changed_cb), console, NULL); + console->priv->last_emitted_active = egg_console_kit_is_active (console); + out: return; } @@ -338,6 +369,8 @@ egg_console_kit_finalize (GObject *objec if (console->priv->proxy_session != NULL) g_object_unref (console->priv->proxy_session); g_free (console->priv->session_id); + if (console->priv->emit_changed_id != 0) + g_source_remove (console->priv->emit_changed_id); G_OBJECT_CLASS (egg_console_kit_parent_class)->finalize (object); } ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ Remember to have fun... -- To unsubscribe, e-mail: opensuse-commit+unsubscribe@opensuse.org For additional commands, e-mail: opensuse-commit+help@opensuse.org
participants (1)
-
root@Hilbert.suse.de