[rhythmbox] podcast: set the icon during construction



commit 67d845842ba54b046339a0b689a987ef6b65aed5
Author: gkrithi8 <gkrithi8 gmail com>
Date:   Wed Oct 25 18:07:40 2017 +0530

    podcast: set the icon during construction
    
    See https://bugzilla.gnome.org/show_bug.cgi?id=789157

 podcast/rb-podcast-source.c |    5 ++++-
 1 files changed, 4 insertions(+), 1 deletions(-)
---
diff --git a/podcast/rb-podcast-source.c b/podcast/rb-podcast-source.c
index ec06805..523e101 100644
--- a/podcast/rb-podcast-source.c
+++ b/podcast/rb-podcast-source.c
@@ -984,7 +984,9 @@ rb_podcast_source_new (RBShell *shell,
        GSettings *settings;
        GtkBuilder *builder;
        GMenu *toolbar;
+       GIcon *icon;
 
+       icon = g_themed_icon_new (icon_name);
        settings = g_settings_new (PODCAST_SETTINGS_SCHEMA);
 
        builder = rb_builder_load ("podcast-toolbar.ui", NULL);
@@ -994,15 +996,16 @@ rb_podcast_source_new (RBShell *shell,
        source = RB_SOURCE (g_object_new (RB_TYPE_PODCAST_SOURCE,
                                          "name", name,
                                          "shell", shell,
+                                         "icon", icon,
                                          "entry-type", RHYTHMDB_ENTRY_TYPE_PODCAST_POST,
                                          "podcast-manager", podcast_manager,
                                          "base-query", base_query,
                                          "settings", g_settings_get_child (settings, "source"),
                                          "toolbar-menu", toolbar,
                                          NULL));
-       rb_display_page_set_icon_name (RB_DISPLAY_PAGE (source), icon_name);
        g_object_unref (settings);
        g_object_unref (builder);
+       g_object_unref (icon);
 
        return source;
 }


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