[gnome-games/wip/exalm/gtk4: 24/44] ui: Stop using GtkEventBox
- From: Alexander Mikhaylenko <alexm src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gnome-games/wip/exalm/gtk4: 24/44] ui: Stop using GtkEventBox
- Date: Mon, 25 Feb 2019 11:39:27 +0000 (UTC)
commit 381bf0975999db2fca4dd1f09a7431dc2ae9bc1b
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 2e7d8aad..05af4b42 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 edf9d0ed..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">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">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 97e96039..fd36211a 100644
--- a/src/ui/display-box.vala
+++ b/src/ui/display-box.vala
@@ -35,7 +35,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 05a1ce0c..0c0a45ad 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 bool is_fullscreen { get; set; }
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]