[glibmm] Gio::Credentials: Change CredentialsType to Credentials::Type.
- From: Murray Cumming <murrayc src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [glibmm] Gio::Credentials: Change CredentialsType to Credentials::Type.
- Date: Tue, 18 Apr 2017 20:03:44 +0000 (UTC)
commit 0125f314b9147bd6cdf49f5a4ccb4d59c85d82cd
Author: Murray Cumming <murrayc murrayc com>
Date: Tue Apr 18 12:29:03 2017 +0200
Gio::Credentials: Change CredentialsType to Credentials::Type.
gio/src/credentials.hg | 7 ++++---
tools/m4/convert_gio.m4 | 2 +-
2 files changed, 5 insertions(+), 4 deletions(-)
---
diff --git a/gio/src/credentials.hg b/gio/src/credentials.hg
index b361276..60fb023 100644
--- a/gio/src/credentials.hg
+++ b/gio/src/credentials.hg
@@ -25,7 +25,6 @@ _PINCLUDE(glibmm/private/object_p.h)
namespace Gio
{
-_WRAP_ENUM(CredentialsType, GCredentialsType, NO_GTYPE)
/** An object containing credentials.
* The Credentials type is a reference-counted wrapper for native credentials.
@@ -58,12 +57,14 @@ protected:
_IGNORE(g_credentials_new)
public:
+ _WRAP_ENUM(Type, GCredentialsType, NO_GTYPE)
+
_WRAP_CREATE()
_WRAP_METHOD(Glib::ustring to_string() const, g_credentials_to_string)
- _WRAP_METHOD(gpointer get_native(CredentialsType native_type), g_credentials_get_native)
- _WRAP_METHOD(void set_native(CredentialsType native_type, gpointer native), g_credentials_set_native)
+ _WRAP_METHOD(gpointer get_native(Type native_type), g_credentials_get_native)
+ _WRAP_METHOD(void set_native(Type native_type, gpointer native), g_credentials_set_native)
_WRAP_METHOD(bool is_same_user(const Glib::RefPtr<const Credentials>& other_credentials),
g_credentials_is_same_user, errthrow)
_WRAP_METHOD(uid_t get_unix_user(), g_credentials_get_unix_user, errthrow, ifdef G_OS_UNIX)
diff --git a/tools/m4/convert_gio.m4 b/tools/m4/convert_gio.m4
index 1304c1b..17e701f 100644
--- a/tools/m4/convert_gio.m4
+++ b/tools/m4/convert_gio.m4
@@ -31,7 +31,7 @@ _CONV_GIO_ENUM(AskPasswordFlags)
_CONV_GIO_ENUM(BusType)
_CONV_GIO_INCLASS_ENUM(Converter,Flags)
_CONV_GIO_INCLASS_ENUM(Converter,Result)
-_CONV_GIO_ENUM(CredentialsType)
+_CONV_GIO_INCLASS_ENUM(Credentials,Type)
_CONV_GIO_ENUM(DataStreamByteOrder)
_CONV_GIO_ENUM(DataStreamNewlineType)
_CONV_GIO_DBUS_ENUM(CallFlags)
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]