[gtk/wip/baedert/for-master: 55/57] Add .view to view widgets
- From: Timm Bäder <baedert src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gtk/wip/baedert/for-master: 55/57] Add .view to view widgets
- Date: Sat, 27 Jun 2020 08:57:14 +0000 (UTC)
commit f1b010af6653c1f0d7b9c165a8ae57533125c739
Author: Timm Bäder <mail baedert org>
Date: Fri Jun 26 06:37:57 2020 +0200
Add .view to view widgets
gtk/gtkgridview.c | 2 ++
gtk/gtklistview.c | 2 ++
2 files changed, 4 insertions(+)
---
diff --git a/gtk/gtkgridview.c b/gtk/gtkgridview.c
index 3a1b96098e..049b3c2906 100644
--- a/gtk/gtkgridview.c
+++ b/gtk/gtkgridview.c
@@ -1171,6 +1171,8 @@ gtk_grid_view_init (GtkGridView *self)
gtk_list_base_set_anchor_max_widgets (GTK_LIST_BASE (self),
self->max_columns * GTK_GRID_VIEW_MAX_VISIBLE_ROWS,
self->max_columns);
+
+ gtk_widget_add_css_class (GTK_WIDGET (self), "view");
}
/**
diff --git a/gtk/gtklistview.c b/gtk/gtklistview.c
index 4139e071c3..3a65706ee6 100644
--- a/gtk/gtklistview.c
+++ b/gtk/gtklistview.c
@@ -925,6 +925,8 @@ gtk_list_view_init (GtkListView *self)
gtk_list_base_set_anchor_max_widgets (GTK_LIST_BASE (self),
GTK_LIST_VIEW_MAX_LIST_ITEMS,
GTK_LIST_VIEW_EXTRA_ITEMS);
+
+ gtk_widget_add_css_class (GTK_WIDGET (self), "view");
}
/**
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]