summaryrefslogtreecommitdiff
path: root/src
AgeCommit message (Collapse)AuthorFilesLines
2019-09-17Fix decoding the hints dictionary.Kyle Brenneman5-69/+50
g_variant_lookup works like g_variant_get, so using a format string of "v" only works if the type is actually a GVariant. Since none of the hints have GVariant values, that means every g_variant_get with a "v" format will fail. Fix all of the g_variant_lookup calls so that they either unpack a value directly, or use a "@" prefix when it's more convenient to fetch the value as a GVariant pointer. In addition, in cases where we do fetch a GVariant, make sure that we unreference it afterward.
2019-09-02mate-notification-properties: initialize do-not-disturb checkboxJason Conti1-0/+2
2019-09-02mate-notification-properties: Add do-not-disturb checkboxJason Conti3-2/+57
2019-09-02src/daemon/daemon.c: check for do-not-disturb and skip notificationJason Conti1-7/+25
2019-09-02* Add do-not-disturb settingJason Conti1-0/+1
2019-07-04Remove trailing whitespacesLaurent Napias4-90/+90
2018-12-02Avoid compile warning for g_type_class_add_privateWu Xiaotian2-118/+87
- src/daemon/daemon.c - src/daemon/daemon.h
2018-06-06Use GVariantyetist6-41/+39
2018-06-06Migrate from dbus-glib to GDBusyetist2-333/+267
2018-06-06Add signals, remove annotation from xml fileyetist1-6/+9
2018-06-06Use gdbus generate filesyetist1-6/+14
2018-06-06Add new fileyetist1-0/+93
2018-05-13Fix some gdk deprecationsyetist1-15/+15
2018-04-24src/daemon/daemon.c: Replace deprecated gvfs-open call by "gio open" from ↵Mike Gabriel1-2/+2
libglib2.0-bin.
2018-01-30require GTK+ 3.22 and GLib 2.50monsta8-157/+1
and drop additional checks for min/max GLib versions, it's not needed
2017-12-12WidthOfScreen and HeightOfScreen implementationPablo Barciela2-7/+7
This commit reverts: https://github.com/mate-desktop/mate-notification-daemon/commit/52b7c3807e71278f2d902a79cf6c08c839a1b0ad And it applies an alternative to fix the deprecated functions: gdk_screen_get_width gdk_screen_get_height
2017-08-29gtk 3.22: avoid deprecated gdk_screen_get_monitor... functions:ZenWalker4-1/+115
avoid deprecated: gdk_screen_get_monitor_geometry gdk_screen_get_monitor_at_point
2017-08-13avoid deprecated gdk_screen_get_width/heightZenWalker2-6/+7
2017-08-10avoid deprecated gdk_screen_get_n_monitorsZenWalker3-0/+28
2017-08-09Fixes high cpu usage with large timeoutsJury Verrigni1-1/+1
2017-08-07unescape URI-encode paths for icon filesAlfio Emanuele Fresta1-1/+4
Fix #117
2017-02-14themes/slider: Vertically center the pie_countdownIkey Doherty1-0/+1
Prior to this change we could end up with a warped pie countdown if the buttons were of a larger size, breaking the constraints of the pie to be vertically stretched. Signed-off-by: Ikey Doherty <[email protected]>
2017-02-14themes: Implement support for action-icons buttonsIkey Doherty4-10/+45
Now that all of the elements are in place to support (dynamically) the action icons, we can use the 'key' in place of the 'label' when the client sends an hint requesting it. Some other minor issues were corrected in this change, such as ensuring that we always show *all* widgets inside of the notification window so that when a live notification window is updated, the action box state is not then hidden from view. Signed-off-by: Ikey Doherty <[email protected]>
2017-02-14themes: Ensure that we never add more than one pie_countdownIkey Doherty4-32/+48
Prior to this commit we would always end up adding multiple pie_countdown widgets in a number of situations when updating the notification. In modern media player apps, many updates are sent for the lifetime of a single notification window, leading to new drawing areas being added and counting down with each track/information change. Note this hasn't been noticable for quite some time, because in many of the themes the pie countdown hasn't actually been visible due to the actions box having become hidden completely, meaning that the actions and pie show very briefly, and are immediately nuked on a change to the notification. Signed-off-by: Ikey Doherty <[email protected]>
2017-02-14themes: Add functionality to test for presence of action-iconsIkey Doherty4-20/+48
Each of the themes will have to detect the 'action-icons' hint passed to them in 'set_notification_hints' to make a determination on whether or not to use image based buttons, instead of textual buttons, in their actions boxes. This factory behaviour simply extends the existing checks for urgency-hint, as well as unifying the code style between the various in-tree theme implementations. Signed-off-by: Ikey Doherty <[email protected]>
2017-02-14daemon: Export the "action-icons" capability to clientsIkey Doherty1-0/+1
The freedesktop specification states that clients may opt to use named icons instead of textual labels on action buttons. In this instance, the icon name is passed as the 'key' (actions[i+1]) element in the actions data passed to the daemon. For themes to render the icon, they should check the hints passed by the client for a boolean value of "action-icons", and if it is set they should then create an image button based on the key, and not the label. Many applications now make use of action-icons, such as media players, to provide self describing actions with well known icon names, such as playback controls. In the absence of support for action-icons they fallback to less useful buttons and generally less actions. Signed-off-by: Ikey Doherty <[email protected]>
2016-10-07Fix: bold formatting #111kajzer4-30/+18
2016-09-09Fix: properly escape textkajzer4-14/+40
2016-09-02Add support for GNotificationkajzer1-0/+16
2016-08-27Fix: escape text #106kajzer4-6/+20
2016-06-29Slider: improve GtkStyleContex functionsraveit651-69/+62
theme looks really better now
2016-06-29Standard: port to GtkStyleContextraveit651-68/+112
2016-06-24themes: make text translatableraveit654-14/+20
taken from: https://git.gnome.org/browse/notification-daemon/commit/?id=b156f34
2016-06-24standard: do not use dprecated GtkAlignmentraveit651-20/+10
2016-06-24Save some RAM in NotifyTimeoutraveit651-2/+2
By using a bit, rather than a byte for gbooleans. https://bugzilla.gnome.org/show_bug.cgi?id=622556 taken from: https://git.gnome.org/browse/notification-daemon/commit/?id=c43d398
2016-06-24slider: do not use dprecated GtkAlignmentraveit651-29/+20
2016-06-24nodoka: do not use deprecated GtkAlignmentraveit651-15/+7
2016-06-24coco: do not use dprecated GtkAlignmentraveit651-31/+19
2016-06-24GTK+-3.20 daemon: avoid deprecated GdkDeviceManagerraveit651-0/+9
2016-05-19standard: update FIXME'smonsta1-10/+4
2016-05-19slider: remove color overriding that does nothing these daysmonsta1-65/+0
we dropped color reversing in d80ac825a8815317e06d206c2199bedfe0474f85 anyway as it never worked properly in GTK+3, so now override_style function does nothing
2016-05-19slider: drop unused #definemonsta1-3/+0
2016-05-19require GTK+ >= 3.14, drop GTK+2 code and --with-gtk build optionmonsta6-836/+31
2016-05-14Coco, Nodoka: set notification window typeSorokin Alexei2-0/+2
fixes animation effects with compiz
2016-01-24use max. 50 charactersfor body labelWolfgang Ulbrich4-0/+8
2016-01-21some corrections in checks and fixes of deprecationsmonsta4-21/+26
2016-01-21use gtk_image_new_from_icon_name in both GTK+ buildsmonsta3-12/+0
2015-12-16GTK3 slider: remove reverse_color functionWolfgang Ulbrich1-19/+4
2015-12-16GTK3 slider: don't call override_style multiple timesGyörgy Balló1-24/+8
It's enough to call gtk_widget_override_* functions on the toplevel element, child elements will inherit the style properly. Fixes issue #90.
2015-12-15GTK3 slider: don't use deprecated gtk_style_context_get_background_colorWolfgang Ulbrich1-3/+23
inspired from: https://git.gnome.org/browse/metacity/commit/?id=f201335