summaryrefslogtreecommitdiff
path: root/src/math-history-entry.c
diff options
context:
space:
mode:
authormbkma <[email protected]>2020-05-31 01:04:31 +0200
committerRobert Antoni Buj Gelonch <[email protected]>2020-07-13 22:25:30 +0200
commitf649f841b919cf2fa5c40f7d8b1bf1dd61300a81 (patch)
tree81457fb376b8be5baf30448eb919d968fe5a5b40 /src/math-history-entry.c
parente6206b2c8a4123be75b1f4a7b811d91136e667e5 (diff)
downloadmate-calc-f649f841b919cf2fa5c40f7d8b1bf1dd61300a81.tar.bz2
mate-calc-f649f841b919cf2fa5c40f7d8b1bf1dd61300a81.tar.xz
Implement navigation through history stack equations using keyboard
Diffstat (limited to 'src/math-history-entry.c')
-rw-r--r--src/math-history-entry.c6
1 files changed, 6 insertions, 0 deletions
diff --git a/src/math-history-entry.c b/src/math-history-entry.c
index 8a6b4ae..8277f88 100644
--- a/src/math-history-entry.c
+++ b/src/math-history-entry.c
@@ -88,6 +88,12 @@ math_history_entry_insert_entry(MathHistoryEntry *history_entry, const gchar *eq
#undef get_widget
}
+gchar *
+math_history_entry_get_equation(MathHistoryEntry *history_entry)
+{
+ return gtk_widget_get_tooltip_text(history_entry->priv->equation_label);
+}
+
static void
math_history_entry_class_init(MathHistoryEntryClass *klass)
{