[aisleriot] board: Try to work with newer gtk+
- From: Christian Persch <chpe src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [aisleriot] board: Try to work with newer gtk+
- Date: Sun, 20 Mar 2016 10:23:24 +0000 (UTC)
commit 3f79ea22e8ac961316dd844a4ce3db87b2997769
Author: Christian Persch <chpe gnome org>
Date: Sun Mar 20 11:22:53 2016 +0100
board: Try to work with newer gtk+
src/ar-style-gtk.c | 2 +-
src/board-noclutter.c | 4 ++++
2 files changed, 5 insertions(+), 1 deletions(-)
---
diff --git a/src/ar-style-gtk.c b/src/ar-style-gtk.c
index 4b186fb..77636f8 100644
--- a/src/ar-style-gtk.c
+++ b/src/ar-style-gtk.c
@@ -45,7 +45,7 @@ static GtkStyleProvider *
ar_style_provider_new (void)
{
static const char css[] =
- " AisleriotBoard {\n"
+ " AisleriotBoard, aisleriot-board {\n"
"background-color: " DEFAULT_BACKGROUND_COLOR_STRING ";\n"
"-AisleriotBoard-selection-color: " DEFAULT_SELECTION_COLOR_STRING ";\n"
"background-image: url('resource:///org/gnome/aisleriot/art/baize.png');\n"
diff --git a/src/board-noclutter.c b/src/board-noclutter.c
index 8ff985c..a418b3d 100644
--- a/src/board-noclutter.c
+++ b/src/board-noclutter.c
@@ -3419,6 +3419,10 @@ aisleriot_board_class_init (AisleriotBoardClass *klass)
_ar_style_gtk_class_install_style_properties (widget_class);
+#if GTK_CHECK_VERSION (3, 19, 5)
+ gtk_widget_class_set_css_name(widget_class, "aisleriot-board");
+#endif
+
#ifdef ENABLE_KEYNAV
/* Keybindings */
binding_set = gtk_binding_set_by_class (klass);
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]