[gthumb] selection: set the file name as well
- From: Paolo Bacchilega <paobac src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gthumb] selection: set the file name as well
- Date: Mon, 26 Mar 2012 15:56:32 +0000 (UTC)
commit f3410fc8662143a1a33d581b27c23fa550be40b8
Author: Paolo Bacchilega <paobac src gnome org>
Date: Mon Mar 26 17:53:45 2012 +0200
selection: set the file name as well
extensions/selections/gth-selections-manager.c | 10 ++++++++++
1 files changed, 10 insertions(+), 0 deletions(-)
---
diff --git a/extensions/selections/gth-selections-manager.c b/extensions/selections/gth-selections-manager.c
index b08af35..c7cc14a 100644
--- a/extensions/selections/gth-selections-manager.c
+++ b/extensions/selections/gth-selections-manager.c
@@ -235,6 +235,16 @@ gth_selections_manager_update_file_info (GFile *file,
name = g_strdup ("???");
g_file_info_set_display_name (info, name);
g_free (name);
+
+ /* name */
+
+ if (n_selection > 0)
+ name = g_strdup_printf ("%d", n_selection);
+ else
+ name = g_strdup ("");
+ g_file_info_set_name (info, name);
+
+ g_free (name);
}
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]