2009/8/24 Owen Taylor otaylor@redhat.com:
A) I'd have to implement it
const gchar *packages[] = {"gnome-shell", "gnome-shell-extras", NULL};
connection = dbus_g_bus_get (DBUS_BUS_SESSION, NULL); proxy = dbus_g_proxy_new_for_name (connection, "org.freedesktop.PackageKit", "/org/freedesktop/PackageKit", "org.freedesktop.PackageKit.Modify");
ret = dbus_g_proxy_call (proxy, "InstallPackageNames", &error, G_TYPE_UINT, xid, /* window xid, 0 for none */ G_TYPE_STRV, packages, G_TYPE_STRING, "show-confirm-search,hide-finished", G_TYPE_INVALID, G_TYPE_INVALID); if (!ret) { g_warning ("failed: %s", error->message); g_error_free (error); }
Richard.