[gnome-games/wip/exalm/gtk4: 44/62] ui: Stop using GtkEventBox
- From: Alexander Mikhaylenko <alexm src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gnome-games/wip/exalm/gtk4: 44/62] ui: Stop using GtkEventBox
- Date: Fri, 19 Oct 2018 14:49:48 +0000 (UTC)
commit 7d23d3b984ae6aba7305b1a86c26ca72691e8b8e
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/display-box.ui | 3 ++-
data/ui/fullscreen-box.ui | 4 +---
src/ui/display-box.vala | 2 +-
src/ui/fullscreen-box.vala | 2 +-
4 files changed, 5 insertions(+), 6 deletions(-)
---
diff --git a/data/ui/display-box.ui b/data/ui/display-box.ui
index 8c9af997..c6edcdeb 100644
--- a/data/ui/display-box.ui
+++ b/data/ui/display-box.ui
@@ -25,8 +25,9 @@
</packing>
</child>
<child>
- <object class="GtkEventBox" id="display_bin">
+ <object class="GtkFrame" id="display_bin">
<property name="visible">True</property>
+ <property name="shadow-type">none</property>
</object>
<packing>
<property name="name">display</property>
diff --git a/data/ui/fullscreen-box.ui b/data/ui/fullscreen-box.ui
index 8d8612c3..baa8b2c8 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.16"/>
- <template class="GamesFullscreenBox" parent="GtkEventBox">
+ <template class="GamesFullscreenBox" parent="GtkBin">
<property name="visible">True</property>
- <property name="events">GDK_POINTER_MOTION_MASK</property>
<signal name="notify::is-fullscreen" handler="on_fullscreen_changed"/>
<child>
<object class="GtkEventControllerMotion">
@@ -19,7 +18,6 @@
<property name="valign">start</property>
<property name="hexpand">True</property>
<property name="transition-type">slide-down</property>
- <property name="events">GDK_POINTER_MOTION_MASK</property>
<signal name="notify::is-fullscreen" handler="on_fullscreen_changed"/>
<child>
<object class="GtkEventControllerMotion">
diff --git a/src/ui/display-box.vala b/src/ui/display-box.vala
index 7b5c8f4a..99e673b6 100644
--- a/src/ui/display-box.vala
+++ b/src/ui/display-box.vala
@@ -34,7 +34,7 @@ private class Games.DisplayBox : Gtk.Bin {
[GtkChild]
private ErrorDisplay error_display;
[GtkChild]
- private Gtk.EventBox display_bin;
+ private Gtk.Bin display_bin;
[GtkChild]
private DisplayHeaderBar fullscreen_header_bar;
private Binding fullscreen_binding;
diff --git a/src/ui/fullscreen-box.vala b/src/ui/fullscreen-box.vala
index e31776b2..1b37e01b 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 = 2000;
public signal void back ();
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]