Index: gnome-terminal/ChangeLog
===================================================================
--- gnome-terminal/ChangeLog	(Revision 2360)
+++ gnome-terminal/ChangeLog	(Arbeitskopie)
@@ -1,3 +1,10 @@
+2008-01-30  Andre Klapper  <a9016009@gmx.de>
+
+	* configure.in:
+	* src/profile-editor.c:
+	* src/terminal-screen.c:
+	port to gio, cleanup.
+
 2008-01-28  Christian Persch  <chpe@gnome.org>
 
 	* src/terminal.c: (terminal_util_set_atk_name_description): 
Index: gnome-terminal/configure.in
===================================================================
--- gnome-terminal/configure.in	(Revision 2360)
+++ gnome-terminal/configure.in	(Arbeitskopie)
@@ -30,8 +30,6 @@
 GCONF_REQUIRED=2.14.0
 STARTUP_NOTIFICATION_REQUIRED=0.8
 VTE_REQUIRED=0.15.3
-GNOMEVFS_REQUIRED=2.4
-GLIB_REQUIRED=2.12.0
 LIBGNOME_REQUIRED=2.14.0
 
 ## here we get the flags we'll actually use
@@ -39,13 +37,12 @@
  glib-2.0 >= $GLIB_REQUIRED dnl
  gtk+-2.0 >= $GTK_REQUIRED dnl
  gconf-2.0 >= $GCONF_REQUIRED dnl
+ gio-2.0 dnl
  libglade-2.0 dnl
  libgnomeui-2.0 dnl
  libgnome-2.0 >= $LIBGNOME_REQUIRED dnl
  libstartup-notification-1.0 >= $STARTUP_NOTIFICATION_REQUIRED dnl
- vte >= $VTE_REQUIRED dnl
- gnome-vfs-2.0 >= $GNOMEVFS_REQUIRED dnl
- glib-2.0 >= $GLIB_REQUIRED)
+ vte >= $VTE_REQUIRED)
 
 TERM_LIBS="$X_LIBS $X_PRE_LIBS -lX11 $X_EXTRA_LIBS $TERM_LIBS"
 TERM_CFLAGS="$X_CFLAGS $TERM_CFLAGS"
Index: gnome-terminal/src/profile-editor.c
===================================================================
--- gnome-terminal/src/profile-editor.c	(Revision 2360)
+++ gnome-terminal/src/profile-editor.c	(Arbeitskopie)
@@ -24,10 +24,10 @@
 #include "terminal-intl.h"
 #include "terminal.h"
 #include <glade/glade.h>
+#include <gio/gio.h>
 #include <libgnomeui/gnome-file-entry.h>
 #include <libgnomeui/gnome-icon-entry.h>
 #include <libgnomeui/gnome-thumbnail.h>
-#include <libgnomevfs/gnome-vfs-mime-utils.h>
 #include <string.h>
 #include <math.h>
 #include "terminal-widget.h"
@@ -810,18 +810,28 @@
     if (g_file_test (file, G_FILE_TEST_EXISTS) == TRUE) {
 
       GnomeThumbnailFactory *thumbs;
-      gchar *mime_type;
+      const char *mime_type = NULL;
+      GFile *file1;
+      GFileInfo *file_info;
 
-      mime_type = (gchar *)gnome_vfs_get_mime_type (file);
+      file1 = g_file_new_for_uri (file);
+      file_info = g_file_query_info (file1, 
+                                     G_FILE_ATTRIBUTE_STANDARD_CONTENT_TYPE,
+                                     0, NULL, NULL);
+      if (file_info != NULL) {
+        mime_type = g_file_info_get_content_type (file_info);
+      }
+      g_object_unref (file1);
+
       if (mime_type != NULL) {
         thumbs = gnome_thumbnail_factory_new (GNOME_THUMBNAIL_SIZE_NORMAL);
 
         pixbuf = gnome_thumbnail_factory_generate_thumbnail (thumbs,
                                                              file,
                                                              mime_type);
-        g_free (mime_type);
         g_object_unref (thumbs);
       }
+      g_object_unref (file_info);
     }
   }				
   return pixbuf;
Index: gnome-terminal/src/terminal-screen.c
===================================================================
--- gnome-terminal/src/terminal-screen.c	(Revision 2360)
+++ gnome-terminal/src/terminal-screen.c	(Arbeitskopie)
@@ -36,7 +36,6 @@
 #include "skey-popup.h"
 #include <libgnome/gnome-util.h> /* gnome_util_user_shell */
 #include <libgnome/gnome-url.h> /* gnome_url_show */
-#include <libgnomevfs/gnome-vfs-utils.h> /* gnome_vfs_make_uri_from_input */
 #include <string.h>
 #include <stdlib.h>
 #include <unistd.h>
