summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMurray Cumming <murrayc@murrayc.com>2017-04-18 12:26:26 +0200
committerMurray Cumming <murrayc@murrayc.com>2017-04-18 21:29:38 +0200
commitb6572ea3864f64f7e0d94e60329e53f7d1ef0a59 (patch)
tree2d79928a2b134e9432a014cacbd638cb98f4114c
parenta2de68272625f4d7265c3aedcec5209ad948dfdb (diff)
downloadglibmm-b6572ea3864f64f7e0d94e60329e53f7d1ef0a59.tar.gz
Gio::Notification: Change NotificationPriority to Priority.
-rw-r--r--gio/src/notification.hg5
-rw-r--r--tools/m4/convert_gio.m42
2 files changed, 4 insertions, 3 deletions
diff --git a/gio/src/notification.hg b/gio/src/notification.hg
index cc35e2c8..2ab03845 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 2d6fafb6..0724a8a4 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)