[gnome-calculator] Use margin for popover row labels (#76)
- From: Robert Roth <robertroth src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gnome-calculator] Use margin for popover row labels (#76)
- Date: Thu, 4 Oct 2018 18:27:32 +0000 (UTC)
commit 73548dc68eebee1c5406c6bf2a2bf2cbb736dc92
Author: Robert Roth <robert roth off gmail com>
Date: Thu Oct 4 21:26:56 2018 +0300
Use margin for popover row labels (#76)
src/math-function-popover.vala | 1 +
src/math-variable-popover.vala | 1 +
2 files changed, 2 insertions(+)
---
diff --git a/src/math-function-popover.vala b/src/math-function-popover.vala
index e44c1846..f2d1ea09 100644
--- a/src/math-function-popover.vala
+++ b/src/math-function-popover.vala
@@ -162,6 +162,7 @@ public class MathFunctionPopover : Gtk.Popover
expression = "(%s)".printf (string.joinv (";", function.arguments));
var label = new Gtk.Label ("<b>%s</b>%s".printf (function.name, expression));
+ label.set_margin_start (6);
label.set_use_markup (true);
label.halign = Gtk.Align.START;
hbox.pack_start (label, true, true, 0);
diff --git a/src/math-variable-popover.vala b/src/math-variable-popover.vala
index 776c96b9..1c387865 100644
--- a/src/math-variable-popover.vala
+++ b/src/math-variable-popover.vala
@@ -136,6 +136,7 @@ public class MathVariablePopover : Gtk.Popover
text = "<b>%s</b>".printf (name);
var label = new Gtk.Label (text);
+ label.set_margin_start (6);
label.set_use_markup (true);
label.halign = Gtk.Align.START;
hbox.pack_start (label, true, true, 0);
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]