[gnome-games/wip/exalm/gtk4: 207/238] ui: Stop using GtkEventBox



commit 35668f83c961e4e651b9363f241e704441da3754
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 545e05b9..7b53cbf6 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 30603baf..1ce70c7f 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]