[gnome-control-center/gbsneto/applications-panel-cleanups: 3/16] applications: Remove CSS file




commit 1b42b854c28cda8fc11b808ca2ebff4cb1b3b4af
Author: Georges Basile Stavracas Neto <georges stavracas gmail com>
Date:   Thu Jan 20 12:33:20 2022 -0300

    applications: Remove CSS file
    
    It is now unused

 panels/applications/applications.gresource.xml | 1 -
 panels/applications/cc-applications-panel.c    | 9 ---------
 panels/applications/cc-applications-panel.css  | 7 -------
 3 files changed, 17 deletions(-)
---
diff --git a/panels/applications/applications.gresource.xml b/panels/applications/applications.gresource.xml
index b77aaba45..6782039ad 100644
--- a/panels/applications/applications.gresource.xml
+++ b/panels/applications/applications.gresource.xml
@@ -7,6 +7,5 @@
     <file preprocess="xml-stripblanks">cc-info-row.ui</file>
     <file preprocess="xml-stripblanks">cc-snap-row.ui</file>
     <file preprocess="xml-stripblanks">cc-toggle-row.ui</file>
-    <file>cc-applications-panel.css</file>
   </gresource>
 </gresources>
diff --git a/panels/applications/cc-applications-panel.c b/panels/applications/cc-applications-panel.c
index 89f1d55fc..021192478 100644
--- a/panels/applications/cc-applications-panel.c
+++ b/panels/applications/cc-applications-panel.c
@@ -2038,7 +2038,6 @@ cc_applications_panel_class_init (CcApplicationsPanelClass *klass)
 static void
 cc_applications_panel_init (CcApplicationsPanel *self)
 {
-  g_autoptr(GtkStyleProvider) provider = NULL;
 #ifdef HAVE_MALCONTENT
   g_autoptr(GDBusConnection) system_bus = NULL;
   g_autoptr(GError) error = NULL;
@@ -2053,14 +2052,6 @@ cc_applications_panel_init (CcApplicationsPanel *self)
 
   gtk_widget_set_visible (GTK_WIDGET (self->install_button), gnome_software_is_installed ());
 
-  provider = GTK_STYLE_PROVIDER (gtk_css_provider_new ());
-  gtk_css_provider_load_from_resource (GTK_CSS_PROVIDER (provider),
-                                       "/org/gnome/control-center/applications/cc-applications-panel.css");
-
-  gtk_style_context_add_provider_for_display (gdk_display_get_default (),
-                                              provider,
-                                              GTK_STYLE_PROVIDER_PRIORITY_APPLICATION);
-
   g_signal_connect_object (self->sidebar_listbox, "row-activated",
                            G_CALLBACK (row_activated_cb), self, G_CONNECT_SWAPPED);
 


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