License header and vim modeline
This commit is contained in:
parent
e82da9d5e7
commit
cff9c74e0e
3
menu.c
3
menu.c
@ -1,3 +1,5 @@
|
|||||||
|
/* copyright 2013 Sascha Kruse and contributors (see LICENSE for licensing information) */
|
||||||
|
|
||||||
#define _GNU_SOURCE
|
#define _GNU_SOURCE
|
||||||
#include <stdbool.h>
|
#include <stdbool.h>
|
||||||
#include <regex.h>
|
#include <regex.h>
|
||||||
@ -212,3 +214,4 @@ void context_menu(void)
|
|||||||
|
|
||||||
dispatch_menu_result(buf);
|
dispatch_menu_result(buf);
|
||||||
}
|
}
|
||||||
|
/* vim: set ts=8 sw=8 tw=0: */
|
||||||
|
1
menu.h
1
menu.h
@ -1,3 +1,4 @@
|
|||||||
|
/* copyright 2013 Sascha Kruse and contributors (see LICENSE for licensing information) */
|
||||||
#include "dunst.h"
|
#include "dunst.h"
|
||||||
#include <regex.h>
|
#include <regex.h>
|
||||||
|
|
||||||
|
@ -1,3 +1,4 @@
|
|||||||
|
/* copyright 2013 Sascha Kruse and contributors (see LICENSE for licensing information) */
|
||||||
|
|
||||||
#define _GNU_SOURCE
|
#define _GNU_SOURCE
|
||||||
|
|
||||||
@ -410,3 +411,4 @@ int notification_close(notification * n, int reason)
|
|||||||
return -1;
|
return -1;
|
||||||
return notification_close_by_id(n->id, reason);
|
return notification_close_by_id(n->id, reason);
|
||||||
}
|
}
|
||||||
|
/* vim: set ts=8 sw=8 tw=0: */
|
||||||
|
@ -1,3 +1,4 @@
|
|||||||
|
/* copyright 2013 Sascha Kruse and contributors (see LICENSE for licensing information) */
|
||||||
#pragma once
|
#pragma once
|
||||||
|
|
||||||
#include "x.h"
|
#include "x.h"
|
||||||
|
@ -1,4 +1,5 @@
|
|||||||
/* copyright 2013 Sascha Kruse and contributors (see LICENSE for licensing information) */
|
/* copyright 2013 Sascha Kruse and contributors (see LICENSE for licensing information) */
|
||||||
|
|
||||||
#define _GNU_SOURCE
|
#define _GNU_SOURCE
|
||||||
|
|
||||||
#include <string.h>
|
#include <string.h>
|
||||||
|
3
rules.c
3
rules.c
@ -1,3 +1,5 @@
|
|||||||
|
/* copyright 2013 Sascha Kruse and contributors (see LICENSE for licensing information) */
|
||||||
|
|
||||||
#include <glib.h>
|
#include <glib.h>
|
||||||
#include <fnmatch.h>
|
#include <fnmatch.h>
|
||||||
|
|
||||||
@ -64,3 +66,4 @@ bool rule_matches_notification(rule_t * r, notification * n)
|
|||||||
&& (!r->body || !fnmatch(r->body, n->body, 0))
|
&& (!r->body || !fnmatch(r->body, n->body, 0))
|
||||||
&& (!r->icon || !fnmatch(r->icon, n->icon, 0)));
|
&& (!r->icon || !fnmatch(r->icon, n->icon, 0)));
|
||||||
}
|
}
|
||||||
|
/* vim: set ts=8 sw=8 tw=0: */
|
||||||
|
1
rules.h
1
rules.h
@ -1,3 +1,4 @@
|
|||||||
|
/* copyright 2013 Sascha Kruse and contributors (see LICENSE for licensing information) */
|
||||||
#pragma once
|
#pragma once
|
||||||
|
|
||||||
#include <glib.h>
|
#include <glib.h>
|
||||||
|
@ -1,3 +1,4 @@
|
|||||||
|
/* copyright 2013 Sascha Kruse and contributors (see LICENSE for licensing information) */
|
||||||
|
|
||||||
#include <glib.h>
|
#include <glib.h>
|
||||||
#include <basedir.h>
|
#include <basedir.h>
|
||||||
@ -301,3 +302,4 @@ void load_settings(char *cmdline_config_path)
|
|||||||
xdgWipeHandle(&xdg);
|
xdgWipeHandle(&xdg);
|
||||||
#endif
|
#endif
|
||||||
}
|
}
|
||||||
|
/* vim: set ts=8 sw=8 tw=0: */
|
||||||
|
@ -1,3 +1,4 @@
|
|||||||
|
/* copyright 2013 Sascha Kruse and contributors (see LICENSE for licensing information) */
|
||||||
#pragma once
|
#pragma once
|
||||||
|
|
||||||
typedef struct _settings {
|
typedef struct _settings {
|
||||||
|
1
utils.c
1
utils.c
@ -1,3 +1,4 @@
|
|||||||
|
/* copyright 2013 Sascha Kruse and contributors (see LICENSE for licensing information) */
|
||||||
#define _GNU_SOURCE
|
#define _GNU_SOURCE
|
||||||
|
|
||||||
#include <string.h>
|
#include <string.h>
|
||||||
|
1
utils.h
1
utils.h
@ -1,3 +1,4 @@
|
|||||||
|
/* copyright 2013 Sascha Kruse and contributors (see LICENSE for licensing information) */
|
||||||
#ifndef UTIL_H
|
#ifndef UTIL_H
|
||||||
#define UTIL_H
|
#define UTIL_H
|
||||||
/* replace all occurrences of needle with replacement in haystack */
|
/* replace all occurrences of needle with replacement in haystack */
|
||||||
|
Loading…
x
Reference in New Issue
Block a user