all repos — tint2 @ b78c854700a9486766880860d6f121ffee51c78e

fork of the tint2 desktop panel for my custom setup - only minimized windows across all desktops for the taskbar

Flush stdout/stderr after newline

git-svn-id: http://tint2.googlecode.com/svn/trunk@760 121b4492-b84c-0410-8b4c-0d4edfb3f3cc
o9000 o9000
commit

b78c854700a9486766880860d6f121ffee51c78e

parent

eef4987b0b5d686975bc2c1fb26ea1b66e7b06cb

4 files changed, 4 insertions(+), 3 deletions(-)

jump to
M src/launcher/icon-theme-common.csrc/launcher/icon-theme-common.c

@@ -394,7 +394,6 @@

free(name); } fprintf(stderr, "\n"); - fflush(stderr); // Free the queue GSList *l;
M src/tint.csrc/tint.c

@@ -1082,6 +1082,10 @@ GSList *it;

struct timeval* timeout; int hidden_dnd = 0; + // Make stdout/stderr flush after a newline (for some reason they don't even if tint2 is started from a terminal) + setlinebuf(stdout); + setlinebuf(stderr); + start: init (argc, argv);
M src/tint2conf/main.csrc/tint2conf/main.c

@@ -433,7 +433,6 @@ g_free(backup_path);

} // Write config file printf("Writing %s to %s\n", g_default_theme, g_path_config); - fflush(stdout); copy_file(g_default_theme, g_path_config); // Restart panel int unused = system("killall -SIGUSR1 tint2");
M src/tint2conf/properties_rw.csrc/tint2conf/properties_rw.c

@@ -517,7 +517,6 @@ }

void config_save_file(const char *path) { printf("config_save_file : %s\n", path); - fflush(stdout); FILE *fp; if ((fp = fopen(path, "wt")) == NULL)