]> asedeno.scripts.mit.edu Git - PuTTY.git/blobdiff - unix/gtkmain.c
Unix buildinfo: stop saying 'GTK' in pure CLI utilities.
[PuTTY.git] / unix / gtkmain.c
index a7b4a4e918681002b50771dd4423a4c93a6ccd84..c80da702ae3033078896a553d45ff5e119976af4 100644 (file)
@@ -287,10 +287,13 @@ static void help(FILE *fp) {
 }
 
 static void version(FILE *fp) {
-    if(fprintf(fp, "%s: %s\n", appname, ver) < 0 || fflush(fp) < 0) {
+    char *buildinfo_text = buildinfo("\n");
+    if(fprintf(fp, "%s: %s\n%s\n", appname, ver, buildinfo_text) < 0 ||
+       fflush(fp) < 0) {
        perror("output error");
        exit(1);
     }
+    sfree(buildinfo_text);
 }
 
 static struct gui_data *the_inst;
@@ -539,6 +542,8 @@ GtkWidget *make_gtk_toplevel_window(void *frontend)
 
 extern int cfgbox(Conf *conf);
 
+const int buildinfo_gtk_relevant = TRUE;
+
 int main(int argc, char **argv)
 {
     Conf *conf;