summaryrefslogtreecommitdiff
path: root/src
AgeCommit message (Collapse)AuthorFilesLines
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
2015-12-14slider: fix uninitialized variableGyörgy Balló1-0/+1
2015-11-24Revert "daemon: fix "GValueArray is deprecated" warnings"monsta1-9/+9
This reverts commit 7d162d83a2008c25b3134fcdda8265f23d461585. fixes https://github.com/mate-desktop/mate-notification-daemon/issues/91
2015-11-05GTK3 themes: fix deprecated usage of GTK_STOCK_CLOSEWolfgang Ulbrich3-0/+12
taken from: https://git.gnome.org/browse/notification-daemon/commit/?id=9d38817
2015-11-05GTK3 Nodoka: remove wrong border from notificationWolfgang Ulbrich1-0/+2
2015-11-03coco: fix gtk3 window height the right waylukefromdc1-0/+1
Coco:fix the height of the entire notification window in gtk3 builds, not just the visible area This gives consistant position no matter what the height of the notification window, and never overlaps the panel regardless of panel position. Top, bottom, left, right panels tested along with top left, top right, bottom left, and bottom right notification locations. None overlapped, consistant spacing from notification window to panel in all cases-just like slider. The previous "fix" has been reverted and is not present in this commit.
2015-11-03Gtk3: fix height of notification in nodoka and standard themeWolfgang Ulbrich2-0/+2
- this fixes also the position of the notifications credits to..... Author: lukefromdc
2015-11-02Nodoka: use a fixed font colorWolfgang Ulbrich1-2/+6
fixes https://github.com/mate-desktop/mate-notification-daemon/issues/86 Currenty the theme use the font color from gtk theme, which give us unreadable notifications text in case of using a dark gtk theme with mostly light font colors.
2015-10-31coco, nodoka, slider: removed a unused variable and fixes warningsWolfgang Ulbrich3-6/+0
2015-10-31GTK3 slider: fix some warningsWolfgang Ulbrich1-2/+2
- theme.c:1010:31: warning: passing argument 1 of 'gtk_style_context_get_color' from incompatible pointer type [-Wincompatible-pointer-types] gtk_style_context_get_color (context, GTK_STATE_FLAG_NORMAL, &color); - theme.c:1011:25: warning: passing argument 1 of 'gtk_style_context_get' from incompatible pointer type [-Wincompatible-pointer-types] gtk_style_context_get (context, GTK_STATE_FLAG_NORMAL, "background-color", &fg_color, NULL); - theme.c:979:19: warning: variable 'style' set but not used [-Wunused-but-set-variable] GtkStyleContext* style;
2015-10-31Revert "Gtk3: slider: Do not use deprecated ↵Wolfgang Ulbrich1-3/+3
gtk_style_context_get_background_color" This commit breaks the bg of notifications, in result notifications are unreadable, black fg color on black bg. This reverts commit 0fb782d2dcc129ab0858ea0d4399f6c183cb20c1.
2015-10-31GTK3 standard theme: fix deprecated gtk_misc_set_alignmentWolfgang Ulbrich1-0/+4
2015-10-30Merge pull request #81 from raveit65/dev-deprecated-gdk_display_get_pointerWolfgang Ulbrich1-0/+13
GTK3 daemon: fix deprecated gdk_display_get_pointer
2015-10-30GTK3 daemon: fix deprecated gdk_display_get_pointerWolfgang Ulbrich1-0/+13
inspired from: https://git.gnome.org/browse/notification-daemon/patch/?id=9f376d3
2015-10-30daemon: fix "GValueArray is deprecated" warningsGiedrius Statkevičius1-9/+9
GValueArray is deprecated so move to GArray instead in _notify_daemon_pixbuf_from_data_hint()
2015-10-19one more change from char* to gchar*monsta1-1/+1
2015-10-19daemon: fix memory leak in on_popup_location_changed()Giedrius Statkevičius1-3/+4
Don't forget to free the result of g_settings_get_string(). Also, change `slocation' to proper type gchar* for storing results of g_settings_get_string(). Furthermore, this allows to use that pointer in free() without any casting.
2015-10-16themes: use pi value provided by glibGiedrius Statkevičius2-17/+15
2015-10-15nodoka: fix missing prototype warningsGiedrius Statkevičius1-0/+17
2015-10-15slider: fix missing prototypes warningsGiedrius Statkevičius1-0/+18
2015-10-15standard: fix missing prototypes warningsGiedrius Statkevičius1-0/+17
2015-10-15coco: fix missing prototypes warningGiedrius Statkevičius1-0/+17
2015-10-07daemon: remove unused define WIDTHGiedrius Statkevičius1-2/+0