[libepc/gtk4: 7/13] gtk4: Replace gtk_container_set_border_width().
- From: Murray Cumming <murrayc src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [libepc/gtk4: 7/13] gtk4: Replace gtk_container_set_border_width().
- Date: Fri, 18 Nov 2016 08:54:19 +0000 (UTC)
commit f1d0dc5dc9326fb157d889baf7023a40f5af37cf
Author: Murray Cumming <murrayc murrayc com>
Date: Fri Nov 18 08:34:13 2016 +0100
gtk4: Replace gtk_container_set_border_width().
examples/consumer-ui.c | 5 ++++-
libepc-ui/password-dialog.c | 6 +++++-
2 files changed, 9 insertions(+), 2 deletions(-)
---
diff --git a/examples/consumer-ui.c b/examples/consumer-ui.c
index f8f53cb..d1573bf 100644
--- a/examples/consumer-ui.c
+++ b/examples/consumer-ui.c
@@ -160,7 +160,10 @@ create_lookup_dialog (EpcConsumer *consumer,
gtk_box_pack_start (GTK_BOX (vbox), keys_combo, FALSE, TRUE, 0);
gtk_box_pack_start (GTK_BOX (vbox), scroller, TRUE, TRUE, 0);
gtk_box_pack_start (GTK_BOX (vbox), stats, FALSE, TRUE, 0);
- gtk_container_set_border_width (GTK_CONTAINER (vbox), 6);
+ gtk_widget_set_margin_top (vbox, 6);
+ gtk_widget_set_margin_bottom (vbox, 6);
+ gtk_widget_set_margin_start (vbox, 6);
+ gtk_widget_set_margin_end (vbox, 6);
gtk_widget_show_all (vbox);
/* Create the dialog widget. */
diff --git a/libepc-ui/password-dialog.c b/libepc-ui/password-dialog.c
index 3bc1095..0fada83 100644
--- a/libepc-ui/password-dialog.c
+++ b/libepc-ui/password-dialog.c
@@ -140,7 +140,11 @@ epc_password_dialog_init (EpcPasswordDialog *self)
table = gtk_table_new (5, 3, FALSE);
- gtk_container_set_border_width (GTK_CONTAINER (table), 6);
+ gtk_widget_set_margin_top (table, 6);
+ gtk_widget_set_margin_bottom (table, 6);
+ gtk_widget_set_margin_start (table, 6);
+ gtk_widget_set_margin_end (table, 6);
+
gtk_table_set_col_spacing (GTK_TABLE (table), 0, 12);
gtk_table_set_col_spacing (GTK_TABLE (table), 1, 6);
gtk_table_set_row_spacings (GTK_TABLE (table), 6);
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]