summaryrefslogtreecommitdiff
path: root/libslab/nameplate-tile.c
diff options
context:
space:
mode:
authorraveit65 <[email protected]>2017-04-24 15:58:07 +0200
committerraveit65 <[email protected]>2017-05-16 17:51:14 +0200
commit4ac77b3b2ffd95ae6ec74d0754f5e0740b6d5110 (patch)
tree28eead7f39d881346c2766e0ac8172e4c370e34b /libslab/nameplate-tile.c
parentad7d4c996569e7c5ccffd2ac7f81a71ecc24e337 (diff)
downloadmate-control-center-4ac77b3b2ffd95ae6ec74d0754f5e0740b6d5110.tar.bz2
mate-control-center-4ac77b3b2ffd95ae6ec74d0754f5e0740b6d5110.tar.xz
libslab nameplate-tile: avoid deprecated gtk_button_set_focus_on_click ()
Diffstat (limited to 'libslab/nameplate-tile.c')
-rw-r--r--libslab/nameplate-tile.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/libslab/nameplate-tile.c b/libslab/nameplate-tile.c
index 706cae46..7aa474be 100644
--- a/libslab/nameplate-tile.c
+++ b/libslab/nameplate-tile.c
@@ -238,7 +238,11 @@ nameplate_tile_setup (NameplateTile *this)
if (GTK_IS_WIDGET (this->subheader))
gtk_container_add (priv->subheader_ctnr, this->subheader);
+#if GTK_CHECK_VERSION(3,20,0)
+ gtk_widget_set_focus_on_click (GTK_WIDGET (this), FALSE);
+#else
gtk_button_set_focus_on_click (GTK_BUTTON (this), FALSE);
+#endif
}
static void