[file-roller/wip/gtk4: 38/54] update dialog: fixed style




commit 46ea65e13c3875c3fda5dc96f5a5578b5621547c
Author: Paolo Bacchilega <paobac src gnome org>
Date:   Sat Oct 1 22:40:29 2022 +0200

    update dialog: fixed style

 src/dlg-update.c | 3 ++-
 src/ui/update.ui | 6 +++++-
 2 files changed, 7 insertions(+), 2 deletions(-)
---
diff --git a/src/dlg-update.c b/src/dlg-update.c
index 657063c3..b07b0e3a 100644
--- a/src/dlg-update.c
+++ b/src/dlg-update.c
@@ -315,10 +315,11 @@ dlg_update (FrWindow *window)
                                                            NULL);
 
        data->update_files_dialog = g_object_new (GTK_TYPE_DIALOG,
-                                                 "title", _("Update Files"),
+                                                 "title", C_("Window title", "Update Files"),
                                                  "transient-for", GTK_WINDOW (window),
                                                  "use-header-bar", _gtk_settings_get_dialogs_use_header (),
                                                  NULL);
+       gtk_window_set_default_size (GTK_WINDOW (data->update_files_dialog), 700, 500);
        content = _gtk_builder_get_widget (data->builder, "update_files_dialog_content");
        gtk_widget_set_vexpand (content, TRUE);
        gtk_box_append (GTK_BOX (gtk_dialog_get_content_area (GTK_DIALOG (data->update_files_dialog))), 
content);
diff --git a/src/ui/update.ui b/src/ui/update.ui
index 94ed7c88..8fe96136 100644
--- a/src/ui/update.ui
+++ b/src/ui/update.ui
@@ -3,7 +3,10 @@
   <requires lib="gtk" version="4.0"/>
   <object class="GtkBox" id="update_files_dialog_content">
     <property name="orientation">vertical</property>
-    <property name="spacing">15</property>
+    <property name="spacing">24</property>
+    <style>
+      <class name="dialog-content"/>
+    </style>
     <child>
       <object class="GtkLabel" id="update_files_primary_text_label">
         <property name="valign">center</property>
@@ -40,6 +43,7 @@
             <property name="height_request">120</property>
             <property name="focusable">1</property>
             <property name="hscrollbar_policy">never</property>
+            <property name="has_frame">1</property>
             <property name="child">
               <object class="GtkTreeView" id="update_files_treeview">
                 <property name="focusable">1</property>


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]