~indicator-applet-developers/indicator-datetime/trunk.15.10

« back to all changes in this revision

Viewing changes to src/actions-live.cpp

Use dbusmock's timedated template in our tests Fixes: #1560960
Approved by: Renato Araujo Oliveira Filho, PS Jenkins bot, Charles Kerr

Show diffs side-by-side

added added

removed removed

Lines of Context:
17
17
 *   Charles Kerr <charles.kerr@canonical.com>
18
18
 */
19
19
 
 
20
#include <datetime/dbus-shared.h>
20
21
#include <datetime/actions-live.h>
21
22
 
22
23
#include <url-dispatcher.h>
252
253
  else
253
254
    {
254
255
      g_dbus_proxy_call(proxy,
255
 
                        "SetTimezone",
 
256
                        Bus::Timedate1::Methods::SET_TIMEZONE,
256
257
                        g_variant_new ("(sb)", data->tzid.c_str(), TRUE),
257
258
                        G_DBUS_CALL_FLAGS_NONE,
258
259
                        -1,
280
281
    g_dbus_proxy_new_for_bus (G_BUS_TYPE_SYSTEM,
281
282
                              G_DBUS_PROXY_FLAGS_NONE,
282
283
                              nullptr,
283
 
                              "org.freedesktop.timedate1",
284
 
                              "/org/freedesktop/timedate1",
285
 
                              "org.freedesktop.timedate1",
 
284
                              Bus::Timedate1::BUSNAME,
 
285
                              Bus::Timedate1::ADDR,
 
286
                              Bus::Timedate1::IFACE,
286
287
                              nullptr,
287
288
                              on_datetime1_proxy_ready,
288
289
                              data);