[nautilus-actions] Do not emit a warning when file is just not found
- From: Pierre Wieser <pwieser src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [nautilus-actions] Do not emit a warning when file is just not found
- Date: Sat, 3 Jul 2010 07:57:36 +0000 (UTC)
commit 80ca4500eeeb96a1dcbd2631a11a0f99a263b22d
Author: pierre <pierre vfedora10 virtuals pwi>
Date: Tue Jun 29 11:19:10 2010 +0200
Do not emit a warning when file is just not found
ChangeLog | 5 +++++
src/nact/nact-gtk-utils.c | 6 +++++-
2 files changed, 10 insertions(+), 1 deletions(-)
---
diff --git a/ChangeLog b/ChangeLog
index c9c8ff1..2fcc6bf 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,8 @@
+2010-06-29 Pierre Wieser <pwieser trychlos org>
+
+ * src/nact/nact-gtk-utils.c (nact_gtk_utils_get_pixbuf):
+ Do not emit a warning when file is just not found.
+
2010-06-28 Pierre Wieser <pwieser trychlos org>
* src/io-desktop/nadp-writer.c
diff --git a/src/nact/nact-gtk-utils.c b/src/nact/nact-gtk-utils.c
index de25929..be9c09c 100644
--- a/src/nact/nact-gtk-utils.c
+++ b/src/nact/nact-gtk-utils.c
@@ -123,7 +123,11 @@ nact_gtk_utils_get_pixbuf( const gchar *name, GtkWidget *widget, gint size )
if( g_path_is_absolute( name )){
pixbuf = gdk_pixbuf_new_from_file_at_size( name, size, size, &error );
if( error ){
- g_warning( "%s: gdk_pixbuf_new_from_file_at_size: name=%s, error=%s", thisfn, name, error->message );
+ if( error->code == G_FILE_ERROR_NOENT ){
+ g_debug( "%s: gdk_pixbuf_new_from_file_at_size: name=%s, error=%s", thisfn, name, error->message );
+ } else {
+ g_warning( "%s: gdk_pixbuf_new_from_file_at_size: name=%s, error=%s", thisfn, name, error->message );
+ }
g_error_free( error );
error = NULL;
pixbuf = NULL;
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]