[anjuta] git: bgo# 656761 - Error messages being spewed
- From: Johannes Schmid <jhs src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [anjuta] git: bgo# 656761 - Error messages being spewed
- Date: Tue, 22 Nov 2011 18:54:03 +0000 (UTC)
commit f15806111d8726aacd2ee0416703e85061698461
Author: Johannes Schmid <jhs gnome org>
Date: Tue Nov 22 19:53:48 2011 +0100
git: bgo# 656761 - Error messages being spewed
Don't show error messages when updating the log view.
plugins/git/git-log-pane.c | 13 +++++++++++--
1 files changed, 11 insertions(+), 2 deletions(-)
---
diff --git a/plugins/git/git-log-pane.c b/plugins/git/git-log-pane.c
index 12e30b6..f989704 100644
--- a/plugins/git/git-log-pane.c
+++ b/plugins/git/git-log-pane.c
@@ -270,18 +270,27 @@ on_log_command_finished (AnjutaCommand *command, guint return_code,
/* Show the actual log view */
git_log_pane_set_view_mode (self, LOG_VIEW_NORMAL);
+
+ log_view = GTK_TREE_VIEW (gtk_builder_get_object (self->priv->builder,
+ "log_view"));
if (return_code != 0)
{
+ /* Don't report erros in the log view as this is usually no user requested
+ * operation and thus error messages are confusing instead just show an
+ * empty log.
+ */
+#if 0
git_pane_report_errors (command, return_code,
ANJUTA_PLUGIN_GIT (anjuta_dock_pane_get_plugin (ANJUTA_DOCK_PANE (self))));
+#endif
+ g_object_ref (self->priv->log_model);
+ gtk_tree_view_set_model (GTK_TREE_VIEW (log_view), NULL);
g_object_unref (command);
return;
}
- log_view = GTK_TREE_VIEW (gtk_builder_get_object (self->priv->builder,
- "log_view"));
g_object_ref (self->priv->log_model);
gtk_tree_view_set_model (GTK_TREE_VIEW (log_view), NULL);
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]