[Xfce4-commits] <thunar-vfs:master> Use g_type_init() instead of gtk_init() in the test programs.

Jannis Pohlmann noreply at xfce.org
Fri Sep 18 05:14:01 CEST 2009


Updating branch refs/heads/master
         to e62bded7e82aa0d7206f95a54acaf2cce0d1ce66 (commit)
       from 94ae3ee22fd1ecfc9803b3751cd584447de3b39e (commit)

commit e62bded7e82aa0d7206f95a54acaf2cce0d1ce66
Author: Jannis Pohlmann <jannis at xfce.org>
Date:   Fri Sep 18 05:12:37 2009 +0200

    Use g_type_init() instead of gtk_init() in the test programs.
    
    ThunarVFS doesn't need full GTK+ to be ready for its own initialization.
    The buildbot clients may have no DISPLAY set and requiring GTK+ in tests
    would thus break make distcheck.

 tests/test-thunar-vfs-path.c |    4 ++--
 1 files changed, 2 insertions(+), 2 deletions(-)

diff --git a/tests/test-thunar-vfs-path.c b/tests/test-thunar-vfs-path.c
index 1ee89e4..d2d43c3 100644
--- a/tests/test-thunar-vfs-path.c
+++ b/tests/test-thunar-vfs-path.c
@@ -48,8 +48,8 @@ main (int argc, char **argv)
   if (!g_thread_supported ())
     g_thread_init (NULL);
 
-  /* initialize Gtk+ (required for Thunar-VFS initialization) */
-  gtk_init (&argc, &argv);
+  /* initialize the GType type system (required for Thunar-VFS initialization) */
+  g_type_init ();
 
   /* initialize the thunar-vfs library */
   thunar_vfs_init ();



More information about the Xfce4-commits mailing list