Bug 561504 – testgtk should load rc file from sub folder

2008-11-26  Christian Dywan  <christian@imendio.com>

	Bug 561504 – testgtk should load rc file from sub folder

	* tests/testgtk.c (main):
        Make testgtk look in subfolder and warn if not found

svn path=/trunk/; revision=21809
This commit is contained in:
Christian Dywan 2008-11-26 08:36:10 +00:00 committed by Christian Dywan
parent 2c83960053
commit 46e4d22c89
2 changed files with 11 additions and 0 deletions

View File

@ -1,3 +1,10 @@
2008-11-26 Christian Dywan <christian@imendio.com>
Bug 561504 testgtk should load rc file from sub folder
* tests/testgtk.c (main):
Make testgtk look in subfolder and warn if not found
2008-11-25 Johan Dahlin <jdahlin@async.com.br>
Bug 559947 Unchecked dependency on python>=2.4

View File

@ -13895,6 +13895,10 @@ main (int argc, char *argv[])
*/
if (file_exists ("testgtkrc"))
gtk_rc_add_default_file ("testgtkrc");
else if (file_exists ("tests/testgtkrc"))
gtk_rc_add_default_file ("tests/testgtkrc");
else
g_warning ("Couldn't find file \"testgtkrc\".");
g_set_application_name ("GTK+ Test Program");