diff options
author | Owen Taylor <otaylor@redhat.com> | 2002-10-04 21:25:47 +0000 |
---|---|---|
committer | Owen Taylor <otaylor@src.gnome.org> | 2002-10-04 21:25:47 +0000 |
commit | 47bed428ffd4634ba0f69d192b55a26a8f552f7d (patch) | |
tree | bd3b24f86bc7ff7095a99a84bde33f4b05643e81 /tests/testtext.c | |
parent | d2aa626845d04b5270c3e088f104f847c4e9251d (diff) | |
download | gtk+-47bed428ffd4634ba0f69d192b55a26a8f552f7d.tar.gz |
Improve checks on public entry points, including, among other things
Fri Oct 4 17:13:03 2002 Owen Taylor <otaylor@redhat.com>
* gtk/gtkdnd.c: Improve checks on public entry points,
including, among other things checking whether drag
contexts passed in are source or dest. (Fixes
#76762, Alexey A. Malyshev)
* tests/testtext.c tests/testgtk.c tests/testdnd.c:
Fix uninstalled operation for new pixbuf changes.
* gtk/stock-icons/Makefile.am (pixbuf_csource):
Fix makefile for uninstalled operation.
Diffstat (limited to 'tests/testtext.c')
-rw-r--r-- | tests/testtext.c | 12 |
1 files changed, 3 insertions, 9 deletions
diff --git a/tests/testtext.c b/tests/testtext.c index 2097f3b46e..6541c43837 100644 --- a/tests/testtext.c +++ b/tests/testtext.c @@ -2528,19 +2528,13 @@ view_add_example_widgets (View *view) } } -static gboolean -file_exists (const char *filename) -{ - struct stat statbuf; - - return stat (filename, &statbuf) == 0; -} void test_init () { - if (file_exists ("../gdk-pixbuf/libpixbufloader-pnm.la")) + if (g_file_test ("../gdk-pixbuf/libpixbufloader-pnm.la", + G_FILE_TEST_EXISTS)) { - putenv ("GDK_PIXBUF_MODULEDIR=../gdk-pixbuf/.libs"); + putenv ("GDK_PIXBUF_MODULE_FILE=../gdk-pixbuf/gdk-pixbuf.loaders"); putenv ("GTK_IM_MODULE_FILE=../modules/input/gtk.immodules"); } } |