Use anonymous mark instead of making up a bogus name for first_para_mark
2000-06-23 Havoc Pennington <hp@redhat.com> * gtk/gtktextview.c (gtk_text_view_set_buffer): Use anonymous mark instead of making up a bogus name for first_para_mark * gtk/gtkstatusbar.h, gtk/gtkstatusbar.c: Allow 0 as a context ID
This commit is contained in:
committed by
Havoc Pennington
parent
a626ad31e8
commit
797642a563
@ -667,13 +667,10 @@ gtk_text_view_set_buffer (GtkTextView *text_view,
|
||||
"__drag_target",
|
||||
&start, FALSE);
|
||||
|
||||
/* Initialize. FIXME: Allow anonymous marks and use one here
|
||||
*/
|
||||
mark_name = g_strdup_printf ("__first_para_%p", text_view);
|
||||
text_view->first_para_mark = gtk_text_buffer_create_mark (text_view->buffer,
|
||||
mark_name,
|
||||
NULL,
|
||||
&start, TRUE);
|
||||
g_free (mark_name);
|
||||
|
||||
text_view->first_para_pixels = 0;
|
||||
|
||||
gtk_signal_connect (GTK_OBJECT (text_view->buffer), "mark_set",
|
||||
|
||||
Reference in New Issue
Block a user