summaryrefslogtreecommitdiff
path: root/tests/testtextbuffer.c
diff options
context:
space:
mode:
authorHavoc Pennington <hp@pobox.com>2000-11-13 06:08:17 +0000
committerHavoc Pennington <hp@src.gnome.org>2000-11-13 06:08:17 +0000
commit9adcd8a4b8c961196c0bad6ca47bdfde8e6ce078 (patch)
tree7c96d2f105b380b36a09c02670c8ce99a3ba3e65 /tests/testtextbuffer.c
parent213680a43607361c07b5239727b74a97b3c189b2 (diff)
downloadgdk-pixbuf-9adcd8a4b8c961196c0bad6ca47bdfde8e6ce078.tar.gz
change demo install dir to datadir/gtk+-2.0/demo
2000-11-12 Havoc Pennington <hp@pobox.com> * demos/gtk-demo/Makefile.am (democodedir): change demo install dir to datadir/gtk+-2.0/demo * demos/gtk-demo/textview.c: Text widget demo; reveals all sorts of text widget and Pango font bugs. Urgh. * demos/gtk-demo/Makefile.am (demos): Add textview.c * demos/gtk-demo/main.c (create_tree): Add instructions at top of tree that you should double click to see the demo. Fix types of variables to reflect changed return values from GtkTreeStore and GtkTreeViewColumn constructors. * gtk/gtktextbuffer.c (gtk_text_buffer_new): ref/sink the newly-created buffer to prepare for GObject semantics * gtk/testtext.c: don't leak the buffer with GObject semantics * gtk/testtextbuffer.c: ditto
Diffstat (limited to 'tests/testtextbuffer.c')
-rw-r--r--tests/testtextbuffer.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/tests/testtextbuffer.c b/tests/testtextbuffer.c
index 437be8832..18df1a2f1 100644
--- a/tests/testtextbuffer.c
+++ b/tests/testtextbuffer.c
@@ -66,6 +66,8 @@ main (int argc, char** argv)
run_tests (buffer);
+ g_object_unref (G_OBJECT (buffer));
+
g_print ("All tests passed.\n");
return 0;