diff options
author | Havoc Pennington <hp@pobox.com> | 2000-12-16 07:01:48 +0000 |
---|---|---|
committer | Havoc Pennington <hp@src.gnome.org> | 2000-12-16 07:01:48 +0000 |
commit | e405f75c2b904698f71280348687254b91d8ff47 (patch) | |
tree | 3e94d6db1f35d1c9f60ce26ba6395b43851e661e /tests/testtextbuffer.c | |
parent | 9d41afc90a3f261db2cab33e240b34232c2b117f (diff) | |
download | gtk+-e405f75c2b904698f71280348687254b91d8ff47.tar.gz |
General cleanup of the log attr iteration stuff. This should make e.g. the
2000-12-16 Havoc Pennington <hp@pobox.com>
* gtk/gtktextiter.c: General cleanup of the log attr iteration
stuff. This should make e.g. the delete key work again in the
text widget...
(gtk_text_iter_forward_cursor_positions): handle negative count
(gtk_text_iter_backward_cursor_positions): handle negative count
(gtk_text_iter_forward_word_ends): handle negative count
(gtk_text_iter_backward_word_starts): handle negative count
* gtk/gtktextlayout.h, gtk/gtktextlayout.c, gtk/gtktexttag.h,
gtk/gtktexttag.c, gtk/gtktexttagtable.h, gtk/gtktexttagtable.c,
gtk/gtktextbuffer.h, gtk/gtktextbuffer.c: Convert everything to
GObject. No doubt will cause breakage.
* demos/gtk-demo/textview.c: remove hacks around
non-GObject-ification of the text objects
* demos/gtk-demo/main.c (main): use g_object_set() to manipulate
the text tag
Diffstat (limited to 'tests/testtextbuffer.c')
-rw-r--r-- | tests/testtextbuffer.c | 26 |
1 files changed, 13 insertions, 13 deletions
diff --git a/tests/testtextbuffer.c b/tests/testtextbuffer.c index e981ce9547..f41e2f5a2f 100644 --- a/tests/testtextbuffer.c +++ b/tests/testtextbuffer.c @@ -592,29 +592,29 @@ fill_buffer (GtkTextBuffer *buffer) color2.red = 0xfff; color2.blue = 0x0; color2.green = 0; - gtk_object_set (GTK_OBJECT (tag), - "foreground_gdk", &color, - "background_gdk", &color2, - "font", "-*-courier-bold-r-*-*-30-*-*-*-*-*-*-*", - NULL); + g_object_set (G_OBJECT (tag), + "foreground_gdk", &color, + "background_gdk", &color2, + "font", "-*-courier-bold-r-*-*-30-*-*-*-*-*-*-*", + NULL); tag = gtk_text_buffer_create_tag (buffer, "fg_red"); color.blue = color.green = 0; color.red = 0xffff; - gtk_object_set (GTK_OBJECT (tag), - "rise", -4, - "foreground_gdk", &color, - NULL); + g_object_set (GTK_OBJECT (tag), + "rise", -4, + "foreground_gdk", &color, + NULL); tag = gtk_text_buffer_create_tag (buffer, "bg_green"); color.blue = color.red = 0; color.green = 0xffff; - gtk_object_set (GTK_OBJECT (tag), - "background_gdk", &color, - "font", "-*-courier-bold-r-*-*-10-*-*-*-*-*-*-*", - NULL); + g_object_set (G_OBJECT (tag), + "background_gdk", &color, + "font", "-*-courier-bold-r-*-*-10-*-*-*-*-*-*-*", + NULL); pixbuf = gdk_pixbuf_new_from_xpm_data (book_closed_xpm); |