Merge pull request #59 from pSub/master

Just fixed a typing error (depricated → deprecated)
This commit is contained in:
Sascha Kruse 2012-09-03 08:25:39 -07:00
commit aeb412052a

16
dunst.c
View File

@ -65,8 +65,8 @@ int dunst_grab_errored = False;
int next_notification_id = 1; int next_notification_id = 1;
int depricated_mod = False; int deprecated_mod = False;
int depricated_dunstrc_shortcuts = False; int deprecated_dunstrc_shortcuts = False;
/* notification lists */ /* notification lists */
list *notification_queue = NULL; /* all new notifications get into here */ list *notification_queue = NULL; /* all new notifications get into here */
@ -1414,7 +1414,7 @@ void parse_cmdline(int argc, char *argv[])
format = optarg; format = optarg;
break; break;
case 'M': case 'M':
depricated_mod = True; deprecated_mod = True;
mod = string_to_mask(optarg); mod = string_to_mask(optarg);
close_ks.mask = mod; close_ks.mask = mod;
close_all_ks.mask = mod; close_all_ks.mask = mod;
@ -1546,7 +1546,7 @@ dunst_ini_handle(void *user_data, const char *section,
else if (strcmp(name, "line_height") == 0) else if (strcmp(name, "line_height") == 0)
line_height = atoi(value); line_height = atoi(value);
else if (strcmp(name, "modifier") == 0) { else if (strcmp(name, "modifier") == 0) {
depricated_dunstrc_shortcuts = True; deprecated_dunstrc_shortcuts = True;
char *c = dunst_ini_get_string(value); char *c = dunst_ini_get_string(value);
KeySym mod = string_to_mask(c); KeySym mod = string_to_mask(c);
free(c); free(c);
@ -1757,11 +1757,11 @@ int main(int argc, char *argv[])
color_strings[ColBG][CRIT] = critbgcolor; color_strings[ColBG][CRIT] = critbgcolor;
setup(); setup();
if (depricated_mod) if (deprecated_mod)
warn("-mod is depricated. Use \"-key mod+key\" instead\n", warn("-mod is deprecated. Use \"-key mod+key\" instead\n",
CRIT); CRIT);
if (depricated_dunstrc_shortcuts) if (deprecated_dunstrc_shortcuts)
warn("You are using depricated settings. Please update your dunstrc. SEE [shortcuts]", CRIT); warn("You are using deprecated settings. Please update your dunstrc. SEE [shortcuts]", CRIT);
run(); run();
return 0; return 0;
} }