~stolowski/bamf-qt/fix-bamfview-removal

« back to all changes in this revision

Viewing changes to src/wncksyncdbus.c

  • Committer: Jason Smith
  • Date: 2009-07-23 02:57:55 UTC
  • Revision ID: jason@t500-20090723025755-sih740we5na60m8w
Update makefile

Show diffs side-by-side

added added

removed removed

Lines of Context:
35
35
  dbus_g_object_type_install_info (WNCKSYNC_TYPE_DBUS, &dbus_glib_wncksync_dbus_object_info);
36
36
}
37
37
 
 
38
/**
 
39
 * wncksync_dbus_new:
 
40
 *
 
41
 * Returns: a new WnckSyncDBus GObject.
 
42
 **/
38
43
WnckSyncDBus * wncksync_dbus_new (void)
39
44
{
40
45
        WnckSyncDBus *obj = (WnckSyncDBus*) g_object_new (WNCKSYNC_TYPE_DBUS, NULL);
45
50
        guint request_name_result;
46
51
 
47
52
        bus = dbus_g_bus_get (DBUS_BUS_SESSION, &error);
48
 
        if (!bus)
49
 
                return NULL;
 
53
        g_return_val_if_fail (bus, NULL);
50
54
 
51
55
        bus_proxy = dbus_g_proxy_new_for_name (bus, "org.freedesktop.DBus", "/org/freedesktop/DBus", "org.freedesktop.DBus");
52
56