[anjuta] git: Rename git_log_setup_refresh monitor.



commit b0a34ae1fb2b44cd451e4d51d4a075fcd0121c2d
Author: James Liggett <jrliggett cox net>
Date:   Thu Jul 2 11:31:00 2009 -0700

    git: Rename git_log_setup_refresh monitor.
    
    Reflect that it only refreshes branches, not the actual log.

 plugins/git/git-log-dialog.c |   10 +++++-----
 plugins/git/git-log-dialog.h |    2 +-
 plugins/git/plugin.c         |    4 ++--
 plugins/git/plugin.h         |    2 +-
 4 files changed, 9 insertions(+), 9 deletions(-)
---
diff --git a/plugins/git/git-log-dialog.c b/plugins/git/git-log-dialog.c
index 28317ba..8a78915 100644
--- a/plugins/git/git-log-dialog.c
+++ b/plugins/git/git-log-dialog.c
@@ -899,9 +899,9 @@ on_log_branch_combo_changed (GtkComboBox *combo_box, gpointer user_data)
 }
 
 static void 
-on_log_refresh_monitor_changed (GFileMonitor *file_monitor, GFile *file,
-								GFile *other_file, GFileMonitorEvent event_type,
-								Git *plugin)
+on_log_branch_refresh_monitor_changed (GFileMonitor *file_monitor, GFile *file,
+									   GFile *other_file, GFileMonitorEvent event_type,
+									   Git *plugin)
 {
 	if (event_type == G_FILE_MONITOR_EVENT_CREATED ||
 	    event_type == G_FILE_MONITOR_EVENT_DELETED)
@@ -1104,7 +1104,7 @@ git_log_get_path (Git *plugin)
 }
 
 GFileMonitor *
-git_log_setup_refresh_monitor (Git *plugin)
+git_log_setup_branch_refresh_monitor (Git *plugin)
 {
 	gchar *git_ref_path;
 	GFile *git_ref_file;
@@ -1122,7 +1122,7 @@ git_log_setup_refresh_monitor (Git *plugin)
 	
 
 	g_signal_connect (G_OBJECT (git_ref_monitor), "changed",
-	                  G_CALLBACK (on_log_refresh_monitor_changed),
+	                  G_CALLBACK (on_log_branch_refresh_monitor_changed),
 	                  plugin);
 
 	g_free (git_ref_path);
diff --git a/plugins/git/git-log-dialog.h b/plugins/git/git-log-dialog.h
index 054b555..921a162 100644
--- a/plugins/git/git-log-dialog.h
+++ b/plugins/git/git-log-dialog.h
@@ -38,7 +38,7 @@ GtkWidget *git_log_window_create (Git *plugin);
 void git_log_window_clear (Git *plugin);
 GitRevision *git_log_get_selected_revision (Git *plugin);
 gchar *git_log_get_path (Git *plugin);
-GFileMonitor *git_log_setup_refresh_monitor (Git *plugin);
+GFileMonitor *git_log_setup_branch_refresh_monitor (Git *plugin);
 void git_log_refresh_branches (Git *plugin);
 
 #endif
diff --git a/plugins/git/plugin.c b/plugins/git/plugin.c
index 983a211..41b6679 100644
--- a/plugins/git/plugin.c
+++ b/plugins/git/plugin.c
@@ -547,7 +547,7 @@ on_project_root_added (AnjutaPlugin *plugin, const gchar *name,
 	g_free (project_root_uri);
 	
 	git_plugin->bisect_file_monitor = bisect_menus_init (git_plugin);
-	git_plugin->log_refresh_monitor = git_log_setup_refresh_monitor (git_plugin);
+	git_plugin->log_branch_refresh_monitor = git_log_setup_branch_refresh_monitor (git_plugin);
 	git_log_refresh_branches (git_plugin);
 }
 
@@ -580,7 +580,7 @@ on_project_root_removed (AnjutaPlugin *plugin, const gchar *name,
 	git_log_window_clear (git_plugin);
 	
 	g_file_monitor_cancel (git_plugin->bisect_file_monitor);
-	g_file_monitor_cancel (git_plugin->log_refresh_monitor);
+	g_file_monitor_cancel (git_plugin->log_branch_refresh_monitor);
 	g_object_unref (git_plugin->bisect_file_monitor);
 }
 
diff --git a/plugins/git/plugin.h b/plugins/git/plugin.h
index e2f406c..f4e262d 100644
--- a/plugins/git/plugin.h
+++ b/plugins/git/plugin.h
@@ -65,7 +65,7 @@ struct _Git
 	
 	/* File monitors */
 	GFileMonitor *bisect_file_monitor;
-	GFileMonitor *log_refresh_monitor;
+	GFileMonitor *log_branch_refresh_monitor;
 };
 
 struct _GitClass



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