summaryrefslogtreecommitdiff
path: root/src/themes/standard
AgeCommit message (Collapse)AuthorFilesLines
2020-04-16Filter-out img elements from notification bodyrbuj2-7/+56
2020-04-16The body of a notification may also contain hyperlinksrbuj1-10/+4
2019-10-11Use WARN_CFLAGS which are only set with --enable-compiler-warningsrbuj1-0/+1
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 Brenneman1-8/+6
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.
2018-06-06Use GVariantyetist1-9/+9
2018-01-30require GTK+ 3.22 and GLib 2.50monsta1-30/+0
and drop additional checks for min/max GLib versions, it's not needed
2017-08-29gtk 3.22: avoid deprecated gdk_screen_get_monitor... functions:ZenWalker1-0/+22
avoid deprecated: gdk_screen_get_monitor_geometry gdk_screen_get_monitor_at_point
2017-02-14themes: Implement support for action-icons buttonsIkey Doherty1-3/+11
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 Doherty1-6/+12
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 Doherty1-8/+14
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]>
2016-10-07Fix: bold formatting #111kajzer1-7/+4
2016-09-09Fix: properly escape textkajzer1-3/+10
2016-08-27Fix: escape text #106kajzer1-1/+3
2016-06-29Standard: port to GtkStyleContextraveit651-68/+112
2016-06-24themes: make text translatableraveit651-4/+6
taken from: https://git.gnome.org/browse/notification-daemon/commit/?id=b156f34
2016-06-24standard: do not use dprecated GtkAlignmentraveit651-20/+10
2016-05-19standard: update FIXME'smonsta1-10/+4
2016-05-19require GTK+ >= 3.14, drop GTK+2 code and --with-gtk build optionmonsta1-100/+9
2016-01-24use max. 50 charactersfor body labelWolfgang Ulbrich1-0/+1
2016-01-21some corrections in checks and fixes of deprecationsmonsta1-5/+7
2016-01-21use gtk_image_new_from_icon_name in both GTK+ buildsmonsta1-4/+0
2015-11-05GTK3 themes: fix deprecated usage of GTK_STOCK_CLOSEWolfgang Ulbrich1-0/+4
taken from: https://git.gnome.org/browse/notification-daemon/commit/?id=9d38817
2015-11-03Gtk3: fix height of notification in nodoka and standard themeWolfgang Ulbrich1-0/+1
- this fixes also the position of the notifications credits to..... Author: lukefromdc
2015-10-31GTK3 standard theme: fix deprecated gtk_misc_set_alignmentWolfgang Ulbrich1-0/+4
2015-10-15standard: fix missing prototypes warningsGiedrius Statkevičius1-0/+17
2015-10-05themes: check for GTK+3 release, not dev versionMonsta1-4/+4
2015-07-29standard: Fix crash due to incorrectly destroying widgetinfirit1-1/+1
Fixes #69
2015-07-29standard: fix copy/paste errorinfirit1-3/+3
2015-07-28Use accessor functions instead of direct accessinfirit1-1/+1
2015-07-28standard: Move countdown drawing to countdown_paint functioninfirit1-14/+25
And handle the draw/expose_event outside of countdown_paint which makes things easier to read.
2015-07-28standard: Move the draw and expose-event handling from paint_windowinfirit1-13/+25
No functional change but this makes the code a bit cleaner and easier to read.
2015-07-28standard: Rework cairo drawinginfirit1-39/+41
2015-07-28Remove unnecessary eventbox from themesinfirit1-13/+1
2015-07-28themes: Rename enable_transparency to compositedinfirit1-5/+5
We really are checking if we have a compositer running so composited fits better.
2015-07-24Fix comparison between unsigned and signed intinfirit1-1/+1
2015-07-24Fix several incompatible pointer type warningsinfirit1-1/+1
2015-07-22GTK3: don't use deprecated GtkRcStyleraveit651-0/+4
taken from https://git.gnome.org/browse/notification-daemon/commit/?id=2f0409b
2015-07-22GTK3: replace deprecated gtk_widget_size_requestraveit651-1/+9
2015-07-22GTK3: replace deprecated gtk_[v/h]_box_newraveit651-0/+5
2015-07-22Gtk3: replace deprecated gtk_misc_set_alignmentraveit651-1/+20
2015-07-22all themes: don't crash on notifications from RhythmboxMonsta1-1/+1
fixes https://github.com/mate-desktop/mate-notification-daemon/issues/55
2015-06-17GTK3: Fix positioning notifications with long textraveit651-0/+6
Closes https://github.com/mate-desktop/mate-notification-daemon/pull/52
2014-07-03Use g_object_unref in callback for both Gtk+ versionsinfirit1-8/+0
2014-07-03Cleanup GTK_CHECK_VERSION and unify code where possibleinfirit1-71/+11
* Use GtkAllocation for both Gtk+ versions, added in 2.18 * Bump gdk-pixbuf required to 2.22 (release 2010) * GDK_DISPLAY_XDISPLAY | Since always * gdk_display_get_default | Since 2.22 * gdk_window_get_screen | Since 2.24 * gtk_widget_get_window | Since 2.14
2014-07-03Use gtk_widget_get_visible for both Gtk+ versionsinfirit1-6/+2
Also fix a bug in add_notification_action in coco-theme
2014-01-18standard: Add GTK3 supportStefano Karapetsas1-27/+132
2013-10-08Make automake happy: INCLUDES->AM_CPPFLAGSinfirit1-1/+1
2013-01-04Fix engine loading portabilityYaakov Selkowitz1-1/+1
Use GModule APIs for determining engine filenames. Also, link with the -no-undefined flag, required on PE platforms.
2012-07-31Fixed incorrect fsf address. Closes issue #6.Steve Zesch1-2/+2
2011-12-10removed autogenerated filesStefano Karapetsas1-600/+0