diff options
author | Jonathan Blandford <jrb@redhat.com> | 2004-12-22 06:26:57 +0000 |
---|---|---|
committer | Jonathan Blandford <jrb@src.gnome.org> | 2004-12-22 06:26:57 +0000 |
commit | 61978d359be07e101d302f9cd0975d2bb16b1563 (patch) | |
tree | c348ab10f22051079148e225e81505ffdb989ac1 /gtk/queryimmodules.c | |
parent | 2b1e0dbaea38b817e492ad099cb690ad27dc76e6 (diff) | |
download | gtk+-61978d359be07e101d302f9cd0975d2bb16b1563.tar.gz |
print out the version and binary name in the header comment. Problem
Wed Dec 22 01:24:01 2004 Jonathan Blandford <jrb@redhat.com>
* gtk/queryimmodules.c (main): print out the version and binary
name in the header comment. Problem reported by Seth Nickell.
Diffstat (limited to 'gtk/queryimmodules.c')
-rw-r--r-- | gtk/queryimmodules.c | 9 |
1 files changed, 7 insertions, 2 deletions
diff --git a/gtk/queryimmodules.c b/gtk/queryimmodules.c index 432b9d90c0..c83572a0bb 100644 --- a/gtk/queryimmodules.c +++ b/gtk/queryimmodules.c @@ -40,6 +40,7 @@ #include <pango/pango-utils.h> #include "gtk/gtkrc.h" #include "gtk/gtkimmodule.h" +#include "gtk/gtkversion.h" static char * escape_string (const char *str) @@ -159,8 +160,12 @@ int main (int argc, char **argv) gboolean error = FALSE; g_printf ("# GTK+ Input Method Modules file\n" - "# Automatically generated file, do not edit\n" - "#\n"); + "# Automatically generated file, do not edit\n" + "# Created by %s from gtk+-%d.%d.%d\n" + "#\n", + argv[0], + GTK_MAJOR_VERSION, GTK_MINOR_VERSION, GTK_MICRO_VERSION); + if (argc == 1) /* No arguments given */ { |