Skip to content
This repository has been archived by the owner on Mar 10, 2019. It is now read-only.

Commit

Permalink
Revert "podcast: set the icon during construction"
Browse files Browse the repository at this point in the history
This reverts commit 67d8458.
  • Loading branch information
Jonathan Matthew committed Nov 5, 2017
1 parent 5d10cff commit 9563140
Showing 1 changed file with 1 addition and 4 deletions.
5 changes: 1 addition & 4 deletions podcast/rb-podcast-source.c
Original file line number Diff line number Diff line change
Expand Up @@ -984,9 +984,7 @@ 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);
Expand All @@ -996,16 +994,15 @@ 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;
}
Expand Down

0 comments on commit 9563140

Please sign in to comment.