#include "gunixfdlist.h"
#endif
-/* DBus Interface definition {{{1 */
+/* D-Bus Interface definition {{{1 */
/* For documentation of these interfaces, see
* https://wiki.gnome.org/Projects/GLib/GApplication/DBusAPI
GCancellable *cancellable,
GError **error)
{
- const static GDBusInterfaceVTable vtable = {
+ static const GDBusInterfaceVTable vtable = {
g_application_impl_method_call,
g_application_impl_get_property,
- NULL /* set_property */
+ NULL, /* set_property */
+ { 0 }
};
GApplicationClass *app_class = G_APPLICATION_GET_CLASS (impl->app);
GBusRequestNameReplyFlags rval;
GBusNameOwnerFlags name_owner_flags;
GApplicationFlags app_flags;
+ GError *local_error = NULL;
if (org_gtk_Application == NULL)
{
if (!app_class->dbus_register (impl->app,
impl->session_bus,
impl->object_path,
- error))
- return FALSE;
+ &local_error))
+ {
+ g_return_val_if_fail (local_error != NULL, FALSE);
+ g_propagate_error (error, g_steal_pointer (&local_error));
+ return FALSE;
+ }
+
+ g_return_val_if_fail (local_error == NULL, FALSE);
if (impl->bus_name == NULL)
{
/* We are non-primary. Try to get the primary's list of actions.
* This also serves as a mechanism to ensure that the primary exists
- * (ie: DBus service files installed correctly, etc).
+ * (ie: D-Bus service files installed correctly, etc).
*/
actions = g_dbus_action_group_get (impl->session_bus, impl->bus_name, impl->object_path);
if (!g_dbus_action_group_sync (actions, cancellable, error))
const gchar * const *arguments,
GVariant *platform_data)
{
- const static GDBusInterfaceVTable vtable = {
- g_application_impl_cmdline_method_call
+ static const GDBusInterfaceVTable vtable = {
+ g_application_impl_cmdline_method_call, NULL, NULL, { 0 }
};
const gchar *object_path = "/org/gtk/Application/CommandLine";
GMainContext *context;