anjuta r4725 - in trunk: . plugins/document-manager
- From: jhs svn gnome org
- To: svn-commits-list gnome org
- Subject: anjuta r4725 - in trunk: . plugins/document-manager
- Date: Mon, 9 Feb 2009 22:43:23 +0000 (UTC)
Author: jhs
Date: Mon Feb 9 22:43:23 2009
New Revision: 4725
URL: http://svn.gnome.org/viewvc/anjuta?rev=4725&view=rev
Log:
2009-02-09 Johannes Schmid <jhs gnome org>
* plugins/document-manager/plugin.c (update_status),
(on_document_changed):
#563704 â Anjuta displays column/line numbers after edit windows closed
Modified:
trunk/ChangeLog
trunk/plugins/document-manager/plugin.c
Modified: trunk/plugins/document-manager/plugin.c
==============================================================================
--- trunk/plugins/document-manager/plugin.c (original)
+++ trunk/plugins/document-manager/plugin.c Mon Feb 9 22:43:23 2009
@@ -900,25 +900,6 @@
if (status == NULL)
return;
- /* TODO: Implement this in IAnjutaEditor some kind
- gint editor_mode;
- editor_mode = scintilla_send_message (SCINTILLA (te->widgets.editor),
- SCI_GETEOLMODE, 0, 0);
- switch (editor_mode) {
- case SC_EOL_CRLF:
- mode = g_strdup(_("DOS (CRLF)"));
- break;
- case SC_EOL_LF:
- mode = g_strdup(_("Unix (LF)"));
- break;
- case SC_EOL_CR:
- mode = g_strdup(_("Mac (CR)"));
- break;
- default:
- mode = g_strdup(_("Unknown"));
- break;
- }*/
-
zoom = anjuta_preferences_get_int (plugin->prefs, TEXT_ZOOM_FACTOR);
line = ianjuta_editor_get_lineno (te, NULL);
col = ianjuta_editor_get_column (te, NULL);
@@ -950,11 +931,7 @@
status = anjuta_shell_get_status (ANJUTA_PLUGIN (plugin)->shell, NULL);
if (status)
{
- anjuta_status_set_default (status, _("Zoom"), NULL);
- anjuta_status_set_default (status, _("Line"), NULL);
- anjuta_status_set_default (status, _("Col"), NULL);
- anjuta_status_set_default (status, _("Mode"), NULL);
- /* anjuta_status_set_default (status, _("EOL"), NULL); */
+ anjuta_status_set (status, "");
}
}
}
@@ -1154,6 +1131,7 @@
on_document_changed (AnjutaDocman *docman, IAnjutaDocument *doc,
AnjutaPlugin *plugin)
{
+ DocmanPlugin *docman_plugin;
update_document_ui (plugin, doc);
if (doc)
@@ -1171,12 +1149,10 @@
anjuta_shell_remove_value (plugin->shell, IANJUTA_DOCUMENT_MANAGER_CURRENT_DOCUMENT,
NULL);
}
-
+ docman_plugin = ANJUTA_PLUGIN_DOCMAN (plugin);
+
if (doc && IANJUTA_IS_EDITOR (doc))
{
- DocmanPlugin *docman_plugin;
-
- docman_plugin = ANJUTA_PLUGIN_DOCMAN (plugin);
update_status (docman_plugin, IANJUTA_EDITOR (doc));
if (IANJUTA_IS_EDITOR_LANGUAGE (doc))
@@ -1252,6 +1228,8 @@
}
}
}
+ else
+ update_status (docman_plugin, NULL);
out:
update_title (ANJUTA_PLUGIN_DOCMAN (plugin));
}
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]