[gthumb] Fix minor compilation warnings, bug 583463
- From: Michael J. Chudobiak <mjc src gnome org>
- To: svn-commits-list gnome org
- Subject: [gthumb] Fix minor compilation warnings, bug 583463
- Date: Thu, 21 May 2009 12:03:19 -0400 (EDT)
commit 0423c1fc4094c1cea0e634396eb1776fcf1083fa
Author: Marc Pavot <marc pavot gmail com>
Date: Thu May 21 12:02:47 2009 -0400
Fix minor compilation warnings, bug 583463
---
libgthumb/file-data.c | 7 +++----
libgthumb/gfile-utils.c | 2 +-
src/totem-scrsaver.c | 2 ++
3 files changed, 6 insertions(+), 5 deletions(-)
diff --git a/libgthumb/file-data.c b/libgthumb/file-data.c
index e2ea382..f7f3d88 100644
--- a/libgthumb/file-data.c
+++ b/libgthumb/file-data.c
@@ -392,12 +392,11 @@ file_data_has_local_path (FileData *fd,
/* TODO: this is where we could trying mounting unmounted remote URIs */
if (fd->local_path == NULL) {
char *message;
- message = g_strdup_printf ("%s has not been mounted, or the gvfs daemon has not provided a local mount point in ~/.gvfs/. gThumb can not access this remote file directly.", fd->utf8_path);
+ message = "%s has not been mounted, or the gvfs daemon has not provided a local mount point in ~/.gvfs/. gThumb can not access this remote file directly.";
if (window == NULL)
- g_warning ("%s has not been mounted, or the gvfs daemon has not provided a local mount point in ~/.gvfs/. gThumb can not access this remote file directly.", fd->utf8_path);
+ g_warning (message, fd->utf8_path);
else
- _gtk_error_dialog_run (window, message);
- g_free (message);
+ _gtk_error_dialog_run (window, message, fd->utf8_path);
return FALSE;
} else {
return TRUE;
diff --git a/libgthumb/gfile-utils.c b/libgthumb/gfile-utils.c
index 18a6da7..2b65f8f 100644
--- a/libgthumb/gfile-utils.c
+++ b/libgthumb/gfile-utils.c
@@ -497,7 +497,7 @@ gfile_ensure_dir_exists (GFile *dir,
guint64
gfile_get_destination_free_space (GFile *file)
{
- guint64 freespace = 100000000000; /* bogus value for unsupported systems */
+ guint64 freespace = G_MAXUINT64; /* bogus value for unsupported systems */
GFileInfo *info;
GError *err = NULL;
diff --git a/src/totem-scrsaver.c b/src/totem-scrsaver.c
index 3f9e274..3cf357b 100644
--- a/src/totem-scrsaver.c
+++ b/src/totem-scrsaver.c
@@ -99,7 +99,9 @@ fake_event (TotemScrsaver *scr)
static void
totem_scrsaver_init (TotemScrsaver *scr)
{
+#ifdef HAVE_XTEST
int a, b, c, d;
+#endif /* HAVE_XTEST */
scr->priv = g_new0 (TotemScrsaverPrivate, 1);
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]