[libhandy] preferences-group: Support CSS
- From: Alexander Mikhaylenko <alexm src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [libhandy] preferences-group: Support CSS
- Date: Mon, 21 Dec 2020 10:14:02 +0000 (UTC)
commit c9de1fe1451b398f5469ff53f7118c5a32e27078
Author: Adrien Plazas <kekun plazas laposte net>
Date: Thu Dec 17 12:11:28 2020 +0100
preferences-group: Support CSS
src/hdy-preferences-group.c | 8 ++++++++
1 file changed, 8 insertions(+)
---
diff --git a/src/hdy-preferences-group.c b/src/hdy-preferences-group.c
index 92f4e1ff..e19f7e0a 100644
--- a/src/hdy-preferences-group.c
+++ b/src/hdy-preferences-group.c
@@ -9,6 +9,7 @@
#include "hdy-preferences-group-private.h"
+#include "hdy-css-private.h"
#include "hdy-preferences-row.h"
/**
@@ -233,6 +234,13 @@ hdy_preferences_group_class_init (HdyPreferencesGroupClass *klass)
widget_class->destroy = hdy_preferences_group_destroy;
+ widget_class->size_allocate = hdy_css_size_allocate_bin;
+ widget_class->get_preferred_height = hdy_css_get_preferred_height;
+ widget_class->get_preferred_height_for_width = hdy_css_get_preferred_height_for_width;
+ widget_class->get_preferred_width = hdy_css_get_preferred_width;
+ widget_class->get_preferred_width_for_height = hdy_css_get_preferred_width_for_height;
+ widget_class->draw = hdy_css_draw_bin;
+
container_class->add = hdy_preferences_group_add;
container_class->remove = hdy_preferences_group_remove;
container_class->forall = hdy_preferences_group_forall;
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]