Blame SOURCES/0001-shell-Don-t-set-per-panel-icon.patch

9b746a
From ec695fae92ef7470ef05211160e431f5c3486299 Mon Sep 17 00:00:00 2001
9b746a
From: Christian Kellner <christian@kellner.me>
9b746a
Date: Tue, 10 Apr 2018 09:43:22 +0200
9b746a
Subject: [PATCH 1/4] shell: Don't set per-panel icon
9b746a
9b746a
The control center app is considered one single application with
9b746a
a single icon to represent it. Therefore get rid of per-panel
9b746a
icons.
9b746a
---
9b746a
 shell/cc-window.c | 7 +------
9b746a
 1 file changed, 1 insertion(+), 6 deletions(-)
9b746a
9b746a
diff --git a/shell/cc-window.c b/shell/cc-window.c
9b746a
index 557819e0c76c..33f1ddcad511 100644
9b746a
--- a/shell/cc-window.c
9b746a
+++ b/shell/cc-window.c
9b746a
@@ -118,7 +118,6 @@ activate_panel (CcWindow    *self,
9b746a
                 GIcon       *gicon)
9b746a
 {
9b746a
   GtkWidget *box, *title_widget;
9b746a
-  const gchar *icon_name;
9b746a
 
9b746a
   if (!id)
9b746a
     return FALSE;
9b746a
@@ -144,12 +143,8 @@ activate_panel (CcWindow    *self,
9b746a
   gtk_stack_set_visible_child_name (GTK_STACK (self->stack), id);
9b746a
 
9b746a
   /* set the title of the window */
9b746a
-  icon_name = get_icon_name_from_g_icon (gicon);
9b746a
-
9b746a
   gtk_window_set_role (GTK_WINDOW (self), id);
9b746a
   gtk_header_bar_set_title (GTK_HEADER_BAR (self->panel_headerbar), name);
9b746a
-  gtk_window_set_default_icon_name (icon_name);
9b746a
-  gtk_window_set_icon_name (GTK_WINDOW (self), icon_name);
9b746a
 
9b746a
   title_widget = cc_panel_get_title_widget (CC_PANEL (self->current_panel));
9b746a
   gtk_header_bar_set_custom_title (GTK_HEADER_BAR (self->panel_headerbar), title_widget);
9b746a
@@ -778,4 +773,4 @@ cc_window_set_search_item (CcWindow   *center,
9b746a
   gtk_search_bar_set_search_mode (GTK_SEARCH_BAR (center->search_bar), TRUE);
9b746a
   gtk_entry_set_text (GTK_ENTRY (center->search_entry), search);
9b746a
   gtk_editable_set_position (GTK_EDITABLE (center->search_entry), -1);
9b746a
-}
9b746a
\ No newline at end of file
9b746a
+}
9b746a
-- 
9b746a
2.17.0
9b746a