[latexila] DocumentTab: remove :label-text property
- From: Sébastien Wilmet <swilmet src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [latexila] DocumentTab: remove :label-text property
- Date: Sun, 6 Aug 2017 15:04:04 +0000 (UTC)
commit 076afbd6cbc163c9931c2fcf71ae716862fdfef6
Author: Sébastien Wilmet <swilmet gnome org>
Date: Sun Aug 6 17:01:05 2017 +0200
DocumentTab: remove :label-text property
tepl_file_get_short_name() is used instead.
src/document_tab.vala | 10 ++--------
1 files changed, 2 insertions(+), 8 deletions(-)
---
diff --git a/src/document_tab.vala b/src/document_tab.vala
index 41978e5..7994b27 100644
--- a/src/document_tab.vala
+++ b/src/document_tab.vala
@@ -42,12 +42,6 @@ public class DocumentTab : Tepl.Tab
get { return _label; }
}
- public string label_text
- {
- get { return _label_text.label; }
- private set { _label_text.label = value; }
- }
-
private uint auto_save_timeout;
private uint _auto_save_interval;
@@ -192,7 +186,7 @@ public class DocumentTab : Tepl.Tab
private void update_label_text ()
{
- label_text = Utils.str_middle_truncate (
+ _label_text.label = Utils.str_middle_truncate (
document.get_short_name_for_display (), 42);
}
@@ -232,7 +226,7 @@ public class DocumentTab : Tepl.Tab
public string get_name ()
{
- return _label_mark.label + label_text;
+ return _label_mark.label + _label_text.label;
}
public string get_menu_tip ()
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]