formatting
This commit is contained in:
		
							parent
							
								
									70cdb3535c
								
							
						
					
					
						commit
						9df4ebff18
					
				
							
								
								
									
										22
									
								
								dunst.c
									
									
									
									
									
								
							
							
						
						
									
										22
									
								
								dunst.c
									
									
									
									
									
								
							| @ -575,7 +575,6 @@ int init_notification(notification * n, int id) | |||||||
| 
 | 
 | ||||||
|         n->redisplayed = False; |         n->redisplayed = False; | ||||||
| 
 | 
 | ||||||
| 
 |  | ||||||
|         dunst_printf(MSG, "%s\n", n->msg); |         dunst_printf(MSG, "%s\n", n->msg); | ||||||
|         dunst_printf(INFO, |         dunst_printf(INFO, | ||||||
|                      "{\n  appname: %s\n  summary: %s\n  body: %s\n  icon: %s\n  urgency: %d\n  timeout: %d\n}", |                      "{\n  appname: %s\n  summary: %s\n  body: %s\n  icon: %s\n  urgency: %d\n  timeout: %d\n}", | ||||||
| @ -593,23 +592,24 @@ int init_notification(notification * n, int id) | |||||||
|         return n->id; |         return n->id; | ||||||
| } | } | ||||||
| 
 | 
 | ||||||
| 
 | int close_notification(int id) | ||||||
| 
 | { | ||||||
| int close_notification(int id) { |  | ||||||
|         l_node *iter; |         l_node *iter; | ||||||
| 
 | 
 | ||||||
|         for(iter = displayed_notifications->head; iter; iter = iter->next) { |         for (iter = displayed_notifications->head; iter; iter = iter->next) { | ||||||
|                 notification *n = (notification *) iter->data; |                 notification *n = (notification *) iter->data; | ||||||
|                 if (n->id == id) { |                 if (n->id == id) { | ||||||
|                         l_move(displayed_notifications, notification_history, iter); |                         l_move(displayed_notifications, notification_history, | ||||||
|  |                                iter); | ||||||
|                         return True; |                         return True; | ||||||
|                 } |                 } | ||||||
|         } |         } | ||||||
| 
 | 
 | ||||||
|         for(iter = notification_queue->head; iter; iter = iter->next) { |         for (iter = notification_queue->head; iter; iter = iter->next) { | ||||||
|                 notification *n = (notification *) iter->data; |                 notification *n = (notification *) iter->data; | ||||||
|                 if (n->id == id) { |                 if (n->id == id) { | ||||||
|                         l_move(displayed_notifications, notification_history, iter); |                         l_move(displayed_notifications, notification_history, | ||||||
|  |                                iter); | ||||||
|                         return True; |                         return True; | ||||||
|                 } |                 } | ||||||
|         } |         } | ||||||
| @ -804,7 +804,6 @@ void map_win(void) | |||||||
| 
 | 
 | ||||||
| void parse_cmdline(int argc, char *argv[]) | void parse_cmdline(int argc, char *argv[]) | ||||||
| { | { | ||||||
| 
 |  | ||||||
|         int c; |         int c; | ||||||
|         while (1) { |         while (1) { | ||||||
|                 static struct option long_options[] = { |                 static struct option long_options[] = { | ||||||
| @ -938,7 +937,6 @@ void parse_cmdline(int argc, char *argv[]) | |||||||
| 
 | 
 | ||||||
| static int dunst_ini_get_boolean(const char *value) | static int dunst_ini_get_boolean(const char *value) | ||||||
| { | { | ||||||
| 
 |  | ||||||
|         switch (value[0]) { |         switch (value[0]) { | ||||||
|         case 'y': |         case 'y': | ||||||
|         case 'Y': |         case 'Y': | ||||||
| @ -959,7 +957,6 @@ static int dunst_ini_get_boolean(const char *value) | |||||||
| 
 | 
 | ||||||
| static rule_t *dunst_rules_find_or_create(const char *section) | static rule_t *dunst_rules_find_or_create(const char *section) | ||||||
| { | { | ||||||
| 
 |  | ||||||
|         l_node *iter; |         l_node *iter; | ||||||
|         rule_t *rule; |         rule_t *rule; | ||||||
| 
 | 
 | ||||||
| @ -984,7 +981,6 @@ static rule_t *dunst_rules_find_or_create(const char *section) | |||||||
| 
 | 
 | ||||||
| static char *dunst_ini_get_string(const char *value) | static char *dunst_ini_get_string(const char *value) | ||||||
| { | { | ||||||
| 
 |  | ||||||
|         char *s; |         char *s; | ||||||
| 
 | 
 | ||||||
|         if (value[0] == '"') |         if (value[0] == '"') | ||||||
| @ -1002,7 +998,6 @@ static int | |||||||
| dunst_ini_handle(void *user_data, const char *section, | dunst_ini_handle(void *user_data, const char *section, | ||||||
|                  const char *name, const char *value) |                  const char *name, const char *value) | ||||||
| { | { | ||||||
| 
 |  | ||||||
|         if (strcmp(section, "global") == 0) { |         if (strcmp(section, "global") == 0) { | ||||||
|                 if (strcmp(name, "font") == 0) |                 if (strcmp(name, "font") == 0) | ||||||
|                         font = dunst_ini_get_string(value); |                         font = dunst_ini_get_string(value); | ||||||
| @ -1150,7 +1145,6 @@ void parse_cmdline_for_config_file(int argc, char *argv[]) | |||||||
| 
 | 
 | ||||||
| int main(int argc, char *argv[]) | int main(int argc, char *argv[]) | ||||||
| { | { | ||||||
| 
 |  | ||||||
|         now = time(&now); |         now = time(&now); | ||||||
|         dc = initdc(); |         dc = initdc(); | ||||||
|         geometry.mask = XParseGeometry(geom, |         geometry.mask = XParseGeometry(geom, | ||||||
|  | |||||||
		Loading…
	
	
			
			x
			
			
		
	
		Reference in New Issue
	
	Block a user
	 Sascha Kruse
						Sascha Kruse