[gnome-maps/wip/mlundblad/fix-location-service-dialog-gtk4] locationServiceDialog: Port template to GTK4
- From: Marcus Lundblad <mlundblad src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gnome-maps/wip/mlundblad/fix-location-service-dialog-gtk4] locationServiceDialog: Port template to GTK4
- Date: Wed, 21 Sep 2022 19:18:37 +0000 (UTC)
commit 3d50ebaa308f3532a5214f8c83656ac356845a60
Author: Marcus Lundblad <ml dfupdate se>
Date: Wed Sep 21 21:16:38 2022 +0200
locationServiceDialog: Port template to GTK4
data/ui/location-service-dialog.ui | 35 ++++++++++-------------------------
1 file changed, 10 insertions(+), 25 deletions(-)
---
diff --git a/data/ui/location-service-dialog.ui b/data/ui/location-service-dialog.ui
index dc40ceb2..8f463e50 100644
--- a/data/ui/location-service-dialog.ui
+++ b/data/ui/location-service-dialog.ui
@@ -1,51 +1,36 @@
<?xml version="1.0" encoding="UTF-8"?>
<interface>
- <requires lib="gtk+" version="3.12"/>
+ <requires lib="gtk" version="4.0"/>
<template class="Gjs_LocationServiceDialog" parent="GtkDialog">
- <property name="can_focus">False</property>
- <property name="type">popup</property>
- <property name="type_hint">dialog</property>
<property name="width_request">400</property>
<property name="height_request">150</property>
<child internal-child="vbox">
<object class="GtkBox" id="contentArea">
- <property name="visible">True</property>
<child>
<object class="GtkLabel">
- <property name="visible">True</property>
- <property name="label" translatable="yes">Turn on location services to find your
location</property>
+ <property name="label" translatable="1">Turn on location services to find your
location</property>
</object>
</child>
</object>
</child>
<child type="titlebar">
<object class="GtkHeaderBar" id="headerBar">
- <property name="visible">True</property>
- <property name="can-focus">False</property>
- <property name="show-close-button">False</property>
- <child>
+ <property name="show-title-buttons">0</property>
+ <child type="start">
<object class="GtkButton" id="cancelButton">
- <property name="label" translatable="yes">Cancel</property>
- <property name="visible">True</property>
- <property name="can_focus">True</property>
+ <property name="label" translatable="1">Cancel</property>
+ <property name="focusable">1</property>
</object>
- <packing>
- <property name="pack-type">start</property>
- </packing>
</child>
- <child>
+ <child type="end">
<object class="GtkButton" id="settingsButton">
- <property name="label" translatable="yes">Location Settings</property>
- <property name="visible">True</property>
- <property name="can_focus">True</property>
- <property name="receives_default">True</property>
+ <property name="label" translatable="1">Location Settings</property>
+ <property name="focusable">1</property>
+ <property name="receives_default">1</property>
<style>
<class name="suggested-action"/>
</style>
</object>
- <packing>
- <property name="pack-type">end</property>
- </packing>
</child>
</object>
</child>
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]