anjuta r4818 - in trunk: . plugins/sourceview



Author: jhs
Date: Mon Mar  2 19:15:00 2009
New Revision: 4818
URL: http://svn.gnome.org/viewvc/anjuta?rev=4818&view=rev

Log:
2009-03-02  Johannes Schmid  <jhs gnome org>

	* MAINTAINERS: Added myself after five releases.
	* NEWS: Updated for release
	* configure.in: Bumped version
	* plugins/sourceview/sourceview.c (on_sourceview_hover_leave),
	(on_sourceview_hover_destroy), (on_sourceview_hover_over):
	#564891 â Crash when closing editor window

Modified:
   trunk/ChangeLog
   trunk/MAINTAINERS
   trunk/NEWS
   trunk/configure.in
   trunk/plugins/sourceview/sourceview.c

Modified: trunk/MAINTAINERS
==============================================================================
--- trunk/MAINTAINERS	(original)
+++ trunk/MAINTAINERS	Mon Mar  2 19:15:00 2009
@@ -1,3 +1,7 @@
 Naba Kumar  
 E-Mail: naba gnome org
 Userid: naba
+
+Johannes Schmid
+E-Mail: jhs gnome org
+Userid: jhs
\ No newline at end of file

Modified: trunk/NEWS
==============================================================================
--- trunk/NEWS	(original)
+++ trunk/NEWS	Mon Mar  2 19:15:00 2009
@@ -1,3 +1,29 @@
+Anjuta 2.25.903 (2 March 2009) -- Johannes Schmid
+
+Bugs fixed:
+- Valgrind memory fixes
+- Documentation fixes and updates
+- Fixes in the glade plugin
+- Version control integration fixes
+- Auto-indentation fixes
+#564282 â configure error: source directory already configured
+#567513 â Running configure doesn't make anjuta be aware that the
+  project doesn't need a configure stage in its menus
+#565170 â Invalid read in plugin.c
+#573326 â Debug misfunction
+#572637 â Valgrind shows some errors in symbol-db
+#567068 â autocomplete box should vanish on backspace
+#564306 â don't ask which program to run if project has only one target
+#559806 â Anjuta crashes when closing unsaved file
+#556970 â Swap .h/.c doesn't work for C header files (*.h)
+#555895 â Save configure options for build configuration
+#572608 â crash clicking on 'find in files...' results.
+#572451 - crash on closing project
+#571760 â Find & Replace is broken (due to my previous changes)
+#511589 - remove missed includes
+#572289 â Make code less ambiguous
+#564891 â Crash when closing editor window
+
 Anjuta 2.25.902 (16 February 2009) -- Johannes Schmid
 
 This is a bug-fix release for the GNOME 2.25.91 Beta!

Modified: trunk/configure.in
==============================================================================
--- trunk/configure.in	(original)
+++ trunk/configure.in	Mon Mar  2 19:15:00 2009
@@ -4,8 +4,9 @@
 
 m4_define(anjuta_major_version,  2)
 m4_define(anjuta_minor_version, 25)
-m4_define(anjuta_micro_version,  902)
-m4_define(anjuta_version, anjuta_major_version.anjuta_minor_version.anjuta_micro_version)
+m4_define(anjuta_micro_version,  903)
+m4_define(anjuta_nano_version, 0)
+m4_define(anjuta_version, anjuta_major_version.anjuta_minor_version.anjuta_micro_version.anjuta_nano_version)
 
 AC_INIT(anjuta, anjuta_version, http://bugzilla.gnome.org/enter_bug.cgi?product=anjuta)
 AC_CONFIG_SRCDIR(src/main.c)

Modified: trunk/plugins/sourceview/sourceview.c
==============================================================================
--- trunk/plugins/sourceview/sourceview.c	(original)
+++ trunk/plugins/sourceview/sourceview.c	Mon Mar  2 19:15:00 2009
@@ -2235,6 +2235,7 @@
 }
 
 /* IAnjutaHover */
+static void on_sourceview_hover_destroy (gpointer data, GObject* where_the_data_was);
 static void
 on_sourceview_hover_leave(gpointer data, GObject* where_the_data_was)
 {
@@ -2246,8 +2247,16 @@
 		g_object_unref (sv->priv->tooltip_cell);
 		sv->priv->tooltip_cell = NULL;
 	}
+	g_object_weak_unref (G_OBJECT(sv), on_sourceview_hover_destroy, where_the_data_was);
 }
 
+static void
+on_sourceview_hover_destroy (gpointer data, GObject* where_the_data_was)
+{
+	g_object_weak_unref (G_OBJECT(data), on_sourceview_hover_leave, where_the_data_was);
+}
+
+
 static gboolean 
 on_sourceview_hover_over (GtkWidget *widget, gint x, gint y,
 						  gboolean keyboard_tip, GtkTooltip *tooltip,
@@ -2257,11 +2266,11 @@
 	SourceviewCell* cell;
 	GtkTextIter iter;
 	GtkTextView *text_view = GTK_TEXT_VIEW (widget);
-	gint bx, by, trailing;
+	gint bx, by;
 		
 	gtk_text_view_window_to_buffer_coords (text_view, GTK_TEXT_WINDOW_TEXT,
 											   x, y, &bx, &by);
-	gtk_text_view_get_iter_at_position (text_view, &iter, &trailing, bx, by);
+	gtk_text_view_get_iter_at_location (text_view, &iter, bx, by);
 	
 	cell = sourceview_cell_new (&iter, text_view);
 	
@@ -2272,6 +2281,7 @@
 	{
 		gtk_tooltip_set_text (tooltip, sv->priv->tooltip);
 		g_object_weak_ref (G_OBJECT (tooltip), on_sourceview_hover_leave, sv);
+		g_object_weak_ref (G_OBJECT (sv), on_sourceview_hover_destroy, tooltip);
 		g_free (sv->priv->tooltip);
 		sv->priv->tooltip = NULL;
 		sv->priv->tooltip_cell = cell;



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