diff options
author | Marcin Kolny <marcin.kolny@gmail.com> | 2015-08-08 14:45:12 +0200 |
---|---|---|
committer | Marcin Kolny <marcin.kolny@gmail.com> | 2015-08-08 14:45:59 +0200 |
commit | 0d5f63b18f5766760cf39e82ee11482984e0a938 (patch) | |
tree | e3f74b9b37e7618c92840024077dff43e6d08f0d /gio/src/notification.hg | |
parent | dce7a844e48a582e42eb2b60eef5c1f2527540ac (diff) | |
parent | d94115843f38967b5e883f5f7d8057882ae364cb (diff) | |
download | glibmm-0d5f63b18f5766760cf39e82ee11482984e0a938.tar.gz |
Merge branch 'master' into glibmm-gir-gmmprocglibmm-gir-gmmproc
Diffstat (limited to 'gio/src/notification.hg')
-rw-r--r-- | gio/src/notification.hg | 11 |
1 files changed, 6 insertions, 5 deletions
diff --git a/gio/src/notification.hg b/gio/src/notification.hg index b2a891fa..83c38ba4 100644 --- a/gio/src/notification.hg +++ b/gio/src/notification.hg @@ -25,6 +25,8 @@ namespace Gio { class Icon; +_WRAP_ENUM(NotificationPriority, GNotificationPriority, newin "2,44") + /** User Notifications (pop up messages). * * Gio::Notification is a mechanism for creating a notification to be shown @@ -67,7 +69,8 @@ public: _WRAP_METHOD(void set_title(const Glib::ustring& title), g_notification_set_title) _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) - _WRAP_METHOD(void set_urgent(bool urgent = true), g_notification_set_urgent, deprecated "This should not be used in newly-written code.") + _WRAP_METHOD(void set_urgent(bool urgent = true), g_notification_set_urgent, deprecated "Use set_priority() instead.") + _WRAP_METHOD(void set_priority(NotificationPriority priority = NOTIFICATION_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) @@ -76,6 +79,7 @@ public: * @a action will be activated with @a target as its parameter. * * @newin{2,40} + * * @param label Label of the button. * @param action An action name. * @param target @a action's parameter. @@ -96,6 +100,7 @@ public: * was sent on is activated. * * @newin{2,40} + * * @param action An action name. * @param target @a action's parameter. */ @@ -106,10 +111,6 @@ public: // Ignore functions with variable-length parameter lists. _IGNORE(g_notification_add_button_with_target, g_notification_set_default_action_and_target) - // Ignore private methods - _IGNORE(g_notification_get_urgent, g_notification_get_button, g_notification_get_default_action) - _IGNORE(g_notification_get_n_buttons, g_notification_get_button_with_action, g_notification_serialize) - _IGNORE(g_notification_get_icon, g_notification_get_id, g_notification_get_body, g_notification_get_title) // There are no properties, signals, vfuncs. }; |