[nautilus] files-view: Simplify select-items.ui
- From: António Fernandes <antoniof src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [nautilus] files-view: Simplify select-items.ui
- Date: Sat, 13 Nov 2021 12:32:42 +0000 (UTC)
commit 2103a487a0ff2c22db49f6607200a029d924362d
Author: António Fernandes <antoniof gnome org>
Date: Sat Nov 13 12:18:19 2021 +0000
files-view: Simplify select-items.ui
Remove usage of properties that are gone in GTK4, such as border-width.
Also, move the "Pattern:" label above the entry, drop the colon and
make it bold.
src/nautilus-files-view.c | 2 +-
.../ui/nautilus-files-view-select-items.ui | 61 +++++++++++++++
src/resources/ui/select-items.ui | 88 ----------------------
3 files changed, 62 insertions(+), 89 deletions(-)
---
diff --git a/src/nautilus-files-view.c b/src/nautilus-files-view.c
index 19a9172b6..d351990d6 100644
--- a/src/nautilus-files-view.c
+++ b/src/nautilus-files-view.c
@@ -1786,7 +1786,7 @@ select_pattern (NautilusFilesView *view)
char *example_pattern;
window = nautilus_files_view_get_window (view);
- builder = gtk_builder_new_from_resource ("/org/gnome/nautilus/ui/select-items.ui");
+ builder = gtk_builder_new_from_resource ("/org/gnome/nautilus/ui/nautilus-files-view-select-items.ui");
dialog = GTK_WIDGET (gtk_builder_get_object (builder, "select_items_dialog"));
example = GTK_WIDGET (gtk_builder_get_object (builder, "example"));
diff --git a/src/resources/ui/nautilus-files-view-select-items.ui
b/src/resources/ui/nautilus-files-view-select-items.ui
new file mode 100644
index 000000000..1d195b609
--- /dev/null
+++ b/src/resources/ui/nautilus-files-view-select-items.ui
@@ -0,0 +1,61 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<interface>
+ <requires lib="gtk+" version="3.22"/>
+ <object class="GtkDialog" id="select_items_dialog">
+ <property name="title" translatable="yes">Select Items Matching</property>
+ <property name="modal">True</property>
+ <property name="use-header-bar">1</property>
+ <child type="action">
+ <object class="GtkButton" id="cancel">
+ <property name="visible">True</property>
+ <property name="label" translatable="yes">_Cancel</property>
+ <property name="use-underline">True</property>
+ </object>
+ </child>
+ <child type="action">
+ <object class="GtkButton" id="select">
+ <property name="visible">True</property>
+ <property name="label" translatable="yes">_Select</property>
+ <property name="use-underline">True</property>
+ <property name="can-default">True</property>
+ </object>
+ </child>
+ <child internal-child="vbox">
+ <object class="GtkBox">
+ <property name="margin-top">18</property>
+ <property name="margin-bottom">18</property>
+ <property name="margin-start">18</property>
+ <property name="margin-end">18</property>
+ <property name="spacing">6</property>
+ <child>
+ <object class="GtkLabel">
+ <property name="visible">True</property>
+ <property name="halign">start</property>
+ <property name="label" translatable="yes">Pattern</property>
+ <attributes>
+ <attribute name="weight" value="bold"/>
+ </attributes>
+ </object>
+ </child>
+ <child>
+ <object class="GtkEntry" id="pattern_entry">
+ <property name="visible">True</property>
+ <property name="can_focus">True</property>
+ <property name="hexpand">True</property>
+ <property name="activates_default">True</property>
+ </object>
+ </child>
+ <child>
+ <object class="GtkLabel" id="example">
+ <property name="visible">True</property>
+ <property name="halign">start</property>
+ </object>
+ </child>
+ </object>
+ </child>
+ <action-widgets>
+ <action-widget response="cancel">cancel</action-widget>
+ <action-widget response="ok" default="true">select</action-widget>
+ </action-widgets>
+ </object>
+</interface>
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]