Merge lp:~charlesk/indicator-power/fix-933466 into lp:indicator-power/1.0

Proposed by Charles Kerr
Status: Merged
Approved by: Ted Gould
Approved revision: 129
Merged at revision: 129
Proposed branch: lp:~charlesk/indicator-power/fix-933466
Merge into: lp:indicator-power/1.0
Diff against target: 54 lines (+15/-19)
1 file modified
src/indicator-power.c (+15/-19)
To merge this branch: bzr merge lp:~charlesk/indicator-power/fix-933466
Reviewer Review Type Date Requested Status
Ted Gould (community) Approve
Omer Akram (community) functional Approve
Review via email: mp+93497@code.launchpad.net
To post a comment you must log in.
Revision history for this message
Charles Kerr (charlesk) wrote :

comments #9 and #10 in the ticket give a little background on this change.

Revision history for this message
Omer Akram (om26er) wrote :

fix works for me ;-)

review: Approve (functional)
Revision history for this message
Ted Gould (ted) wrote :

Looks good to me!

  review approve
  status approved

review: Approve
Revision history for this message
Charles Kerr (charlesk) wrote :

Ted, you're working late. :)

So this is my first Ubuntu FF. This isn't a feature ticket (obviously), but before I merge, I thought I'd ask -- do changes still just go into trunk at this stage, or are there other steps involved?

Preview Diff

[H/L] Next/Prev Comment, [J/K] Next/Prev File, [N/P] Next/Prev Hunk
=== modified file 'src/indicator-power.c'
--- src/indicator-power.c 2012-02-14 13:06:16 +0000
+++ src/indicator-power.c 2012-02-16 21:53:20 +0000
@@ -840,26 +840,22 @@
840}840}
841841
842static void842static void
843receive_signal (GDBusProxy *proxy,843receive_properties_changed (GDBusProxy *proxy G_GNUC_UNUSED,
844 gchar *sender_name,844 GVariant *changed_properties G_GNUC_UNUSED,
845 gchar *signal_name,845 GStrv invalidated_properties G_GNUC_UNUSED,
846 GVariant *parameters,846 gpointer user_data)
847 gpointer user_data)
848{847{
849 IndicatorPower *self = INDICATOR_POWER (user_data);848 IndicatorPower *self = INDICATOR_POWER (user_data);
850849
851 if (g_strcmp0 (signal_name, "Changed") == 0)850 /* it's time to refresh our device list */
852 {851 g_dbus_proxy_call (self->proxy,
853 /* get the new state */852 "GetDevices",
854 g_dbus_proxy_call (self->proxy,853 NULL,
855 "GetDevices",854 G_DBUS_CALL_FLAGS_NONE,
856 NULL,855 -1,
857 G_DBUS_CALL_FLAGS_NONE,856 self->proxy_cancel,
858 -1,857 get_devices_cb,
859 self->proxy_cancel,858 user_data);
860 get_devices_cb,
861 user_data);
862 }
863}859}
864860
865static void861static void
@@ -884,8 +880,8 @@
884880
885 /* we want to change the primary device changes */881 /* we want to change the primary device changes */
886 g_signal_connect (self->proxy,882 g_signal_connect (self->proxy,
887 "g-signal",883 "g-properties-changed",
888 G_CALLBACK (receive_signal),884 G_CALLBACK (receive_properties_changed),
889 user_data);885 user_data);
890886
891 /* get the initial state */887 /* get the initial state */

Subscribers

People subscribed via source and target branches