[gnome-control-center/wip/jimmac/mouse-test-graphic: 2/2] mouse: Overlay mouse test button on top of the artwork
- From: Felipe Borges <felipeborges src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gnome-control-center/wip/jimmac/mouse-test-graphic: 2/2] mouse: Overlay mouse test button on top of the artwork
- Date: Thu, 24 Jun 2021 14:17:17 +0000 (UTC)
commit 1b6c8ca55d4180eae39707457a7c8834931ee67c
Author: Felipe Borges <felipeborges gnome org>
Date: Thu Jun 24 16:16:14 2021 +0200
mouse: Overlay mouse test button on top of the artwork
panels/mouse/cc-mouse-test.ui | 18 +++---------------
1 file changed, 3 insertions(+), 15 deletions(-)
---
diff --git a/panels/mouse/cc-mouse-test.ui b/panels/mouse/cc-mouse-test.ui
index 788b74877..c15c36d1f 100644
--- a/panels/mouse/cc-mouse-test.ui
+++ b/panels/mouse/cc-mouse-test.ui
@@ -48,7 +48,7 @@
<property name="visible">True</property>
<property name="can_focus">False</property>
<child>
- <object class="GtkGrid" id="grid1">
+ <object class="GtkOverlay" id="grid1">
<property name="visible">True</property>
<property name="can_focus">False</property>
<child>
@@ -59,32 +59,20 @@
<property name="margin_end">25</property>
<property name="resource">/org/gnome/control-center/mouse/scroll-test.svg</property>
</object>
- <packing>
- <property name="left_attach">0</property>
- <property name="top_attach">0</property>
- <property name="width">1</property>
- <property name="height">1</property>
- </packing>
</child>
- <child>
+ <child type="overlay">
<object class="GtkDrawingArea" id="button_drawing_area">
<property name="width_request">180</property>
<property name="height_request">180</property>
<property name="visible">True</property>
+ <property name="valign">end</property>
<property name="can_focus">False</property>
<property name="events">GDK_BUTTON_PRESS_MASK | GDK_BUTTON_RELEASE_MASK |
GDK_STRUCTURE_MASK</property>
<property name="margin_top">20</property>
<property name="margin_bottom">20</property>
- <property name="hexpand">True</property>
<signal name="button_press_event" handler="button_drawing_area_button_press_event"
object="CcMouseTest" swapped="yes"/>
<signal name="draw" handler="button_drawing_area_draw_event" object="CcMouseTest"
swapped="yes"/>
</object>
- <packing>
- <property name="left_attach">0</property>
- <property name="top_attach">1</property>
- <property name="width">1</property>
- <property name="height">1</property>
- </packing>
</child>
</object>
</child>
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]