GNOME Bugzilla – Bug 172631
GtkTextBuffer::text
Last modified: 2005-04-04 23:30:19 UTC
For UI Builders it's important to be able to set the text through GObject properties.
Created attachment 39683 [details] [review] proposed patch
Hmm. the documentation at least should mention that invisible text and placeholders for images and child widgets are omitted. Maybe refer to gtk_text_buffer_get_text() for details. It is unfortunate that we can't guarantee that g_object_get (buffer, "text", text, NULL); g_object_set (buffer, "text", text, NULL); is a noop
Created attachment 39690 [details] [review] v2: updated comment
Sorry to appear pedantic, but the PROP_TEXT is at the wrong spot in the enum declaration, its under the /* Construct */ comment, but not a construct property. And you should add a g_object_notify() call in the setter. After doing these changes, feel free to commit.
Checking in ChangeLog; /cvs/gnome/gtk+/ChangeLog,v <-- ChangeLog new revision: 1.6499; previous revision: 1.6498 done Checking in gtk/gtktextbuffer.c; /cvs/gnome/gtk+/gtk/gtktextbuffer.c,v <-- gtktextbuffer.c new revision: 1.101; previous revision: 1.100 done