[gnome-mahjongg/arnaudb/wip/gtk4: 24/30] Adapt border_width.
- From: Arnaud B. <arnaudb src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gnome-mahjongg/arnaudb/wip/gtk4: 24/30] Adapt border_width.
- Date: Wed, 5 Aug 2020 18:52:40 +0000 (UTC)
commit 38435d89e9f0f646dfbe2721f68f9255a11c0263
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 cfbd604..bc4c351 100644
--- a/src/gnome-mahjongg.vala
+++ b/src/gnome-mahjongg.vala
@@ -426,15 +426,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 183be9b..26e7dd2 100644
--- a/src/score-dialog.vala
+++ b/src/score-dialog.vala
@@ -33,7 +33,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]