anjuta r4599 - in trunk: . plugins/subversion



Author: jrliggett
Date: Sat Jan 17 09:15:18 2009
New Revision: 4599
URL: http://svn.gnome.org/viewvc/anjuta?rev=4599&view=rev

Log:
	* plugins/subversion/subversion-log-dialog.c (subversion_show_log),
	(on_log_view_button_clicked), (subversion_log_window_create),
	(on_fm_subversion_log):
	Make the View Log command in the Subversion plugin act immediately when 
	activated from the file manager context menu.
	
	Fixes Bug 565353 â View Log and Diff context menu commands should 
	act immediately

Modified:
   trunk/ChangeLog
   trunk/plugins/subversion/subversion-log-dialog.c

Modified: trunk/plugins/subversion/subversion-log-dialog.c
==============================================================================
--- trunk/plugins/subversion/subversion-log-dialog.c	(original)
+++ trunk/plugins/subversion/subversion-log-dialog.c	Sat Jan 17 09:15:18 2009
@@ -220,7 +220,7 @@
 }
 
 static void
-on_log_view_button_clicked (GtkButton *button, LogData *data)
+subversion_show_log (LogData *data)
 {
 	GtkWidget *log_changes_view;
 	GtkWidget *log_file_entry;
@@ -274,6 +274,12 @@
 }
 
 static void
+on_log_view_button_clicked (GtkButton *button, LogData *data)
+{
+	subversion_show_log (data);
+}
+
+static void
 on_cat_command_data_arrived (AnjutaCommand *command, IAnjutaEditor *editor)
 {
 	GQueue *output;
@@ -606,6 +612,7 @@
 	
 	g_object_set_data (G_OBJECT (log_whole_project_check), "fileentry",
 					   log_file_entry);
+	g_object_set_data (G_OBJECT (subversion_log_vbox), "log-data", data);
 	g_signal_connect (G_OBJECT (log_whole_project_check), "toggled",
 					  G_CALLBACK (on_whole_project_toggled), plugin);
 	init_whole_project (plugin, log_whole_project_check, FALSE);
@@ -651,14 +658,22 @@
 on_fm_subversion_log (GtkAction *action, Subversion *plugin)
 {
 	GtkWidget *log_file_entry;
+	GtkWidget *log_whole_project_check;
 	
 	log_file_entry = glade_xml_get_widget (plugin->log_gxml, "log_file_entry");
+	log_whole_project_check = glade_xml_get_widget (plugin->log_gxml,
+													"log_whole_project_check");
 	
 	gtk_entry_set_text (GTK_ENTRY (log_file_entry), 
 						plugin->fm_current_filename);
+	gtk_toggle_button_set_active (GTK_TOGGLE_BUTTON (log_whole_project_check),
+								  FALSE);
 	
 	anjuta_shell_present_widget (ANJUTA_PLUGIN (plugin)->shell, 
 								 plugin->log_viewer, NULL);
+	
+	subversion_show_log (g_object_get_data (G_OBJECT (plugin->log_viewer), 
+											"log-data"));
 }
 
 void



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