[anjuta/git-shell] git: Add error handling to all of the dialog panes



commit a7f32ac0fd3bf2e65634843143ac7bae33421c47
Author: James Liggett <jrliggett cox net>
Date:   Fri Jul 9 14:53:29 2010 -0700

    git: Add error handling to all of the dialog panes

 plugins/git/git-add-files-pane.c       |    5 +++++
 plugins/git/git-commit-pane.c          |    5 +++++
 plugins/git/git-create-branch-pane.c   |    5 +++++
 plugins/git/git-delete-branches-pane.c |   12 ++++++++++++
 plugins/git/git-merge-pane.c           |    4 ++++
 plugins/git/git-pull-pane.c            |    5 +++++
 plugins/git/git-push-pane.c            |    4 ++++
 plugins/git/git-remove-files-pane.c    |    5 +++++
 plugins/git/git-switch-branch-pane.c   |    5 +++++
 9 files changed, 50 insertions(+), 0 deletions(-)
---
diff --git a/plugins/git/git-add-files-pane.c b/plugins/git/git-add-files-pane.c
index 9f13516..132c8cf 100644
--- a/plugins/git/git-add-files-pane.c
+++ b/plugins/git/git-add-files-pane.c
@@ -48,6 +48,11 @@ on_ok_button_clicked (GtkButton *button, GitAddFilesPane *self)
 	git_command_free_string_list (paths);
 
 	g_signal_connect (G_OBJECT (add_command), "command-finished",
+	                  G_CALLBACK (git_pane_report_errors),
+	                  plugin);
+
+
+	g_signal_connect (G_OBJECT (add_command), "command-finished",
 	                  G_CALLBACK (g_object_unref),
 	                  NULL);
 
diff --git a/plugins/git/git-commit-pane.c b/plugins/git/git-commit-pane.c
index dd2c90d..88cc2e3 100644
--- a/plugins/git/git-commit-pane.c
+++ b/plugins/git/git-commit-pane.c
@@ -177,6 +177,11 @@ on_ok_button_clicked (GtkButton *button, GitCommitPane *self)
 	                  plugin);
 
 	g_signal_connect (G_OBJECT (commit_command), "command-finished",
+	                  G_CALLBACK (git_pane_report_errors),
+	                  plugin);
+
+
+	g_signal_connect (G_OBJECT (commit_command), "command-finished",
 	                  G_CALLBACK (g_object_unref),
 	                  NULL);
 
diff --git a/plugins/git/git-create-branch-pane.c b/plugins/git/git-create-branch-pane.c
index 76c30ed..18fba20 100644
--- a/plugins/git/git-create-branch-pane.c
+++ b/plugins/git/git-create-branch-pane.c
@@ -81,6 +81,11 @@ on_ok_button_clicked (GtkButton *button, GitCreateBranchPane *self)
 	                                                gtk_toggle_button_get_active (checkout_check));
 
 	g_signal_connect (G_OBJECT (create_command), "command-finished",
+	                  G_CALLBACK (git_pane_report_errors),
+	                  plugin);
+
+
+	g_signal_connect (G_OBJECT (create_command), "command-finished",
 	                  G_CALLBACK (g_object_unref),
 	                  NULL);
 
diff --git a/plugins/git/git-delete-branches-pane.c b/plugins/git/git-delete-branches-pane.c
index 4b49109..58f7197 100644
--- a/plugins/git/git-delete-branches-pane.c
+++ b/plugins/git/git-delete-branches-pane.c
@@ -59,6 +59,12 @@ on_ok_button_clicked (GtkButton *button, GitDeleteBranchesPane *self)
 
 			g_signal_connect (G_OBJECT (local_delete_command), 
 			                  "command-finished",
+			                  G_CALLBACK (git_pane_report_errors),
+			                  plugin);
+			
+
+			g_signal_connect (G_OBJECT (local_delete_command), 
+			                  "command-finished",
 			                  G_CALLBACK (g_object_unref),
 			                  NULL);
 
@@ -75,6 +81,12 @@ on_ok_button_clicked (GtkButton *button, GitDeleteBranchesPane *self)
 
 			git_command_free_string_list (selected_remote_branches);
 
+			g_signal_connect (G_OBJECT (remote_delete_command), 
+			                  "command-finished",
+			                  G_CALLBACK (git_pane_report_errors),
+			                  plugin);
+
+
 			g_signal_connect (G_OBJECT (remote_delete_command), "command-finished",
 			                  G_CALLBACK (g_object_unref),
 			                  NULL);
diff --git a/plugins/git/git-merge-pane.c b/plugins/git/git-merge-pane.c
index ccc029a..e3b59c9 100644
--- a/plugins/git/git-merge-pane.c
+++ b/plugins/git/git-merge-pane.c
@@ -90,6 +90,10 @@ on_ok_button_clicked (GtkButton *button, GitMergePane *self)
 	                  plugin);
 
 	g_signal_connect (G_OBJECT (merge_command), "command-finished",
+	                  G_CALLBACK (git_pane_report_errors),
+	                  plugin);
+
+	g_signal_connect (G_OBJECT (merge_command), "command-finished",
 	                  G_CALLBACK (g_object_unref),
 	                  NULL);
 
diff --git a/plugins/git/git-pull-pane.c b/plugins/git/git-pull-pane.c
index 04be8aa..fb3a990 100644
--- a/plugins/git/git-pull-pane.c
+++ b/plugins/git/git-pull-pane.c
@@ -88,6 +88,11 @@ on_ok_button_clicked (GtkButton *button, GitPullPane *self)
 	                  plugin);
 
 	g_signal_connect (G_OBJECT (pull_command), "command-finished",
+	                  G_CALLBACK (git_pane_report_errors),
+	                  plugin);
+
+
+	g_signal_connect (G_OBJECT (pull_command), "command-finished",
 	                  G_CALLBACK (g_object_unref),
 	                  NULL);
 
diff --git a/plugins/git/git-push-pane.c b/plugins/git/git-push-pane.c
index b8afa17..8fa924f 100644
--- a/plugins/git/git-push-pane.c
+++ b/plugins/git/git-push-pane.c
@@ -130,6 +130,10 @@ on_ok_button_clicked (GtkButton *button, GitPushPane *self)
 	                  plugin);
 
 	g_signal_connect (G_OBJECT (push_command), "command-finished",
+	                  G_CALLBACK (git_pane_report_errors),
+	                  plugin);
+
+	g_signal_connect (G_OBJECT (push_command), "command-finished",
 	                  G_CALLBACK (g_object_unref),
 	                  NULL);
 
diff --git a/plugins/git/git-remove-files-pane.c b/plugins/git/git-remove-files-pane.c
index f3fb553..63b11dc 100644
--- a/plugins/git/git-remove-files-pane.c
+++ b/plugins/git/git-remove-files-pane.c
@@ -48,6 +48,11 @@ on_ok_button_clicked (GtkButton *button, GitRemoveFilesPane *self)
 	git_command_free_string_list (paths);
 
 	g_signal_connect (G_OBJECT (remove_command), "command-finished",
+	                  G_CALLBACK (git_pane_report_errors),
+	                  plugin);
+
+
+	g_signal_connect (G_OBJECT (remove_command), "command-finished",
 	                  G_CALLBACK (g_object_unref),
 	                  NULL);
 
diff --git a/plugins/git/git-switch-branch-pane.c b/plugins/git/git-switch-branch-pane.c
index b6d3cea..229c120 100644
--- a/plugins/git/git-switch-branch-pane.c
+++ b/plugins/git/git-switch-branch-pane.c
@@ -35,6 +35,11 @@ on_switch_branch_button_clicked (GtkAction *action, Git *plugin)
 		g_free (selected_branch);
 
 		g_signal_connect (G_OBJECT (checkout_command), "command-finished",
+		                  G_CALLBACK (git_pane_report_errors),
+		                  plugin);
+
+
+		g_signal_connect (G_OBJECT (checkout_command), "command-finished",
 		                  G_CALLBACK (g_object_unref),
 		                  NULL);
 		



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]