File bgo-562323-insert-link.patch of Package gtkhtml2

Index: components/editor/gtkhtml-editor-signals.c
===================================================================
--- components/editor/gtkhtml-editor-signals.c	(revision 9048)
+++ components/editor/gtkhtml-editor-signals.c	(working copy)
@@ -1153,13 +1153,13 @@ gtkhtml_editor_link_properties_show_wind
 
 		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), "");
openSUSE Build Service is sponsored by