Web   ·   Wiki   ·   Activities   ·   Blog   ·   Lists   ·   Chat   ·   Meeting   ·   Bugs   ·   Git   ·   Translate   ·   Archive   ·   People   ·   Donate
summaryrefslogtreecommitdiffstats
path: root/shell
diff options
context:
space:
mode:
authorAlexander Larsson <alexl@redhat.com>2008-02-25 13:18:20 (GMT)
committer Alexander Larsson <alexl@src.gnome.org>2008-02-25 13:18:20 (GMT)
commit1aa84014113a4c139d31e4da47616cd097fc7348 (patch)
tree6cf832da69131777811d2aa7a034b742849bc7a6 /shell
parente5d66854c51430bae2429a93dbaf12d9709afef6 (diff)
Use g_file_has_prefix instead of renamed g_file_contains_file.
2008-02-25 Alexander Larsson <alexl@redhat.com> * shell/ev-window.c (ev_window_clear_temp_file): Use g_file_has_prefix instead of renamed g_file_contains_file. * configure.ac: Require new glib for above change. svn path=/trunk/; revision=2929
Diffstat (limited to 'shell')
-rw-r--r--shell/ev-window.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/shell/ev-window.c b/shell/ev-window.c
index dc8ac94..4c3fcf2 100644
--- a/shell/ev-window.c
+++ b/shell/ev-window.c
@@ -1277,7 +1277,7 @@ ev_window_clear_temp_file (EvWindow *ev_window)
file = g_file_new_for_uri (ev_window->priv->uri);
tempdir = g_file_new_for_path (g_get_tmp_dir ());
- if (g_file_contains_file (tempdir, file)) {
+ if (g_file_has_prefix (file, tempdir)) {
g_file_delete (file, NULL, NULL);
}