[gnome-flashback] desktop: use standard::display-name attribute



commit a9f95dbe7a3edc80d27da801e3c7271806c1e1d1
Author: Alberts Muktupāvels <alberts muktupavels gmail com>
Date:   Mon Nov 11 21:34:13 2019 +0200

    desktop: use standard::display-name attribute

 gnome-flashback/libdesktop/gf-icon-view.c    | 2 +-
 gnome-flashback/libdesktop/gf-icon.c         | 2 +-
 gnome-flashback/libdesktop/gf-monitor-view.c | 4 ++--
 3 files changed, 4 insertions(+), 4 deletions(-)
---
diff --git a/gnome-flashback/libdesktop/gf-icon-view.c b/gnome-flashback/libdesktop/gf-icon-view.c
index df6a102..c31a379 100644
--- a/gnome-flashback/libdesktop/gf-icon-view.c
+++ b/gnome-flashback/libdesktop/gf-icon-view.c
@@ -57,7 +57,7 @@ G_DEFINE_TYPE (GfIconView, gf_icon_view, GTK_TYPE_EVENT_BOX)
 static char *
 get_required_attributes (void)
 {
-  return gf_build_attributes_list (G_FILE_ATTRIBUTE_STANDARD_NAME,
+  return gf_build_attributes_list (G_FILE_ATTRIBUTE_STANDARD_DISPLAY_NAME,
                                    G_FILE_ATTRIBUTE_STANDARD_ICON,
                                    G_FILE_ATTRIBUTE_STANDARD_IS_HIDDEN,
                                    G_FILE_ATTRIBUTE_STANDARD_IS_BACKUP,
diff --git a/gnome-flashback/libdesktop/gf-icon.c b/gnome-flashback/libdesktop/gf-icon.c
index f0eddfd..ab23248 100644
--- a/gnome-flashback/libdesktop/gf-icon.c
+++ b/gnome-flashback/libdesktop/gf-icon.c
@@ -176,7 +176,7 @@ gf_icon_constructed (GObject *object)
   gtk_image_set_from_gicon (GTK_IMAGE (self->image), icon, GTK_ICON_SIZE_DIALOG);
   gtk_image_set_pixel_size (GTK_IMAGE (self->image), self->icon_size);
 
-  name = g_file_info_get_name (self->info);
+  name = g_file_info_get_display_name (self->info);
   gtk_label_set_text (GTK_LABEL (self->label), name);
 }
 
diff --git a/gnome-flashback/libdesktop/gf-monitor-view.c b/gnome-flashback/libdesktop/gf-monitor-view.c
index c9a2f54..9ec1b10 100644
--- a/gnome-flashback/libdesktop/gf-monitor-view.c
+++ b/gnome-flashback/libdesktop/gf-monitor-view.c
@@ -143,7 +143,7 @@ create_dummy_icon (GfMonitorView *self)
       return NULL;
     }
 
-  attributes = gf_build_attributes_list (G_FILE_ATTRIBUTE_STANDARD_NAME,
+  attributes = gf_build_attributes_list (G_FILE_ATTRIBUTE_STANDARD_DISPLAY_NAME,
                                          G_FILE_ATTRIBUTE_STANDARD_ICON,
                                          NULL);
 
@@ -167,7 +167,7 @@ create_dummy_icon (GfMonitorView *self)
          "ever since the 1500s, when an unknown printer took a galley of "
          "type and scrambled it to make a type specimen book.";
 
-  g_file_info_set_name (info, name);
+  g_file_info_set_display_name (info, name);
 
   widget = gf_icon_new (file, info);
   g_object_unref (info);


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]