summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorErnestas Kulik <ernestask@gnome.org>2018-07-05 13:52:15 +0300
committerAntónio Fernandes <antoniof@gnome.org>2021-11-22 20:35:54 +0000
commit497c16a69dc08d5e1c5f30d635ef425e2650bac8 (patch)
treee9542af0ecfa5dfcc50c17c403b782e622937293
parent9d3a12c38d49b1e9f8920932d9468b3bddef392a (diff)
downloadnautilus-497c16a69dc08d5e1c5f30d635ef425e2650bac8.tar.gz
general: Drop uses of GtkContainer:border-width
In preparation for porting to GTK4. Rebased and ammeded by António Fernandes <antoniof@gnome.org>
-rw-r--r--src/nautilus-search-popover.c1
-rw-r--r--src/resources/ui/nautilus-batch-rename-dialog.ui1
-rw-r--r--src/resources/ui/nautilus-file-properties-change-permissions.ui2
-rw-r--r--src/resources/ui/nautilus-properties-window.ui8
-rw-r--r--src/resources/ui/nautilus-search-popover.ui2
-rw-r--r--src/resources/ui/nautilus-toolbar.ui2
-rw-r--r--test/interactive/test-copy.c2
-rw-r--r--test/interactive/test.c5
-rw-r--r--test/interactive/test.h3
9 files changed, 10 insertions, 16 deletions
diff --git a/src/nautilus-search-popover.c b/src/nautilus-search-popover.c
index 4ab345608..d823cdbb9 100644
--- a/src/nautilus-search-popover.c
+++ b/src/nautilus-search-popover.c
@@ -592,7 +592,6 @@ show_other_types_dialog (NautilusSearchPopover *popover)
gtk_widget_set_vexpand (scrolled, TRUE);
gtk_widget_show (scrolled);
- gtk_container_set_border_width (GTK_CONTAINER (gtk_dialog_get_content_area (GTK_DIALOG (dialog))), 0);
gtk_box_pack_start (GTK_BOX (gtk_dialog_get_content_area (GTK_DIALOG (dialog))), scrolled, FALSE, TRUE, 0);
treeview = gtk_tree_view_new ();
diff --git a/src/resources/ui/nautilus-batch-rename-dialog.ui b/src/resources/ui/nautilus-batch-rename-dialog.ui
index be7886f36..850458266 100644
--- a/src/resources/ui/nautilus-batch-rename-dialog.ui
+++ b/src/resources/ui/nautilus-batch-rename-dialog.ui
@@ -32,7 +32,6 @@
</action-widgets>
<child internal-child="vbox">
<object class="GtkBox" id="vbox">
- <property name="border-width">0</property>
<child>
<object class="GtkGrid" id="grid">
<property name="visible">True</property>
diff --git a/src/resources/ui/nautilus-file-properties-change-permissions.ui b/src/resources/ui/nautilus-file-properties-change-permissions.ui
index 122fd1ffd..a35214c76 100644
--- a/src/resources/ui/nautilus-file-properties-change-permissions.ui
+++ b/src/resources/ui/nautilus-file-properties-change-permissions.ui
@@ -33,7 +33,7 @@
<property name="visible">True</property>
<property name="can_focus">False</property>
<property name="halign">center</property>
- <property name="border_width">6</property>
+ <property name="margin">6</property>
<property name="orientation">vertical</property>
<property name="row_spacing">6</property>
<property name="column_spacing">12</property>
diff --git a/src/resources/ui/nautilus-properties-window.ui b/src/resources/ui/nautilus-properties-window.ui
index ba996fc70..4e68d6121 100644
--- a/src/resources/ui/nautilus-properties-window.ui
+++ b/src/resources/ui/nautilus-properties-window.ui
@@ -29,7 +29,7 @@
<object class="GtkBox" id="basic_box">
<property name="visible">True</property>
<property name="can_focus">False</property>
- <property name="border_width">18</property>
+ <property name="margin">18</property>
<property name="orientation">vertical</property>
<property name="spacing">12</property>
<child>
@@ -478,7 +478,7 @@
<property name="visible">True</property>
<property name="can_focus">False</property>
<property name="hexpand">False</property>
- <property name="border_width">5</property>
+ <property name="margin">5</property>
<property name="row_spacing">10</property>
<property name="column_spacing">10</property>
<child>
@@ -763,7 +763,7 @@
<child>
<object class="GtkBox" id="permissions_box">
<property name="can_focus">False</property>
- <property name="border_width">18</property>
+ <property name="margin">18</property>
<property name="orientation">vertical</property>
<child>
<object class="GtkLabel" id="not_the_owner_label">
@@ -1273,7 +1273,7 @@
<child>
<object class="GtkBox" id="open_with_box">
<property name="can_focus">False</property>
- <property name="border_width">18</property>
+ <property name="margin">18</property>
<property name="orientation">vertical</property>
<property name="spacing">6</property>
<child>
diff --git a/src/resources/ui/nautilus-search-popover.ui b/src/resources/ui/nautilus-search-popover.ui
index 37de70206..c4fad1e18 100644
--- a/src/resources/ui/nautilus-search-popover.ui
+++ b/src/resources/ui/nautilus-search-popover.ui
@@ -8,7 +8,7 @@
<object class="GtkGrid" >
<property name="visible">True</property>
<property name="can_focus">False</property>
- <property name="border_width">20</property>
+ <property name="margin">20</property>
<property name="row_spacing">8</property>
<property name="column_spacing">18</property>
<child>
diff --git a/src/resources/ui/nautilus-toolbar.ui b/src/resources/ui/nautilus-toolbar.ui
index cde9d0e70..ce91bcb2f 100644
--- a/src/resources/ui/nautilus-toolbar.ui
+++ b/src/resources/ui/nautilus-toolbar.ui
@@ -312,7 +312,7 @@
<property name="width_request">160</property>
<property name="visible">True</property>
<property name="can_focus">False</property>
- <property name="border_width">9</property>
+ <property name="margin">9</property>
<property name="orientation">vertical</property>
<child>
<object class="GtkBox" id="view_menu_zoom_section">
diff --git a/test/interactive/test-copy.c b/test/interactive/test-copy.c
index 194eda444..d48182ebd 100644
--- a/test/interactive/test-copy.c
+++ b/test/interactive/test-copy.c
@@ -68,7 +68,7 @@ main (int argc,
dest = g_file_new_for_commandline_arg (argv[i]);
- window = test_window_new ("copy test", 5);
+ window = test_window_new ("copy test");
gtk_widget_show (window);
diff --git a/test/interactive/test.c b/test/interactive/test.c
index 43e8fbc43..34a5fa8c4 100644
--- a/test/interactive/test.c
+++ b/test/interactive/test.c
@@ -31,8 +31,7 @@ test_delete_event (GtkWidget *widget,
}
GtkWidget *
-test_window_new (const char *title,
- guint border_width)
+test_window_new (const char *title)
{
GtkWidget *window;
@@ -46,8 +45,6 @@ test_window_new (const char *title,
g_signal_connect (window, "delete_event",
G_CALLBACK (test_delete_event), NULL);
- gtk_container_set_border_width (GTK_CONTAINER (window), border_width);
-
return window;
}
diff --git a/test/interactive/test.h b/test/interactive/test.h
index fc20a7727..b8ce09a23 100644
--- a/test/interactive/test.h
+++ b/test/interactive/test.h
@@ -13,8 +13,7 @@ int test_quit (int ex
void test_delete_event (GtkWidget *widget,
GdkEvent *event,
gpointer callback_data);
-GtkWidget *test_window_new (const char *title,
- guint border_width);
+GtkWidget *test_window_new (const char *title);
void test_gtk_widget_set_background_image (GtkWidget *widget,
const char *image_name);
void test_gtk_widget_set_background_color (GtkWidget *widget,