diff options
author | Brandon Casey <drafnel@gmail.com> | 2013-09-23 11:49:09 -0700 |
---|---|---|
committer | Junio C Hamano <gitster@pobox.com> | 2013-10-16 09:35:31 -0700 |
commit | ff55c47d0f737cd33594e864a0e5a5e1d32fdd13 (patch) | |
tree | f5939ff133e3bc6294592a361b395373363cd50a /contrib/credential/gnome-keyring/git-credential-gnome-keyring.c | |
parent | contrib/git-credential-gnome-keyring.c: ensure buffer is non-empty before acc... (diff) | |
download | tgif-ff55c47d0f737cd33594e864a0e5a5e1d32fdd13.tar.xz |
contrib/git-credential-gnome-keyring.c: set Gnome application name
Since this is a Gnome application, let's set the application name to
something reasonable. This will be displayed in Gnome dialog boxes
e.g. the one that prompts for the user's keyring password.
We add an include statement for glib.h and add the glib-2.0 cflags and
libs to the compilation arguments, but both of these are really noops
since glib is already a dependency of gnome-keyring.
Signed-off-by: Brandon Casey <drafnel@gmail.com>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
Diffstat (limited to 'contrib/credential/gnome-keyring/git-credential-gnome-keyring.c')
-rw-r--r-- | contrib/credential/gnome-keyring/git-credential-gnome-keyring.c | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/contrib/credential/gnome-keyring/git-credential-gnome-keyring.c b/contrib/credential/gnome-keyring/git-credential-gnome-keyring.c index 0d2c55e0d2..43b19dd5a2 100644 --- a/contrib/credential/gnome-keyring/git-credential-gnome-keyring.c +++ b/contrib/credential/gnome-keyring/git-credential-gnome-keyring.c @@ -28,6 +28,7 @@ #include <stdarg.h> #include <stdlib.h> #include <errno.h> +#include <glib.h> #include <gnome-keyring.h> /* @@ -399,6 +400,8 @@ int main(int argc, char *argv[]) exit(EXIT_FAILURE); } + g_set_application_name("Git Credential Helper"); + /* lookup operation callback */ while (try_op->name && strcmp(argv[1], try_op->name)) try_op++; |