[glibmm] Gio::AppInfo: Change AppInfoCreateFlags to CreateFlags



commit d4196fab96fcac9943b36056aa8659bea66272a4
Author: Murray Cumming <murrayc murrayc com>
Date:   Tue Apr 18 11:17:31 2017 +0200

    Gio::AppInfo: Change AppInfoCreateFlags to CreateFlags

 gio/src/appinfo.ccg     |    2 +-
 gio/src/appinfo.hg      |    5 +++--
 tools/m4/convert_gio.m4 |    2 +-
 3 files changed, 5 insertions(+), 4 deletions(-)
---
diff --git a/gio/src/appinfo.ccg b/gio/src/appinfo.ccg
index 8685638..dc01c85 100644
--- a/gio/src/appinfo.ccg
+++ b/gio/src/appinfo.ccg
@@ -27,7 +27,7 @@ namespace Gio
 
 Glib::RefPtr<AppInfo>
 AppInfo::create_from_commandline(
-  const std::string& commandline, const std::string& application_name, AppInfoCreateFlags flags)
+  const std::string& commandline, const std::string& application_name, CreateFlags flags)
 {
   GAppInfo* capp_info = nullptr;
   GError* gerror = nullptr;
diff --git a/gio/src/appinfo.hg b/gio/src/appinfo.hg
index 87af9e8..ef6c288 100644
--- a/gio/src/appinfo.hg
+++ b/gio/src/appinfo.hg
@@ -41,7 +41,6 @@ typedef struct _GAppInfoIface GAppInfoIface;
 namespace Gio
 {
 
-_WRAP_ENUM(AppInfoCreateFlags, GAppInfoCreateFlags, NO_GTYPE)
 
 class File;
 
@@ -56,9 +55,11 @@ class AppInfo : public Glib::Interface
   _CLASS_INTERFACE(AppInfo, GAppInfo, G_APP_INFO, GAppInfoIface)
 
 public:
+  _WRAP_ENUM(CreateFlags, GAppInfoCreateFlags, NO_GTYPE)
+
   static Glib::RefPtr<AppInfo> create_from_commandline(const std::string& commandline,
                                                        const std::string& application_name,
-                                                       AppInfoCreateFlags flags);
+                                                       CreateFlags flags);
 
   /**  Creates a duplicate of this AppInfo.
    * @return A duplicate of this AppInfo.
diff --git a/tools/m4/convert_gio.m4 b/tools/m4/convert_gio.m4
index b72c764..d5aceb3 100644
--- a/tools/m4/convert_gio.m4
+++ b/tools/m4/convert_gio.m4
@@ -25,7 +25,7 @@ define(`_CONV_GIO_DBUS_INCLASS_ENUM',`dnl
 _CONV_INCLASS_ENUM(`Gio::DBus',`$1',`$2',`m4_ifelse(`$3',,`GDBus$1$2',`$3')')
 ')dnl
 
-_CONV_GIO_ENUM(AppInfoCreateFlags)
+_CONV_GIO_INCLASS_ENUM(AppInfo,CreateFlags)
 _CONV_GIO_INCLASS_ENUM(Application,Flags)
 _CONV_GIO_ENUM(AskPasswordFlags)
 _CONV_GIO_ENUM(BusType)


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]