[chronojump] preferences help now with textview
- From: Xavier de Blas <xaviblas src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [chronojump] preferences help now with textview
- Date: Wed, 4 Aug 2021 09:57:35 +0000 (UTC)
commit 54f0321303537c9421e69bc4e82f22adb8e4ddfd
Author: Xavier de Blas <xaviblas gmail com>
Date: Wed Aug 4 11:57:14 2021 +0200
preferences help now with textview
glade/preferences_win.glade | 15 ++++++---------
src/gui/preferences.cs | 6 +++---
2 files changed, 9 insertions(+), 12 deletions(-)
---
diff --git a/glade/preferences_win.glade b/glade/preferences_win.glade
index e84af8739..8ab575b52 100644
--- a/glade/preferences_win.glade
+++ b/glade/preferences_win.glade
@@ -7453,7 +7453,7 @@ version:</property>
<property name="can_default">True</property>
<property name="receives_default">False</property>
<signal name="clicked" handler="on_button_view_more_tabs_close_clicked"
swapped="no"/>
- <accelerator key="Escape" signal="clicked"/>
+ <accelerator key="Escape" signal="clicked"/>
<child>
<widget class="GtkHBox" id="hbox66">
<property name="visible">True</property>
@@ -7721,15 +7721,12 @@ version:</property>
<property name="visible">True</property>
<property name="can_focus">False</property>
<child>
- <widget class="GtkLabel" id="label_help_message">
+ <widget class="GtkTextView" id="textview_help_message">
<property name="visible">True</property>
<property name="can_focus">True</property>
- <property name="xalign">0</property>
- <property name="xpad">4</property>
- <property name="ypad">4</property>
- <property name="use_markup">True</property>
- <property name="wrap">True</property>
- <property name="selectable">True</property>
+ <property name="editable">False</property>
+ <property name="wrap_mode">word</property>
+ <property name="cursor_visible">False</property>
</widget>
</child>
</widget>
@@ -7759,7 +7756,7 @@ version:</property>
<property name="can_default">True</property>
<property name="receives_default">False</property>
<signal name="clicked" handler="on_button_help_close_clicked" swapped="no"/>
- <accelerator key="Escape" signal="clicked"/>
+ <accelerator key="Escape" signal="clicked"/>
<child>
<widget class="GtkHBox" id="hbox63">
<property name="visible">True</property>
diff --git a/src/gui/preferences.cs b/src/gui/preferences.cs
index d7a3b3d90..48738bd33 100644
--- a/src/gui/preferences.cs
+++ b/src/gui/preferences.cs
@@ -61,7 +61,7 @@ public class PreferencesWindow
//help widgets
[Widget] Gtk.HBox hbox_stiffness_formula;
- [Widget] Gtk.Label label_help_message;
+ [Widget] Gtk.TextView textview_help_message;
[Widget] Gtk.Image image_help_close;
//appearance tab
@@ -845,6 +845,7 @@ public class PreferencesWindow
// help ---->
private enum helpTypes { NORMAL, STIFFNESS }
+ //does not use markup on textview
private void showHelp (string title, helpTypes helpType, string message)
{
preferences_win.Title = Catalog.GetString("Preferences") + " / " + Catalog.GetString("Help:")
+ " " + title;
@@ -853,8 +854,7 @@ public class PreferencesWindow
hbox_stiffness_formula.Visible = (helpType == helpTypes.STIFFNESS);
- label_help_message.Text = message;
- label_help_message.UseMarkup = true;
+ textview_help_message.Buffer.Text = message;
}
private void on_button_help_close_clicked (object o, EventArgs args)
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]