[anjuta/libgit2-glib: 13/14] git: Don't emit status-changed in response to commands finishing
- From: James Liggett <jrliggett src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [anjuta/libgit2-glib: 13/14] git: Don't emit status-changed in response to commands finishing
- Date: Tue, 6 Aug 2013 04:42:40 +0000 (UTC)
commit 13423af56e92cefe880c8742d2afc668b9d15338
Author: James Liggett <jrliggett cox net>
Date: Sat Aug 3 19:34:28 2013 -0700
git: Don't emit status-changed in response to commands finishing
We should be detecting changes to files in the git repository instead.
plugins/git/git-commit-pane.c | 5 +----
plugins/git/git-pull-pane.c | 5 +----
plugins/git/git-push-pane.c | 4 ----
plugins/git/plugin.c | 6 ------
plugins/git/plugin.h | 2 --
5 files changed, 2 insertions(+), 20 deletions(-)
---
diff --git a/plugins/git/git-commit-pane.c b/plugins/git/git-commit-pane.c
index cec6487..43bb0be 100644
--- a/plugins/git/git-commit-pane.c
+++ b/plugins/git/git-commit-pane.c
@@ -181,10 +181,7 @@ on_ok_action_activated (GtkAction *action, GitCommitPane *self)
g_signal_connect (G_OBJECT (commit_command), "command-finished",
G_CALLBACK (git_pane_report_process_errors),
plugin);
-
- g_signal_connect (G_OBJECT (commit_command), "command-finished",
- G_CALLBACK (git_plugin_status_changed_emit),
- plugin);
+
g_signal_connect (G_OBJECT (commit_command), "command-finished",
G_CALLBACK (g_object_unref),
diff --git a/plugins/git/git-pull-pane.c b/plugins/git/git-pull-pane.c
index 6df9f7a..5c5f03c 100644
--- a/plugins/git/git-pull-pane.c
+++ b/plugins/git/git-pull-pane.c
@@ -90,10 +90,7 @@ on_ok_action_activated (GtkAction *action, GitPullPane *self)
g_signal_connect (G_OBJECT (pull_command), "command-finished",
G_CALLBACK (git_pane_report_process_errors),
plugin);
-
- g_signal_connect (G_OBJECT (pull_command), "command-finished",
- G_CALLBACK (git_plugin_status_changed_emit),
- plugin);
+
g_signal_connect (G_OBJECT (pull_command), "command-finished",
G_CALLBACK (g_object_unref),
diff --git a/plugins/git/git-push-pane.c b/plugins/git/git-push-pane.c
index f8d5fbc..520f5f9 100644
--- a/plugins/git/git-push-pane.c
+++ b/plugins/git/git-push-pane.c
@@ -132,10 +132,6 @@ on_ok_action_activated (GtkAction *action, GitPushPane *self)
g_signal_connect (G_OBJECT (push_command), "command-finished",
G_CALLBACK (git_pane_report_process_errors),
plugin);
-
- g_signal_connect (G_OBJECT (push_command), "command-finished",
- G_CALLBACK (git_plugin_status_changed_emit),
- plugin);
g_signal_connect (G_OBJECT (push_command), "command-finished",
G_CALLBACK (g_object_unref),
diff --git a/plugins/git/plugin.c b/plugins/git/plugin.c
index c0b5d06..656a195 100644
--- a/plugins/git/plugin.c
+++ b/plugins/git/plugin.c
@@ -1131,12 +1131,6 @@ git_class_init (GObjectClass *klass)
klass->dispose = git_dispose;
}
-
-void git_plugin_status_changed_emit(AnjutaCommand *command, guint return_code, Git *plugin)
-{
- g_signal_emit_by_name(plugin, "status-changed");
-}
-
ANJUTA_PLUGIN_BEGIN (Git, git);
ANJUTA_PLUGIN_ADD_INTERFACE (git_ivcs, IANJUTA_TYPE_VCS);
ANJUTA_PLUGIN_END;
diff --git a/plugins/git/plugin.h b/plugins/git/plugin.h
index ee8cdf6..dafc588 100644
--- a/plugins/git/plugin.h
+++ b/plugins/git/plugin.h
@@ -115,6 +115,4 @@ struct _GitClass
AnjutaPluginClass parent_class;
};
-void git_plugin_status_changed_emit(AnjutaCommand *command, guint return_code, Git *plugin);
-
#endif
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]