41 Commits

Author SHA1 Message Date
Ilya Tumaykin
d2c63f1f00 Fix: Add a couple of missing stdlib.h includes required for exit()
https://github.com/knopwob/dunst/issues/267
2016-10-29 02:52:30 -03:00
kongo2002
f25c294569 fix memleaks 2016-10-29 02:27:17 -03:00
Johannes M. Griebler
9e80de6153 Actually fix segfault 2016-10-13 20:51:49 +02:00
Andrew Krasichkov
a6d9626c54 Try to support raw image data (see knopwob/dunst#151 ) 2016-03-09 18:37:04 +02:00
Spencer
504477edc1 add option to run scripts for suppressed notifications - fix #212 2015-06-30 19:22:32 -07:00
Justin Jacobs
61ce42a7e2 Fix memory leaks 2015-03-03 00:49:24 -05:00
Yuri D'Elia
b5e00c43c7 Fix markup handling.
The current "allow_markup" setting will simply strip any markup from the final
notification, which includes formatting elements. On top of that, literal
[<>&..] symbols are not quoted before are being passed onto pango in several
places, resulting in stray error messages.

This patch fixes allow_markup to correctly strip markup only from the incoming
notification, not from the format.

You might also want to treat incoming messages as literal text (supplied by
un-aware programs), in which case you need to properly quote the text before
it's processed by pango. A new setting is introduced, called "plain_text",
which forces incoming messages to be treated literally.

allow_markup/plain_text are complimentary to each other.

The new rule actions allow to narrow down the handling to a specific block,
achieving notification Zen.

The following is done in this patch:

- Fix ruleset initialization in config.def.h.
- Introduce new allow_markup/plain_text actions in the rules.
- Fix handling of allow_markup to strip markup from summary/body only,
  preserving format's markup.
- Fix broken string functions (string_replace_all didn't handle recursive
  replacements correctly).
- Fix quoting of other literal fields (icon name/appname).
- Fix handling of ignore_newline as well (applied only on summary/body).
- Dunstrc update with the same previous defaults.
2014-12-05 16:05:41 +01:00
nopjmp
71032c3c11 remove whitespace 2014-06-16 21:32:25 -05:00
nopjmp
788bd964d7 move id replace before stack_duplicates logic 2014-06-16 21:14:03 -05:00
Sascha Kruse
3cd7f24fdd config for max history length
fix #177
2014-06-16 20:54:06 +02:00
Sascha Kruse
39a0826fea fix invalid free
Thanks To DaveDavenport
2014-06-15 01:38:00 +02:00
Sascha Kruse
1ccb6185ac allow rule matching against category
fix issue #135
2014-03-08 15:03:38 +01:00
Gjum
d0662e78ec Introduce default icon setting 2014-02-28 22:18:57 +01:00
Gjum
a02ab4cf70 Change how icons are loaded
- use several icon_folders instead of a single icon_path
- check all paths for the icon
2014-02-27 15:15:11 +01:00
Gjum
d9e68803dc Fix stuff regarding icons
- fix icon_path string calculations
- add default settings to config.def.h
2014-02-26 19:05:32 +01:00
Gjum
c2801181f8 Add icon support
- icons are displayed at the top left corner
- disabed by default, fully backwards-compatible
- no additional dependencies, only cairo used
- TODO: only supports png (but all default images are png)
- TODO: message formatting is sometimes buggy
2014-02-25 23:35:08 +01:00
Sascha Kruse
bf6c1a6406 make notification stacking optional
see #137
2014-01-22 10:44:30 +01:00
Andrei Gorgan
619076660b Add "show_indicators" option
Add an option for disabling marking messages containing URLs or actions.
This means that messages will not be displayed with "(U)" or "(A)"
before them, but you can still use the context menu on them.
2013-07-21 15:31:41 +03:00
Sascha Kruse
0ccd06faf3 don't increment dup_count when progess differs
work around the fact that notify-send doesn't expose the replaces-id.
2013-07-16 13:22:53 +02:00
Sascha Kruse
5cd2b26d0f compare summary & body when looking for duplicates
this way similar notifications with different progres hint are seen as duplicates.

fix #114
2013-07-16 13:22:47 +02:00
Sascha Kruse
fb8eafe3fa show pango markup errors only once
see also #111
2013-06-29 00:50:57 +02:00
progandy
dab943a702 fix unreliable and missed timeouts 2013-05-28 17:25:20 +02:00
progandy
f947bc71d4 interpert <br> if newline and markup are allowed 2013-03-08 08:56:34 +01:00
Sascha Kruse
f58fc76966 remove unused variable 2013-03-08 08:56:11 +01:00
progandy
4a7e174fe8 add number for links with markup in body, handle them separately from markup removal
Conflicts:
	notification.c
2013-03-08 08:54:30 +01:00
Sascha Kruse
23e2a8094e remove debug printf 2013-03-08 08:43:56 +01:00
progandy
00b2be3dc0 cleaner handling of actions in menu 2013-03-08 08:39:22 +01:00
Sascha Kruse
9931512315 only add timeout when it hits before any existing timeout 2013-03-08 07:27:19 +01:00
Sascha Kruse
c612822057 sleep until notification times out or we need redraw 2013-03-08 04:15:47 +01:00
Sascha Kruse
0909620b3a fix insertion order on close_key 2013-02-22 19:58:03 +00:00
Sascha Kruse
0d8be7dccf markup 2013-02-22 18:36:25 +00:00
Sascha Kruse
bcc0c6621f fix dup_count indicator 2013-02-22 18:36:24 +00:00
Sascha Kruse
fdffe4a6c0 colors 2013-02-22 18:36:24 +00:00
Sascha Kruse
ced9186cf1 removed the rest of old drawing code 2013-02-22 18:36:24 +00:00
Sascha Kruse
64a7dd9743 move text generation to notification code 2013-02-22 10:47:11 +00:00
Sascha Kruse
cff9c74e0e License header and vim modeline 2013-02-22 06:09:13 +00:00
Sascha Kruse
e82da9d5e7 indent -linx --no-tabs 2013-02-21 23:23:54 +00:00
Sascha Kruse
b8004f56d8 remove folding markers again 2013-02-21 23:19:30 +00:00
Sascha Kruse
5bc68ffc4b move global variables related to x in struct 2013-02-21 23:04:43 +00:00
Sascha Kruse
f88cc4e831 renamed draw.{c,h} x.{c,h} 2013-02-21 20:03:00 +00:00
Sascha Kruse
4e92d61804 notification.{c,h} 2013-02-21 18:02:20 +00:00