Add config option startup_notifications = 0/1
git-svn-id: http://tint2.googlecode.com/svn/trunk@737 121b4492-b84c-0410-8b4c-0d4edfb3f3cc
This commit is contained in:
committed by
mrovi9000@gmail.com
parent
c900bc24b2
commit
5faf063f96
@@ -393,6 +393,7 @@ void config_write_launcher(FILE *fp)
|
||||
g_free(icon_theme);
|
||||
icon_theme = NULL;
|
||||
}
|
||||
fprintf(fp, "startup_notifications = %d\n", gtk_toggle_button_get_active(GTK_TOGGLE_BUTTON(startup_notifications)) ? 1 : 0);
|
||||
|
||||
int index;
|
||||
for (index = 0; ; index++) {
|
||||
@@ -1119,6 +1120,9 @@ void add_entry(char *key, char *value)
|
||||
else if (strcmp(key, "launcher_icon_theme") == 0) {
|
||||
set_current_icon_theme(value);
|
||||
}
|
||||
else if (strcmp(key, "startup_notifications") == 0) {
|
||||
gtk_toggle_button_set_active(GTK_TOGGLE_BUTTON(startup_notifications), atoi(value));
|
||||
}
|
||||
|
||||
/* Tooltip */
|
||||
else if (strcmp(key, "tooltip_show_timeout") == 0) {
|
||||
|
||||
Reference in New Issue
Block a user