anjuta r4322 - in trunk: . plugins/file-loader plugins/sourceview



Author: jhs
Date: Mon Oct  6 08:55:20 2008
New Revision: 4322
URL: http://svn.gnome.org/viewvc/anjuta?rev=4322&view=rev

Log:
2008-10-06  Johannes Schmid  <jhs gnome org>

	* plugins/file-loader/plugin.c (on_session_load):
	Do not show status ticks for async file loading
	
	* plugins/sourceview/sourceview.c (on_insert_text), (on_backspace),
	(sourceview_instance_init):
	#554684 â Cursor column number is not updated when typing text

Modified:
   trunk/ChangeLog
   trunk/plugins/file-loader/plugin.c
   trunk/plugins/sourceview/sourceview.c

Modified: trunk/plugins/file-loader/plugin.c
==============================================================================
--- trunk/plugins/file-loader/plugin.c	(original)
+++ trunk/plugins/file-loader/plugin.c	Mon Oct  6 08:55:20 2008
@@ -1082,10 +1082,7 @@
 	files = anjuta_session_get_string_list (session, "File Loader", "Files");
 	if (!files)
 		return;
-	
-	status = anjuta_shell_get_status (shell, NULL);
-	anjuta_status_progress_add_ticks (status, g_list_length(files));
-	
+		
 	/* Open project files first and then regular files */
 	for (i = 0; i < 2; i++)
 	{
@@ -1114,7 +1111,6 @@
 					ianjuta_file_loader_load (IANJUTA_FILE_LOADER (plugin),
 											  uri, FALSE, NULL);
 					*/
-					anjuta_status_progress_tick (status, NULL, label);
 				}
 				else if (i != 0 &&
 						 (!mime_type ||
@@ -1124,7 +1120,6 @@
 					GFile* file = g_file_new_for_uri (uri);
 					ianjuta_file_loader_load (IANJUTA_FILE_LOADER (plugin),
 											  file, FALSE, NULL);
-					anjuta_status_progress_tick (status, NULL, label);
 					g_object_unref (file);
 				}
 				g_free (filename);

Modified: trunk/plugins/sourceview/sourceview.c
==============================================================================
--- trunk/plugins/sourceview/sourceview.c	(original)
+++ trunk/plugins/sourceview/sourceview.c	Mon Oct  6 08:55:20 2008
@@ -226,6 +226,8 @@
 							gint len,
 							Sourceview* sv)
 {
+	/* Update the status bar */
+	g_signal_emit_by_name(G_OBJECT(sv), "update_ui");	
 	/* We only want ascii characters */
 	if (len > 1 || strlen(text) > 1)
 		return;
@@ -270,6 +272,12 @@
 		g_signal_emit_by_name(G_OBJECT(sv), "update_ui");
 }
 
+static void on_backspace (GtkTextView* view,
+						  Sourceview* sv)
+{
+	g_signal_emit_by_name(G_OBJECT(sv), "update_ui");
+}
+
 /* Open / Save stuff */
 
 /* Callback for dialog below */
@@ -554,6 +562,8 @@
 					  G_CALLBACK(on_overwrite_toggled), sv);
 	g_signal_connect (G_OBJECT(sv->priv->view), "query-tooltip",
 					  G_CALLBACK (on_sourceview_hover_over), sv);
+	g_signal_connect_after(G_OBJECT(sv->priv->view), "backspace", 
+					 G_CALLBACK(on_backspace),sv);
 	g_object_set (G_OBJECT (sv->priv->view), "has-tooltip", TRUE, NULL);
 	gtk_source_view_set_smart_home_end(GTK_SOURCE_VIEW(sv->priv->view), FALSE);
 	



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