[gnome-software: 43/110] gs-feature-tile: Override css_changed instead of style_updated
- From: Philip Withnall <pwithnall src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gnome-software: 43/110] gs-feature-tile: Override css_changed instead of style_updated
- Date: Tue, 5 Oct 2021 20:32:37 +0000 (UTC)
commit 41e86b77b466d2c48923be948cf41a0aa61d64bc
Author: Georges Basile Stavracas Neto <georges stavracas gmail com>
Date: Mon Aug 23 18:30:26 2021 -0300
gs-feature-tile: Override css_changed instead of style_updated
The class vfunc name changed, follow it. It also needs chaining up to the
parent implementation.
src/gs-feature-tile.c | 7 +++++--
1 file changed, 5 insertions(+), 2 deletions(-)
---
diff --git a/src/gs-feature-tile.c b/src/gs-feature-tile.c
index e9a477f90..68e82da4b 100644
--- a/src/gs-feature-tile.c
+++ b/src/gs-feature-tile.c
@@ -401,7 +401,8 @@ gs_feature_tile_direction_changed (GtkWidget *widget, GtkTextDirection previous_
}
static void
-gs_feature_tile_style_updated (GtkWidget *widget)
+gs_feature_tile_css_changed (GtkWidget *widget,
+ GtkCssStyleChange *css_change)
{
GsFeatureTile *tile = GS_FEATURE_TILE (widget);
@@ -411,6 +412,8 @@ gs_feature_tile_style_updated (GtkWidget *widget)
tile->key_colors_cache = NULL;
gs_feature_tile_refresh (GS_APP_TILE (tile));
+
+ GTK_WIDGET_CLASS (gs_feature_tile_parent_class)->css_changed (widget, css_change);
}
static void
@@ -452,8 +455,8 @@ gs_feature_tile_class_init (GsFeatureTileClass *klass)
object_class->dispose = gs_feature_tile_dispose;
+ widget_class->css_changed = gs_feature_tile_css_changed;
widget_class->direction_changed = gs_feature_tile_direction_changed;
- widget_class->style_updated = gs_feature_tile_style_updated;
widget_class->size_allocate = gs_feature_tile_size_allocate;
app_tile_class->refresh = gs_feature_tile_refresh;
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]