pidgin/pidgin.c

changeset 35612
a3e7ce26bc4b
parent 35605
8a0ae6cc73fc
child 35921
c8acfe6aa569
equal deleted inserted replaced
35611:375540c2da38 35612:a3e7ce26bc4b
30 int __cdecl pidgin_main(HINSTANCE hint, int argc, char *argv[]) 30 int __cdecl pidgin_main(HINSTANCE hint, int argc, char *argv[])
31 #else 31 #else
32 int main(int argc, char *argv[]) 32 int main(int argc, char *argv[])
33 #endif 33 #endif
34 { 34 {
35 const gchar *test_prgname;
36
35 #if !GLIB_CHECK_VERSION(2, 32, 0) 37 #if !GLIB_CHECK_VERSION(2, 32, 0)
36 /* GLib threading system is automaticaly initialized since 2.32. 38 /* GLib threading system is automaticaly initialized since 2.32.
37 * For earlier versions, it have to be initialized before calling any 39 * For earlier versions, it have to be initialized before calling any
38 * Glib or GTK+ functions. 40 * Glib or GTK+ functions.
39 */ 41 */
40 g_thread_init(NULL); 42 g_thread_init(NULL);
41 #endif 43 #endif
42 44
43 g_set_prgname("Pidgin"); 45 /* This is for UI testing purposes only, don't use it! */
46 test_prgname = g_getenv("PIDGIN_TEST_PRGNAME");
47 g_set_prgname(test_prgname ? test_prgname : "Pidgin");
44 g_set_application_name(PIDGIN_NAME); 48 g_set_application_name(PIDGIN_NAME);
45 49
46 #ifdef _WIN32 50 #ifdef _WIN32
47 winpidgin_set_exe_hinstance(hint); 51 winpidgin_set_exe_hinstance(hint);
48 #endif 52 #endif

mercurial