[gnome-games/wip/exalm/gtk4: 16/48] ui: Stop using GtkEventBox
- From: Alexander Mikhaylenko <alexm src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gnome-games/wip/exalm/gtk4: 16/48] ui: Stop using GtkEventBox
- Date: Wed, 21 Aug 2019 22:48:35 +0000 (UTC)
commit fff01e5fe678240f9e9cc911b5bac5db3c99d59d
Author: Alexander Mikhaylenko <exalm7659 gmail com>
Date: Sun Jul 29 00:42:39 2018 +0500
ui: Stop using GtkEventBox
Just use GtkBin instead.
data/ui/fullscreen-box.ui | 4 +---
src/ui/fullscreen-box.vala | 2 +-
2 files changed, 2 insertions(+), 4 deletions(-)
---
diff --git a/data/ui/fullscreen-box.ui b/data/ui/fullscreen-box.ui
index 1164c0fe..de0dab9b 100644
--- a/data/ui/fullscreen-box.ui
+++ b/data/ui/fullscreen-box.ui
@@ -1,9 +1,8 @@
<?xml version="1.0" encoding="UTF-8"?>
<interface>
<requires lib="gtk+" version="3.24"/>
- <template class="GamesFullscreenBox" parent="GtkEventBox">
+ <template class="GamesFullscreenBox" parent="GtkBin">
<property name="visible">True</property>
- <property name="events">pointer-motion-mask</property>
<child>
<object class="GtkEventControllerMotion">
<signal name="motion" handler="on_motion_event"/>
@@ -19,7 +18,6 @@
<property name="hexpand">True</property>
<property name="transition-type">slide-down</property>
<property name="transition-duration">500</property>
- <property name="events">pointer-motion-mask</property>
<child>
<object class="GtkEventControllerMotion">
<signal name="motion" handler="on_motion_event"/>
diff --git a/src/ui/fullscreen-box.vala b/src/ui/fullscreen-box.vala
index 27af107e..c1d903cf 100644
--- a/src/ui/fullscreen-box.vala
+++ b/src/ui/fullscreen-box.vala
@@ -1,7 +1,7 @@
// This file is part of GNOME Games. License: GPL-3.0+.
[GtkTemplate (ui = "/org/gnome/Games/ui/fullscreen-box.ui")]
-private class Games.FullscreenBox : Gtk.EventBox, Gtk.Buildable {
+private class Games.FullscreenBox : Gtk.Bin, Gtk.Buildable {
private const uint INACTIVITY_TIME_MILLISECONDS = 3000;
private const int SHOW_HEADERBAR_DISTANCE = 5;
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]