[gnome-latex: 26/205] source view: text wrapping bug correction: bad title when save as and cancel
- From: Sébastien Wilmet <swilmet src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gnome-latex: 26/205] source view: text wrapping bug correction: bad title when save as and cancel
- Date: Fri, 14 Dec 2018 10:49:04 +0000 (UTC)
commit e0b40c913181c6a7fad9b459caa14a4f8b71e295
Author: Sébastien Wilmet <sebastien wilmet gmail com>
Date: Sat Aug 22 20:59:39 2009 +0200
source view: text wrapping
bug correction: bad title when save as and cancel
TODO | 7 ++++++-
src/callbacks.c | 7 +++++++
2 files changed, 13 insertions(+), 1 deletion(-)
---
diff --git a/TODO b/TODO
index fc26c54..e0eb0f4 100644
--- a/TODO
+++ b/TODO
@@ -21,7 +21,12 @@ Tue Aug 18, 2009 to Mon Aug 24, 2009
[x] icons: PDF, DVI, ...
-[-] DVI to PDF, DVI to PS
+[x] DVI to PDF, DVI to PS, view PS
+
+[-] bugs correction
+ - sometimes command output is not UTF-8:
+ Gtk-CRITICAL **: gtk_text_buffer_emit_insert: assertion `g_utf8_validate (text, len, NULL)' failed
+ x bad title with save as -> cancel
Tue Aug 25, 2009 to Mon Aug 31, 2009
diff --git a/src/callbacks.c b/src/callbacks.c
index 8cbf3a4..ac22a99 100644
--- a/src/callbacks.c
+++ b/src/callbacks.c
@@ -97,7 +97,10 @@ cb_save_as (void)
// if the user click on cancel
if (! latexila.active_doc->saved)
+ {
(*latexila.active_doc) = doc_backup;
+ set_title ();
+ }
}
else
@@ -407,6 +410,10 @@ create_document_in_new_tab (const gchar *path, const gchar *text, const gchar *t
PangoFontDescription *font_desc = pango_font_description_from_string (FONT);
gtk_widget_modify_font (new_doc->source_view, font_desc);
+ // enable text wrapping (between words only)
+ gtk_text_view_set_wrap_mode (GTK_TEXT_VIEW (new_doc->source_view),
+ GTK_WRAP_WORD);
+
// put the text into the buffer
gtk_source_buffer_begin_not_undoable_action (new_doc->source_buffer);
gtk_text_buffer_set_text (GTK_TEXT_BUFFER (new_doc->source_buffer), text, -1);
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]