[glibmm] Gio::Notification: Change NotificationPriority to Priority.



commit b6572ea3864f64f7e0d94e60329e53f7d1ef0a59
Author: Murray Cumming <murrayc murrayc com>
Date:   Tue Apr 18 12:26:26 2017 +0200

    Gio::Notification: Change NotificationPriority to Priority.

 gio/src/notification.hg |    5 +++--
 tools/m4/convert_gio.m4 |    2 +-
 2 files changed, 4 insertions(+), 3 deletions(-)
---
diff --git a/gio/src/notification.hg b/gio/src/notification.hg
index cc35e2c..2ab0384 100644
--- a/gio/src/notification.hg
+++ b/gio/src/notification.hg
@@ -27,7 +27,6 @@ namespace Gio
 {
 class Icon;
 
-_WRAP_ENUM(NotificationPriority, GNotificationPriority, newin "2,44")
 
 /** User Notifications (pop up messages).
  *
@@ -65,6 +64,8 @@ protected:
   _IGNORE(g_notification_new)
 
 public:
+  _WRAP_ENUM(Priority, GNotificationPriority, newin "2,44")
+
   _WRAP_METHOD_DOCS_ONLY(g_notification_new)
   _WRAP_CREATE(const Glib::ustring& title)
 
@@ -72,7 +73,7 @@ public:
   _WRAP_METHOD(void set_body(const Glib::ustring& body), g_notification_set_body)
   _WRAP_METHOD(void set_icon(const Glib::RefPtr<Icon>& icon), g_notification_set_icon)
   _IGNORE(g_notification_set_urgent)
-  _WRAP_METHOD(void set_priority(NotificationPriority priority = NotificationPriority::NORMAL), 
g_notification_set_priority, newin "2,44")
+  _WRAP_METHOD(void set_priority(Priority priority = Priority::NORMAL), g_notification_set_priority, newin 
"2,44")
 
   _WRAP_METHOD(void add_button(const Glib::ustring& label, const Glib::ustring& detailed_action), 
g_notification_add_button)
 
diff --git a/tools/m4/convert_gio.m4 b/tools/m4/convert_gio.m4
index 2d6fafb..0724a8a 100644
--- a/tools/m4/convert_gio.m4
+++ b/tools/m4/convert_gio.m4
@@ -60,7 +60,7 @@ _CONV_GIO_ENUM(MountMountFlags)
 _CONV_GIO_ENUM(MountOperationResult)
 _CONV_GIO_ENUM(MountUnmountFlags)
 _CONV_GIO_ENUM(NetworkConnectivity)
-_CONV_GIO_ENUM(NotificationPriority)
+_CONV_GIO_INCLASS_ENUM(Notification,Priority)
 _CONV_GIO_ENUM(OutputStreamSpliceFlags)
 _CONV_GIO_ENUM(PasswordSave)
 _CONV_GIO_ENUM(ResolverRecordType)


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