+Tue Oct 15 15:07:45 2002 Manish Singh <yosh@gimp.org>
+
+ * gmodule/Makefile.am gobject/Makefile.am gthread/Makefile.am:
+ add -DG_DISABLED_DEPRECATED
+
+ * tests/gio-test.c tests/mainloop-test.c tests/string-test.c
+ tests/testglib.c test/tree-test.c tests/unicode-collate.c
+ tests/unicode-normalize.c: Deprecation cleanup
+
Mon Oct 14 15:51:05 2002 Owen Taylor <otaylor@redhat.com>
* glib/gdate.c (g_date_fill_parse_tokens): Fix a memory
+Tue Oct 15 15:07:45 2002 Manish Singh <yosh@gimp.org>
+
+ * gmodule/Makefile.am gobject/Makefile.am gthread/Makefile.am:
+ add -DG_DISABLED_DEPRECATED
+
+ * tests/gio-test.c tests/mainloop-test.c tests/string-test.c
+ tests/testglib.c test/tree-test.c tests/unicode-collate.c
+ tests/unicode-normalize.c: Deprecation cleanup
+
Mon Oct 14 15:51:05 2002 Owen Taylor <otaylor@redhat.com>
* glib/gdate.c (g_date_fill_parse_tokens): Fix a memory
+Tue Oct 15 15:07:45 2002 Manish Singh <yosh@gimp.org>
+
+ * gmodule/Makefile.am gobject/Makefile.am gthread/Makefile.am:
+ add -DG_DISABLED_DEPRECATED
+
+ * tests/gio-test.c tests/mainloop-test.c tests/string-test.c
+ tests/testglib.c test/tree-test.c tests/unicode-collate.c
+ tests/unicode-normalize.c: Deprecation cleanup
+
Mon Oct 14 15:51:05 2002 Owen Taylor <otaylor@redhat.com>
* glib/gdate.c (g_date_fill_parse_tokens): Fix a memory
+Tue Oct 15 15:07:45 2002 Manish Singh <yosh@gimp.org>
+
+ * gmodule/Makefile.am gobject/Makefile.am gthread/Makefile.am:
+ add -DG_DISABLED_DEPRECATED
+
+ * tests/gio-test.c tests/mainloop-test.c tests/string-test.c
+ tests/testglib.c test/tree-test.c tests/unicode-collate.c
+ tests/unicode-normalize.c: Deprecation cleanup
+
Mon Oct 14 15:51:05 2002 Owen Taylor <otaylor@redhat.com>
* glib/gdate.c (g_date_fill_parse_tokens): Fix a memory
+Tue Oct 15 15:07:45 2002 Manish Singh <yosh@gimp.org>
+
+ * gmodule/Makefile.am gobject/Makefile.am gthread/Makefile.am:
+ add -DG_DISABLED_DEPRECATED
+
+ * tests/gio-test.c tests/mainloop-test.c tests/string-test.c
+ tests/testglib.c test/tree-test.c tests/unicode-collate.c
+ tests/unicode-normalize.c: Deprecation cleanup
+
Mon Oct 14 15:51:05 2002 Owen Taylor <otaylor@redhat.com>
* glib/gdate.c (g_date_fill_parse_tokens): Fix a memory
+Tue Oct 15 15:07:45 2002 Manish Singh <yosh@gimp.org>
+
+ * gmodule/Makefile.am gobject/Makefile.am gthread/Makefile.am:
+ add -DG_DISABLED_DEPRECATED
+
+ * tests/gio-test.c tests/mainloop-test.c tests/string-test.c
+ tests/testglib.c test/tree-test.c tests/unicode-collate.c
+ tests/unicode-normalize.c: Deprecation cleanup
+
Mon Oct 14 15:51:05 2002 Owen Taylor <otaylor@redhat.com>
* glib/gdate.c (g_date_fill_parse_tokens): Fix a memory
+Tue Oct 15 15:07:45 2002 Manish Singh <yosh@gimp.org>
+
+ * gmodule/Makefile.am gobject/Makefile.am gthread/Makefile.am:
+ add -DG_DISABLED_DEPRECATED
+
+ * tests/gio-test.c tests/mainloop-test.c tests/string-test.c
+ tests/testglib.c test/tree-test.c tests/unicode-collate.c
+ tests/unicode-normalize.c: Deprecation cleanup
+
Mon Oct 14 15:51:05 2002 Owen Taylor <otaylor@redhat.com>
* glib/gdate.c (g_date_fill_parse_tokens): Fix a memory
## Process this file with automake to produce Makefile.in
INCLUDES = -I$(top_srcdir) -I$(top_srcdir)/glib -I$(top_srcdir)/gmodule \
- -DG_LOG_DOMAIN=\"GModule\" @GLIB_DEBUG_FLAGS@
+ -DG_LOG_DOMAIN=\"GModule\" @GLIB_DEBUG_FLAGS@ -DG_DISABLE_DEPRECATED
EXTRA_DIST = \
makefile.mingw.in \
-I$(top_srcdir)/glib \
-I$(top_builddir) \
@GLIB_DEBUG_FLAGS@ \
+ -DG_DISABLE_DEPRECATED \
-DGOBJECT_COMPILATION \
-DG_DISABLE_CONST_RETURNS \
@STRIP_END@
INCLUDES = -I$(top_srcdir) -I$(top_srcdir)/glib -I$(top_srcdir)/gthread \
-DG_LOG_DOMAIN=\"GThread\" @GTHREAD_COMPILE_IMPL_DEFINES@ \
- @GLIB_DEBUG_FLAGS@
+ @GLIB_DEBUG_FLAGS@ -DG_DISABLE_DEPRECATED
EXTRA_DIST = \
makefile.mingw.in \
{
nrunning--;
if (nrunning == 0)
- g_main_quit (main_loop);
+ g_main_loop_quit (main_loop);
}
}
#endif
}
- main_loop = g_main_new (FALSE);
+ main_loop = g_main_loop_new (NULL, FALSE);
- g_main_run (main_loop);
+ g_main_loop_run (main_loop);
}
else if (argc == 3)
{
g_source_attach (timeout_source, context);
g_source_unref (timeout_source);
- g_main_run (addr_data.loop);
+ g_main_loop_run (addr_data.loop);
- g_io_channel_close (channels[0]);
- g_io_channel_close (channels[1]);
g_io_channel_unref (channels[0]);
g_io_channel_unref (channels[1]);
channels[0] = g_io_channel_unix_new (fds[0]);
channels[1] = g_io_channel_unix_new (fds[1]);
+
+ g_io_channel_set_close_on_unref (channels[0], TRUE);
+ g_io_channel_set_close_on_unref (channels[1], TRUE);
}
void
exit (1);
}
- g_io_channel_close (source);
- g_io_channel_close (test_data->in);
-
g_io_channel_unref (source);
g_io_channel_unref (test_data->in);
#ifndef G_OS_WIN32
/* MSVC and mingw32 use the same run-time C library, which doesn't like
the %10000.10000f format... */
- g_string_sprintf (string2, "%s|%0100d|%s|%s|%0*d|%*.*f|%10000.10000f",
- "this pete guy sure is a wuss, like he's the number ",
- 1,
- " wuss. everyone agrees.\n",
- string1->str,
- 10, 666, 15, 15, 666.666666666, 666.666666666);
+ g_string_printf (string2, "%s|%0100d|%s|%s|%0*d|%*.*f|%10000.10000f",
+ "this pete guy sure is a wuss, like he's the number ",
+ 1,
+ " wuss. everyone agrees.\n",
+ string1->str,
+ 10, 666, 15, 15, 666.666666666, 666.666666666);
#else
- g_string_sprintf (string2, "%s|%0100d|%s|%s|%0*d|%*.*f|%100.100f",
- "this pete guy sure is a wuss, like he's the number ",
- 1,
- " wuss. everyone agrees.\n",
- string1->str,
- 10, 666, 15, 15, 666.666666666, 666.666666666);
+ g_string_printf (string2, "%s|%0100d|%s|%s|%0*d|%*.*f|%100.100f",
+ "this pete guy sure is a wuss, like he's the number ",
+ 1,
+ " wuss. everyone agrees.\n",
+ string1->str,
+ 10, 666, 15, 15, 666.666666666, 666.666666666);
#endif
g_string_free (string1, TRUE);
g_print ("tree nnodes: %d\n", g_tree_nnodes (tree));
g_print ("tree: ");
- g_tree_traverse (tree, my_traverse, G_IN_ORDER, NULL);
+ g_tree_foreach (tree, my_traverse, NULL);
g_print ("\n");
for (i = 0; i < 10; i++)
g_print ("tree nnodes: %d\n", g_tree_nnodes (tree));
g_print ("tree: ");
- g_tree_traverse (tree, my_traverse, G_IN_ORDER, NULL);
+ g_tree_foreach (tree, my_traverse, NULL);
g_print ("\n");
g_print ("ok\n");
#ifndef G_OS_WIN32
/* MSVC, mingw32 and LCC use the same run-time C library, which doesn't like
the %10000.10000f format... */
- g_string_sprintf (string2, "%s|%0100d|%s|%s|%0*d|%*.*f|%10000.10000f",
- "this pete guy sure is a wuss, like he's the number ",
- 1,
- " wuss. everyone agrees.\n",
- string1->str,
- 10, 666, 15, 15, 666.666666666, 666.666666666);
+ g_string_printf (string2, "%s|%0100d|%s|%s|%0*d|%*.*f|%10000.10000f",
+ "this pete guy sure is a wuss, like he's the number ",
+ 1,
+ " wuss. everyone agrees.\n",
+ string1->str,
+ 10, 666, 15, 15, 666.666666666, 666.666666666);
#else
- g_string_sprintf (string2, "%s|%0100d|%s|%s|%0*d|%*.*f|%100.100f",
- "this pete guy sure is a wuss, like he's the number ",
- 1,
- " wuss. everyone agrees.\n",
- string1->str,
- 10, 666, 15, 15, 666.666666666, 666.666666666);
+ g_string_printf (string2, "%s|%0100d|%s|%s|%0*d|%*.*f|%100.100f",
+ "this pete guy sure is a wuss, like he's the number ",
+ 1,
+ " wuss. everyone agrees.\n",
+ string1->str,
+ 10, 666, 15, 15, 666.666666666, 666.666666666);
#endif
g_print ("string2 length = %lu...\n", (gulong)string2->len);
g_tree_insert (tree, &chars[i], &chars[i]);
}
- g_tree_traverse (tree, my_traverse, G_IN_ORDER, NULL);
+ g_tree_foreach (tree, my_traverse, NULL);
g_assert (g_tree_nnodes (tree) == (10 + 26 + 26));
for (i = 0; i < 10; i++)
g_tree_remove (tree, &chars[i]);
- g_tree_traverse (tree, my_traverse, G_IN_ORDER, NULL);
+ g_tree_foreach (tree, my_traverse, NULL);
return 0;
}
for (i = 0; i < line_array->len; i++)
printf ("%s\n", g_array_index (line_array, Line, i).str);
- g_io_channel_close (in);
+ g_io_channel_unref (in);
return 0;
}
return 1;
}
- g_io_channel_close (in);
+ g_io_channel_unref (in);
g_string_free (buffer, TRUE);
return !success;