[gnome-mahjongg/arnaudb/wip/gtk4: 31/41] Adapt border_width.
- From: Arnaud B. <arnaudb src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gnome-mahjongg/arnaudb/wip/gtk4: 31/41] Adapt border_width.
- Date: Wed, 23 Sep 2020 14:23:03 +0000 (UTC)
commit 518c8a43d2b81262fddb7fc554e4a9e575feb5f7
Author: Arnaud Bonatti <arnaud bonatti gmail com>
Date: Fri Mar 27 19:53:59 2020 +0100
Adapt border_width.
src/gnome-mahjongg.vala | 6 ++++--
src/score-dialog.vala | 5 ++++-
2 files changed, 8 insertions(+), 3 deletions(-)
---
diff --git a/src/gnome-mahjongg.vala b/src/gnome-mahjongg.vala
index fa58c92..11b498f 100644
--- a/src/gnome-mahjongg.vala
+++ b/src/gnome-mahjongg.vala
@@ -428,15 +428,17 @@ public class Mahjongg : Gtk.Application
window,
dialogs_use_header ?
Gtk.DialogFlags.USE_HEADER_BAR : 0,
null);
- preferences_dialog.set_border_width (5);
var dialog_content_area = (Gtk.Box) preferences_dialog.get_content_area ();
dialog_content_area.set_spacing (2);
preferences_dialog.set_resizable (false);
preferences_dialog.set_default_response (Gtk.ResponseType.CLOSE);
preferences_dialog.response.connect (preferences_dialog_response_cb);
+ dialog_content_area.margin_top = 10;
+ dialog_content_area.margin_start = 10;
+ dialog_content_area.margin_end = 10;
+ dialog_content_area.margin_bottom = 10;
var grid = new Gtk.Grid ();
- grid.border_width = 5;
grid.set_row_spacing (6);
grid.set_column_spacing (18);
diff --git a/src/score-dialog.vala b/src/score-dialog.vala
index ddcb9b3..19adb95 100644
--- a/src/score-dialog.vala
+++ b/src/score-dialog.vala
@@ -35,7 +35,10 @@ public class ScoreDialog : Gtk.Dialog
set_size_request (200, 300);
var vbox = new Gtk.Box (Gtk.Orientation.VERTICAL, 5);
- vbox.border_width = 6;
+ vbox.margin_top = 6;
+ vbox.margin_start = 6;
+ vbox.margin_end = 6;
+ vbox.margin_bottom = 6;
get_content_area ().append (vbox);
var hbox = new Gtk.Box (Gtk.Orientation.HORIZONTAL, 6);
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]