[gnome-commander] Set the initial indicator string to be monospace text



commit 863dc9826118898fbb0fcccf5ee880c998991b7c
Author: Uwe Scholz <u scholz83 gmx de>
Date:   Thu Jan 20 19:52:31 2022 +0100

    Set the initial indicator string to be monospace text

 src/gnome-cmd-dir-indicator.cc | 4 +++-
 1 file changed, 3 insertions(+), 1 deletion(-)
---
diff --git a/src/gnome-cmd-dir-indicator.cc b/src/gnome-cmd-dir-indicator.cc
index 861da824..3000abdd 100644
--- a/src/gnome-cmd-dir-indicator.cc
+++ b/src/gnome-cmd-dir-indicator.cc
@@ -766,7 +766,9 @@ void gnome_cmd_dir_indicator_set_dir (GnomeCmdDirIndicator *indicator, GnomeCmdD
         ? g_strdup_printf("%s:%s", host, tmpPath)
         : g_strdup_printf("%s", tmpPath);
     g_free (tmpPath);
-    gtk_label_set_text (GTK_LABEL (indicator->priv->label), indicatorString);
+    gchar *monoIndicatorString = get_mono_text (indicatorString);
+    gtk_label_set_markup (GTK_LABEL (indicator->priv->label), monoIndicatorString);
+    g_free (monoIndicatorString);
     update_markup (indicator, -1);
 
     update_slash_positions(indicator, indicatorString);


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]