diff options
-rw-r--r-- | gio/src/notification.hg | 5 | ||||
-rw-r--r-- | 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 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) |