[evolution-patches] [gtkhtml] #73409 table set columns fix




Index: ChangeLog
===================================================================
RCS file: /cvs/gnome/gtkhtml/components/html-editor/ChangeLog,v
retrieving revision 1.491
diff -u -p -r1.491 ChangeLog
--- ChangeLog	10 Mar 2005 12:25:11 -0000	1.491
+++ ChangeLog	17 Mar 2005 11:30:16 -0000
@@ -1,3 +1,11 @@
+2005-03-17  Radek Doulik  <rodo localhost localdomain>
+
+	* table.c (changed_cols): jump to table,1 and go backward before
+	calling table edit function
+	(changed_rows): ditto
+
+	Fixes #73409
+
 2005-03-10  Mengjie Yu  <meng-jie yu sun com>
 
 	* toolbar.c: (insertion_color_changed_cb), (setup_gi_color_combo):
Index: table.c
===================================================================
RCS file: /cvs/gnome/gtkhtml/components/html-editor/table.c,v
retrieving revision 1.49
diff -u -p -r1.49 table.c
--- table.c	20 Jan 2005 10:20:23 -0000	1.49
+++ table.c	17 Mar 2005 11:30:31 -0000
@@ -189,7 +189,8 @@ changed_cols (GtkWidget *w, GtkHTMLEditT
 	if (d->disable_change || !editor_has_html_object (d->cd, HTML_OBJECT (d->table)))
 		return;
 
-	html_cursor_forward (d->cd->html->engine->cursor, d->cd->html->engine);
+	html_cursor_jump_to (d->cd->html->engine->cursor, d->cd->html->engine, d->table, 1);
+	html_cursor_backward (d->cd->html->engine->cursor, d->cd->html->engine);
 	html_engine_table_set_cols (d->cd->html->engine, gtk_spin_button_get_value_as_int (GTK_SPIN_BUTTON (d->spin_cols)));
 }
 
@@ -199,7 +200,8 @@ changed_rows (GtkWidget *w, GtkHTMLEditT
 	if (d->disable_change || !editor_has_html_object (d->cd, HTML_OBJECT (d->table)))
 		return;
 
-	html_cursor_forward (d->cd->html->engine->cursor, d->cd->html->engine);
+	html_cursor_jump_to (d->cd->html->engine->cursor, d->cd->html->engine, d->table, 1);
+	html_cursor_backward (d->cd->html->engine->cursor, d->cd->html->engine);
 	html_engine_table_set_rows (d->cd->html->engine, gtk_spin_button_get_value_as_int (GTK_SPIN_BUTTON (d->spin_rows)));
 }
 


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