[gnome-calculator] Force LTR in history view (#252)
- From: Robert Roth <robertroth src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gnome-calculator] Force LTR in history view (#252)
- Date: Wed, 12 Jan 2022 17:57:11 +0000 (UTC)
commit 95505016a260371106c94bb29d3e180bd752f5ce
Author: Robert Roth <robert roth off gmail com>
Date: Wed Jan 12 19:57:02 2022 +0200
Force LTR in history view (#252)
src/math-history.vala | 5 +++++
src/ui/history-entry.ui | 2 +-
2 files changed, 6 insertions(+), 1 deletion(-)
---
diff --git a/src/math-history.vala b/src/math-history.vala
index ca6969a5..be2eb65d 100644
--- a/src/math-history.vala
+++ b/src/math-history.vala
@@ -90,6 +90,8 @@ public class HistoryEntry : Gtk.ListBoxRow
unowned Gtk.Label equation_label;
[GtkChild]
public unowned Gtk.Label answer_label;
+ [GtkChild]
+ public unowned Gtk.Grid grid;
private Number number;
@@ -101,6 +103,9 @@ public class HistoryEntry : Gtk.ListBoxRow
Serializer serializer)
{
this.number = answer;
+ grid.set_direction(Gtk.TextDirection.LTR);
+ equation_label.set_direction(Gtk.TextDirection.LTR);
+ answer_label.set_direction(Gtk.TextDirection.LTR);
equation_label.set_text (equation);
equation_label.set_tooltip_text (equation);
redisplay (serializer);
diff --git a/src/ui/history-entry.ui b/src/ui/history-entry.ui
index e941b9e2..ce86283c 100644
--- a/src/ui/history-entry.ui
+++ b/src/ui/history-entry.ui
@@ -5,7 +5,7 @@
<template class="HistoryEntry" parent="GtkListBoxRow">
<property name="can_focus">False</property>
<child>
- <object class="GtkGrid" id="Grid">
+ <object class="GtkGrid" id="grid">
<property name="margin_start">12</property>
<property name="margin_end">16</property>
<property name="column_homogeneous">True</property>
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]