gtkhtml r9053 - branches/gnome-2-24/components/editor
- From: mbarnes svn gnome org
- To: svn-commits-list gnome org
- Subject: gtkhtml r9053 - branches/gnome-2-24/components/editor
- Date: Thu, 27 Nov 2008 14:39:30 +0000 (UTC)
Author: mbarnes
Date: Thu Nov 27 14:39:30 2008
New Revision: 9053
URL: http://svn.gnome.org/viewvc/gtkhtml?rev=9053&view=rev
Log:
2008-11-27  Matthew Barnes  <mbarnes redhat com>
	** Fixes bug #562323
	* components/editor/gtkhtml-editor-signals.c
	(gtkhtml_editor_link_properties_show_window_cb):
	Initialize the GtkEntry _after_ we've calculated offsets, since
	changing the entry triggers signal handlers that use the offsets.
Modified:
   branches/gnome-2-24/components/editor/ChangeLog
   branches/gnome-2-24/components/editor/gtkhtml-editor-signals.c
Modified: branches/gnome-2-24/components/editor/gtkhtml-editor-signals.c
==============================================================================
--- branches/gnome-2-24/components/editor/gtkhtml-editor-signals.c	(original)
+++ branches/gnome-2-24/components/editor/gtkhtml-editor-signals.c	Thu Nov 27 14:39:30 2008
@@ -1153,13 +1153,13 @@
 
 		sensitive = (url == NULL);
 
-		gtk_entry_set_text (
-			GTK_ENTRY (url_entry),
-			(url != NULL) ? url : "http://");
-
 		editor->priv->link_object = cursor->object;
 		editor->priv->link_start_offset = start_offset;
 		editor->priv->link_end_offset = end_offset;
+
+		gtk_entry_set_text (
+			GTK_ENTRY (url_entry),
+			(url != NULL) ? url : "http://");
 	}
 
 	gtk_entry_set_text (GTK_ENTRY (dsc_entry), "");
[
Date Prev][
Date Next]   [
Thread Prev][
Thread Next]   
[
Thread Index]
[
Date Index]
[
Author Index]