app/tests: The single-window-mode setting is in the sessionrc now

We don't need to have a special gimprc because of it.
This commit is contained in:
Martin Nordholts
2012-01-10 19:43:51 +01:00
parent 64d2dc122a
commit 6335190ff7
4 changed files with 2 additions and 29 deletions

View File

@ -173,7 +173,6 @@ gimp_test_session_load_and_write_session_files (const gchar *loaded_sessionrc,
GimpTestFileState final_dockrc_state = { NULL, NULL, { 0, 0 } };
gchar *sessionrc_filename = NULL;
gchar *dockrc_filename = NULL;
gchar *gimprc_filename = NULL;
/* Make sure to run this before we use any GIMP functions */
gimp_test_utils_set_gimp2_directory ("GIMP_TESTING_ABS_TOP_SRCDIR",
@ -198,15 +197,7 @@ gimp_test_session_load_and_write_session_files (const gchar *loaded_sessionrc,
g_setenv ("GIMP_TESTING_DOCKRC_NAME", loaded_dockrc, TRUE /*overwrite*/);
/* Start up GIMP */
if (single_window_mode)
{
gimprc_filename =
g_build_filename (g_getenv ("GIMP_TESTING_ABS_TOP_SRCDIR"),
"app/tests/gimpdir/gimprc-single-window",
NULL);
}
gimp = gimp_init_for_gui_testing_with_rc (TRUE /*show_gui*/, gimprc_filename);
g_free (gimprc_filename);
gimp = gimp_init_for_gui_testing (TRUE /*show_gui*/);
/* Let the main loop run until idle to let things stabilize. This
* includes parsing sessionrc and dockrc

View File

@ -8,7 +8,6 @@ EXTRA_DIST = \
dockrc-2-6 \
dockrc-2-8 \
dockrc-expected \
gimprc-single-window \
sessionrc \
sessionrc-2-6 \
sessionrc-2-8-multi-window \

View File

@ -1,12 +0,0 @@
# GIMP gimprc
#
# This is your personal gimprc file. Any variable defined in this file takes
# precedence over the value defined in the system-wide gimprc:
# /home/martin/prefix/dev/etc/gimp/2.0/gimprc
# Most values can be set within GIMP by changing some options in the
# Preferences dialog.
(single-window-mode yes)
# end of gimprc

View File

@ -129,7 +129,6 @@ int main(int argc, char **argv)
{
Gimp *gimp = NULL;
gint result = -1;
gchar *gimprc;
gimp_test_bail_if_no_display ();
gtk_test_init (&argc, &argv, NULL);
@ -140,11 +139,7 @@ int main(int argc, char **argv)
/* Launch GIMP in single-window mode */
g_setenv ("GIMP_TESTING_SESSIONRC_NAME", "sessionrc-2-8-single-window", TRUE /*overwrite*/);
gimprc = g_build_filename (g_getenv ("GIMP_TESTING_ABS_TOP_SRCDIR"),
"app/tests/gimpdir/gimprc-single-window",
NULL);
gimp = gimp_init_for_gui_testing_with_rc (TRUE /*show_gui*/, gimprc);
g_free (gimprc);
gimp = gimp_init_for_gui_testing (TRUE /*show_gui*/);
gimp_test_run_mainloop_until_idle ();
ADD_TEST (new_dockable_not_in_new_window);