/pidgin/main: a3e7ce26bc4b: Allow program name change, to make d...
Tomasz Wasilczyk
twasilczyk at pidgin.im
Wed Feb 26 05:14:08 EST 2014
Changeset: a3e7ce26bc4b87e0859f547d776614641467debe
Author: Tomasz Wasilczyk <twasilczyk at pidgin.im>
Date: 2014-02-26 11:14 +0100
Branch: default
URL: https://hg.pidgin.im/pidgin/main/rev/a3e7ce26bc4b
Description:
Allow program name change, to make dogtail UI tests possible
diffstat:
pidgin/pidgin.c | 6 +++++-
1 files changed, 5 insertions(+), 1 deletions(-)
diffs (23 lines):
diff --git a/pidgin/pidgin.c b/pidgin/pidgin.c
--- a/pidgin/pidgin.c
+++ b/pidgin/pidgin.c
@@ -32,6 +32,8 @@ int __cdecl pidgin_main(HINSTANCE hint,
int main(int argc, char *argv[])
#endif
{
+ const gchar *test_prgname;
+
#if !GLIB_CHECK_VERSION(2, 32, 0)
/* GLib threading system is automaticaly initialized since 2.32.
* For earlier versions, it have to be initialized before calling any
@@ -40,7 +42,9 @@ int main(int argc, char *argv[])
g_thread_init(NULL);
#endif
- g_set_prgname("Pidgin");
+ /* This is for UI testing purposes only, don't use it! */
+ test_prgname = g_getenv("PIDGIN_TEST_PRGNAME");
+ g_set_prgname(test_prgname ? test_prgname : "Pidgin");
g_set_application_name(PIDGIN_NAME);
#ifdef _WIN32
More information about the Commits
mailing list