diff options
author | Alexander Larsson <alexl@redhat.com> | 2015-12-08 12:16:38 +0100 |
---|---|---|
committer | Alexander Larsson <alexl@redhat.com> | 2015-12-08 12:16:38 +0100 |
commit | 4177f358cb607e7e2b0fd7c29c6d35e6d4eafa1b (patch) | |
tree | 84b9f8e38fd45cfd0b866d7ebc32675eb6ab2468 /session-helper | |
parent | a28ced36c7d70ad549b910ae114bd407b512aee4 (diff) | |
download | xdg-app-4177f358cb607e7e2b0fd7c29c6d35e6d4eafa1b.tar.gz |
common: Make it explicit that XdgAppError are portal errors
Diffstat (limited to 'session-helper')
-rw-r--r-- | session-helper/xdg-app-permission-store.c | 16 |
1 files changed, 8 insertions, 8 deletions
diff --git a/session-helper/xdg-app-permission-store.c b/session-helper/xdg-app-permission-store.c index a0f9d3d..3ee6015 100644 --- a/session-helper/xdg-app-permission-store.c +++ b/session-helper/xdg-app-permission-store.c @@ -26,7 +26,7 @@ #include <gio/gio.h> #include "xdg-app-permission-store.h" #include "xdg-app-db.h" -#include "xdg-app-error.h" +#include "xdg-app-portal-error.h" GHashTable *tables = NULL; @@ -70,7 +70,7 @@ lookup_table (const char *name, if (db == NULL) { g_dbus_method_invocation_return_error (invocation, - XDG_APP_ERROR, XDG_APP_ERROR_FAILED, + XDG_APP_PORTAL_ERROR, XDG_APP_PORTAL_ERROR_FAILED, "Unable to load db file: %s", error->message); return NULL; } @@ -105,7 +105,7 @@ writeout_done (GObject *source_object, g_variant_new ("()")); else g_dbus_method_invocation_return_error (invocation, - XDG_APP_ERROR, XDG_APP_ERROR_FAILED, + XDG_APP_PORTAL_ERROR, XDG_APP_PORTAL_ERROR_FAILED, "Unable to write db: %s", error->message); } @@ -180,7 +180,7 @@ handle_lookup (XdgAppPermissionStore *object, if (entry == NULL) { g_dbus_method_invocation_return_error (invocation, - XDG_APP_ERROR, XDG_APP_ERROR_NOT_FOUND, + XDG_APP_PORTAL_ERROR, XDG_APP_PORTAL_ERROR_NOT_FOUND, "No entry for %s", id); return TRUE; } @@ -224,7 +224,7 @@ handle_delete (XdgAppPermissionStore *object, if (entry == NULL) { g_dbus_method_invocation_return_error (invocation, - XDG_APP_ERROR, XDG_APP_ERROR_NOT_FOUND, + XDG_APP_PORTAL_ERROR, XDG_APP_PORTAL_ERROR_NOT_FOUND, "No entry for %s", id); return TRUE; } @@ -260,7 +260,7 @@ handle_set (XdgAppPermissionStore *object, if (old_entry == NULL && !create) { g_dbus_method_invocation_return_error (invocation, - XDG_APP_ERROR, XDG_APP_ERROR_NOT_FOUND, + XDG_APP_PORTAL_ERROR, XDG_APP_PORTAL_ERROR_NOT_FOUND, "Id %s not found", id); return TRUE; } @@ -317,7 +317,7 @@ handle_set_permission (XdgAppPermissionStore *object, else { g_dbus_method_invocation_return_error (invocation, - XDG_APP_ERROR, XDG_APP_ERROR_NOT_FOUND, + XDG_APP_PORTAL_ERROR, XDG_APP_PORTAL_ERROR_NOT_FOUND, "Id %s not found", id); return TRUE; } @@ -355,7 +355,7 @@ handle_set_value (XdgAppPermissionStore *object, else { g_dbus_method_invocation_return_error (invocation, - XDG_APP_ERROR, XDG_APP_ERROR_NOT_FOUND, + XDG_APP_PORTAL_ERROR, XDG_APP_PORTAL_ERROR_NOT_FOUND, "Id %s not found", id); return TRUE; } |