SF.net SVN: geany: [876] trunk

eht16 at users.sourceforge.net eht16 at xxxxx
Tue Oct 10 13:52:27 UTC 2006


Revision: 876
          http://svn.sourceforge.net/geany/?rev=876&view=rev
Author:   eht16
Date:     2006-10-10 06:52:22 -0700 (Tue, 10 Oct 2006)

Log Message:
-----------
Connect only once to the "sci-notify" signal.

Modified Paths:
--------------
    trunk/ChangeLog
    trunk/src/document.c

Modified: trunk/ChangeLog
===================================================================
--- trunk/ChangeLog	2006-10-09 16:08:53 UTC (rev 875)
+++ trunk/ChangeLog	2006-10-10 13:52:22 UTC (rev 876)
@@ -1,3 +1,8 @@
+2006-10-10  Enrico Tröger  <enrico.troeger at uvena.de>
+
+ * src/document.c: Connect only once to the "sci-notify" signal.
+
+
 2006-10-09  Nick Treleaven  <nick.treleaven at btinternet.com>
 
  * src/win32.c, src/geany.h, src/callbacks.c, src/search.c,

Modified: trunk/src/document.c
===================================================================
--- trunk/src/document.c	2006-10-09 16:08:53 UTC (rev 875)
+++ trunk/src/document.c	2006-10-10 13:52:22 UTC (rev 876)
@@ -668,16 +668,16 @@
 
 		document_set_filetype(idx, use_ft);	// also sets taglist
 		ui_update_build_menu(idx);
+
+		// "the" SCI signal (connect after initial setup(i.e. adding text))
+		g_signal_connect((GtkWidget*) doc_list[idx].sci, "sci-notify",
+					G_CALLBACK(on_editor_notification), GINT_TO_POINTER(idx));
 	}
 	else
 	{	// reloading
 		document_update_tag_list(idx, TRUE);
 	}
 
-	// "the" SCI signal (connect after initial setup(i.e. adding text))
-	g_signal_connect((GtkWidget*) doc_list[idx].sci, "sci-notify",
-					G_CALLBACK(on_editor_notification), GINT_TO_POINTER(idx));
-
 	document_set_text_changed(idx);
 	ui_document_show_hide(idx); //update the document menu
 


This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site.



More information about the Commits mailing list