summaryrefslogtreecommitdiff
path: root/src
AgeCommit message (Collapse)AuthorFilesLines
2020-10-24Add initial Wayland backendWilliam Wold4-0/+91
2020-10-24Hide X11-specific code behind ifdefs and checksWilliam Wold2-23/+92
2020-10-24Remove X11 calls from nodoka-theme.cWilliam Wold1-10/+20
2020-10-24Use gdk_set_allowed_backends ()William Wold1-0/+8
2020-10-24Include directory in warning message when failed to open themesWilliam Wold1-1/+1
2020-06-26add git.mk to generate .gitignoretamplan2-0/+4
2020-06-17daemon: Use monotonic time instead of real timerbuj1-36/+11
2020-06-12Remove conversion warningsrbuj7-44/+53
2020-04-16Filter-out img elements from notification bodyrbuj5-25/+222
2020-04-16The body of a notification may also contain hyperlinksrbuj4-37/+21
2020-04-08Rewrite mate-notification-properties.ui from scratchrbuj2-352/+163
2020-04-08daemon: Remove warning about GTimeVal deprecationrbuj1-38/+34
2019-11-07migrate from intltools to gettextWu Xiaotian2-4/+6
2019-10-20Use gresource for mate-notification-properties.uirbuj3-22/+33
2019-10-11Use WARN_CFLAGS which are only set with --enable-compiler-warningsrbuj6-6/+9
It removes --enable-more-warnings, since it is recommended to use --enable-compile-warnings=maximum It updates configure summary. It removes c++ checks as there is no c++ code.
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