diff options
author | fiaxh <git@lightrise.org> | 2022-02-14 14:55:59 +0100 |
---|---|---|
committer | fiaxh <git@lightrise.org> | 2022-07-27 20:34:20 +0200 |
commit | 7e7dcedaf31ee35499875491c9f569c575d28435 (patch) | |
tree | 0c5fee2b28baf320775fbc92b3c252e97d9d054f /main/data/file_send_overlay.ui | |
parent | f25bfb00969a7e09996da2d5500e6718f4cc0148 (diff) | |
download | dino-7e7dcedaf31ee35499875491c9f569c575d28435.tar.gz dino-7e7dcedaf31ee35499875491c9f569c575d28435.zip |
Port from GTK3 to GTK4
Diffstat (limited to 'main/data/file_send_overlay.ui')
-rw-r--r-- | main/data/file_send_overlay.ui | 56 |
1 files changed, 16 insertions, 40 deletions
diff --git a/main/data/file_send_overlay.ui b/main/data/file_send_overlay.ui index 00cc649b..15ff35ef 100644 --- a/main/data/file_send_overlay.ui +++ b/main/data/file_send_overlay.ui @@ -1,67 +1,51 @@ <?xml version="1.0" encoding="UTF-8"?> <interface> - <template class="DinoUiFileSendOverlay"> - <property name="hexpand">False</property> - <property name="vexpand">False</property> + <requires lib="gtk" version="4.0"/> + <object class="GtkBox" id="main_box"> + <property name="hexpand">0</property> + <property name="vexpand">0</property> <property name="halign">center</property> <property name="valign">center</property> - <property name="visible">True</property> <style> <class name="background"/> <class name="dino-file-overlay"/> </style> <child> - <object class="DinoUiSizeRequestBox"> - <property name="size-request-mode">height-for-width</property> + <object class="GtkBox"> <property name="orientation">vertical</property> - <property name="margin-right">20</property> - <property name="margin-left">20</property> - <property name="visible">True</property> + <property name="margin-end">20</property> + <property name="margin-start">20</property> <child> <object class="GtkBox"> <property name="margin-top">10</property> <property name="margin-bottom">10</property> - <property name="orientation">horizontal</property> - <property name="visible">True</property> <child> <object class="GtkLabel"> - <property name="label" translatable="yes">Send a file</property> - <property name="hexpand">True</property> - <property name="visible">True</property> + <property name="label" translatable="1">Send a file</property> + <property name="hexpand">1</property> <attributes> - <attribute name="weight" value="PANGO_WEIGHT_BOLD"/> + <attribute name="weight" value="PANGO_WEIGHT_BOLD"></attribute> </attributes> </object> - <packing> - <property name="pack_type">start</property> - </packing> </child> <child> <object class="GtkButton" id="close_button"> - <property name="can_default">True</property> - <property name="can_focus">True</property> - <property name="visible">True</property> + <property name="focusable">1</property> <style> <class name="titlebutton"/> <class name="close"/> </style> <child> <object class="GtkImage"> - <property name="visible">True</property> <property name="icon-name">window-close-symbolic</property> - <property name="icon-size">1</property> </object> </child> </object> - <packing> - <property name="pack_type">end</property> - </packing> </child> </object> </child> <child> <object class="DinoUiSizingBin" id="file_widget_insert"> - <property name="visible">True</property> </object> </child> <child> @@ -69,29 +53,21 @@ <property name="margin-top">15</property> <property name="margin-bottom">15</property> <property name="spacing">5</property> - <property name="visible">True</property> <child> - <object class="GtkLabel" id="info_label"> - <property name="visible">True</property> - </object> + <object class="GtkLabel" id="info_label"/> </child> <child> <object class="GtkButton" id="send_button"> - <property name="label" translatable="yes">Send</property> - <property name="can_default">True</property> - <property name="can_focus">True</property> - <property name="visible">True</property> + <property name="label" translatable="1">Send</property> + <property name="focusable">1</property> <style> <class name="suggested-action"/> </style> </object> - <packing> - <property name="pack_type">end</property> - </packing> </child> </object> </child> </object> </child> - </template> -</interface> + </object> +</interface>
\ No newline at end of file |