gtodo (0.16.0~rc2-1.1) 02_no-cursor.patch

Summary

 src/add_edit_item.c |    4 +++-
 1 file changed, 3 insertions(+), 1 deletion(-)

    
download this patch

Patch contents

diff -ur gtodo-0.14-orig/src/add_edit_item.c gtodo-0.14/src/add_edit_item.c
--- gtodo-0.14-orig/src/add_edit_item.c	2004-02-15 21:52:34.000000000 +0100
+++ gtodo-0.14/src/add_edit_item.c	2005-05-23 22:59:58.000000000 +0200
@@ -20,7 +20,7 @@
 	}
 }
 
-void add_edit_comment_keybord_focus_in_event(GtkWidget *menu)
+gboolean add_edit_comment_keybord_focus_in_event(GtkWidget *menu)
 {
 	GtkTextIter biter, eiter;
 	GtkTextBuffer *tb = gtk_text_view_get_buffer(GTK_TEXT_VIEW(menu));
@@ -29,6 +29,7 @@
 	/* set the cursor posistion */
 	gtk_text_buffer_place_cursor(tb,&eiter);
 	if(GTK_MINOR_VERSION >= 3) gtk_text_buffer_select_range(tb, &eiter,&biter); 
+        return FALSE;
 }
 
 /* this function is called when the egg_datetime entry changes	*
@@ -250,6 +251,7 @@
 	/* make sure it has nice scrollbars and a nice box around it (giving the 3d effect of the borders) */
 	text_view = gtk_text_view_new();
 	gtk_text_view_set_wrap_mode(GTK_TEXT_VIEW(text_view), GTK_WRAP_WORD);
+        gtk_text_view_set_accepts_tab(GTK_TEXT_VIEW(text_view), FALSE);
 	label = gtk_scrolled_window_new(NULL, NULL);    
 	gtk_scrolled_window_set_policy(GTK_SCROLLED_WINDOW(label), GTK_POLICY_AUTOMATIC, GTK_POLICY_AUTOMATIC);
 	gtk_container_add(GTK_CONTAINER(label), text_view);