SF.net SVN: geany: [1969] trunk
ntrel at users.sourceforge.net
ntrel at xxxxx
Tue Oct 23 15:20:39 UTC 2007
Revision: 1969
http://geany.svn.sourceforge.net/geany/?rev=1969&view=rev
Author: ntrel
Date: 2007-10-23 08:20:38 -0700 (Tue, 23 Oct 2007)
Log Message:
-----------
Set the status bar instead of logging status messages.
Modified Paths:
--------------
trunk/ChangeLog
trunk/plugins/svndiff.c
Modified: trunk/ChangeLog
===================================================================
--- trunk/ChangeLog 2007-10-23 11:49:28 UTC (rev 1968)
+++ trunk/ChangeLog 2007-10-23 15:20:38 UTC (rev 1969)
@@ -1,3 +1,9 @@
+2007-10-23 Nick Treleaven <nick(dot)treleaven(at)btinternet(dot)com>
+
+ * plugins/svndiff.c:
+ Set the status bar instead of logging status messages.
+
+
2007-10-23 Frank Lanitz <frank(at)frank(dot)uvena(dot)de>
* plugins/svndiff.c:
Modified: trunk/plugins/svndiff.c
===================================================================
--- trunk/plugins/svndiff.c 2007-10-23 11:49:28 UTC (rev 1968)
+++ trunk/plugins/svndiff.c 2007-10-23 15:20:38 UTC (rev 1969)
@@ -33,6 +33,7 @@
GeanyData *geany_data;
#define utils geany_data->utils
+#define ui geany_data->ui
#define doc_array geany_data->doc_array
@@ -100,7 +101,7 @@
if (text == NULL)
{
- geany_data->msgwindow->status_add(_("Could not parse the output of svn diff"));
+ ui->set_statusbar(FALSE, _("Could not parse the output of svn diff"));
}
else
{
@@ -112,19 +113,19 @@
}
else
{
- geany_data->msgwindow->status_add(_("Current file has no changes."));
+ ui->set_statusbar(FALSE, _("Current file has no changes."));
}
}
else // SVN returns some error
{
/// TODO print std_err or print detailed error messages based on exit_code
- geany_data->msgwindow->status_add(
+ ui->set_statusbar(FALSE,
_("SVN exited with an error. Error code was: %d."), exit_code);
}
}
else
{
- geany_data->msgwindow->status_add(
+ ui->set_statusbar(FALSE,
_("Something went really wrong. Is there any svn-binary in your path?"));
}
g_free(command);
@@ -132,8 +133,8 @@
}
else
{
- geany_data->msgwindow->status_add(
- _("File seems to don't have a name. Can't go on with processing."));
+ ui->set_statusbar(FALSE,
+ _("File is unnamed. Can't go on with processing."));
}
g_free(std_output);
g_free(std_err);
This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site.
More information about the Commits
mailing list