[gnome-software] gs-common: Stop storing GtkCssProvider redundantly
- From: Richard Hughes <rhughes src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gnome-software] gs-common: Stop storing GtkCssProvider redundantly
- Date: Tue, 19 Nov 2019 15:34:22 +0000 (UTC)
commit c53c6700f03d2b3d2c9f09fb1a5ea96236086487
Author: Philip Withnall <withnall endlessm com>
Date: Tue Nov 19 14:43:44 2019 +0000
gs-common: Stop storing GtkCssProvider redundantly
It’s already stored within the `GtkWidget` with a strong reference.
Nothing else refers to `GnomeSoftware::provider`, so we can safely drop
this.
Signed-off-by: Philip Withnall <withnall endlessm com>
src/gs-common.c | 4 ----
1 file changed, 4 deletions(-)
---
diff --git a/src/gs-common.c b/src/gs-common.c
index f2bd0e96..1d0f1841 100644
--- a/src/gs-common.c
+++ b/src/gs-common.c
@@ -361,10 +361,6 @@ gs_utils_widget_set_css_internal (GtkWidget *widget,
g_signal_connect (provider, "parsing-error",
G_CALLBACK (gs_utils_widget_css_parsing_error_cb), NULL);
gtk_css_provider_load_from_data (provider, css, -1, NULL);
- g_object_set_data_full (G_OBJECT (widget),
- "GnomeSoftware::provider",
- g_object_ref (provider),
- g_object_unref);
gtk_style_context_add_provider (context, GTK_STYLE_PROVIDER (provider),
GTK_STYLE_PROVIDER_PRIORITY_APPLICATION);
}
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]