[nautilus-actions] Get ride of warning messages in some usual situations
- From: Pierre Wieser <pwieser src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [nautilus-actions] Get ride of warning messages in some usual situations
- Date: Sat, 3 Jul 2010 07:57:06 +0000 (UTC)
commit cf4d2f6d746e7d9212e3ebfd258db2ad34da14a7
Author: Pierre Wieser <pwieser trychlos org>
Date: Mon Jun 28 06:30:11 2010 +0200
Get ride of warning messages in some usual situations
ChangeLog | 3 +++
src/nact/nact-assistant-import.c | 7 +++++--
2 files changed, 8 insertions(+), 2 deletions(-)
---
diff --git a/ChangeLog b/ChangeLog
index 553ea74..519902e 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,5 +1,8 @@
2010-06-28 Pierre Wieser <pwieser trychlos org>
+ * src/nact/nact-assistant-import.c (has_readable_files):
+ Get ride of warning messages in some usual situations.
+
* src/nact/nact-main-menubar-file.c (nact_main_menubar_file_save_items):
Force sensitivities update when new tree store is empty.
diff --git a/src/nact/nact-assistant-import.c b/src/nact/nact-assistant-import.c
index 8aa8ba1..e0fe84d 100644
--- a/src/nact/nact-assistant-import.c
+++ b/src/nact/nact-assistant-import.c
@@ -424,6 +424,9 @@ on_file_selection_changed( GtkFileChooser *chooser, gpointer user_data )
}
}
+/*
+ * enable forward button if current selection has at least one readable file
+ */
static gboolean
has_readable_files( GSList *uris )
{
@@ -458,14 +461,14 @@ has_readable_files( GSList *uris )
type = g_file_info_get_file_type( info );
if( type != G_FILE_TYPE_REGULAR ){
- g_warning( "%s: %s is not a file", thisfn, uri );
+ g_debug( "%s: %s is not a file", thisfn, uri );
g_object_unref( info );
continue;
}
readable = g_file_info_get_attribute_boolean( info, G_FILE_ATTRIBUTE_ACCESS_CAN_READ );
if( !readable ){
- g_warning( "%s: %s is not readable", thisfn, uri );
+ g_debug( "%s: %s is not readable", thisfn, uri );
g_object_unref( info );
continue;
}
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]