Kaydet (Commit) 78c05881 authored tarafından Nick Treleaven's avatar Nick Treleaven

Set the status bar instead of logging status messages.

git-svn-id: https://geany.svn.sourceforge.net/svnroot/geany/trunk@1969 ea778897-0a13-0410-b9d1-a72fbfd435f5
üst 04c7d00a
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:
......
......@@ -33,6 +33,7 @@ PluginFields *plugin_fields;
GeanyData *geany_data;
#define utils geany_data->utils
#define ui geany_data->ui
#define doc_array geany_data->doc_array
......@@ -100,7 +101,7 @@ static void item_activated(GtkMenuItem *menuitem, gpointer gdata)
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 @@ static void item_activated(GtkMenuItem *menuitem, gpointer gdata)
}
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 @@ static void item_activated(GtkMenuItem *menuitem, gpointer gdata)
}
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);
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment