+Wed Nov 28 18:34:22 2001 Owen Taylor <otaylor@redhat.com>
+
+ * glib/gmain.[ch]: Rename (private) GSource.id and
+ id parameter to g_main_context_find_source_by_id()
+ to avoid problems with Objective C where 'id' is
+ a keyword. (#65616)
+
2001-11-28 Daniel Elstner <daniel.elstner@gmx.net>
* glib/gutf8.c (utf8_skip_data): In order to avoid infinite loops
+Wed Nov 28 18:34:22 2001 Owen Taylor <otaylor@redhat.com>
+
+ * glib/gmain.[ch]: Rename (private) GSource.id and
+ id parameter to g_main_context_find_source_by_id()
+ to avoid problems with Objective C where 'id' is
+ a keyword. (#65616)
+
2001-11-28 Daniel Elstner <daniel.elstner@gmx.net>
* glib/gutf8.c (utf8_skip_data): In order to avoid infinite loops
+Wed Nov 28 18:34:22 2001 Owen Taylor <otaylor@redhat.com>
+
+ * glib/gmain.[ch]: Rename (private) GSource.id and
+ id parameter to g_main_context_find_source_by_id()
+ to avoid problems with Objective C where 'id' is
+ a keyword. (#65616)
+
2001-11-28 Daniel Elstner <daniel.elstner@gmx.net>
* glib/gutf8.c (utf8_skip_data): In order to avoid infinite loops
+Wed Nov 28 18:34:22 2001 Owen Taylor <otaylor@redhat.com>
+
+ * glib/gmain.[ch]: Rename (private) GSource.id and
+ id parameter to g_main_context_find_source_by_id()
+ to avoid problems with Objective C where 'id' is
+ a keyword. (#65616)
+
2001-11-28 Daniel Elstner <daniel.elstner@gmx.net>
* glib/gutf8.c (utf8_skip_data): In order to avoid infinite loops
+Wed Nov 28 18:34:22 2001 Owen Taylor <otaylor@redhat.com>
+
+ * glib/gmain.[ch]: Rename (private) GSource.id and
+ id parameter to g_main_context_find_source_by_id()
+ to avoid problems with Objective C where 'id' is
+ a keyword. (#65616)
+
2001-11-28 Daniel Elstner <daniel.elstner@gmx.net>
* glib/gutf8.c (utf8_skip_data): In order to avoid infinite loops
+Wed Nov 28 18:34:22 2001 Owen Taylor <otaylor@redhat.com>
+
+ * glib/gmain.[ch]: Rename (private) GSource.id and
+ id parameter to g_main_context_find_source_by_id()
+ to avoid problems with Objective C where 'id' is
+ a keyword. (#65616)
+
2001-11-28 Daniel Elstner <daniel.elstner@gmx.net>
* glib/gutf8.c (utf8_skip_data): In order to avoid infinite loops
+Wed Nov 28 18:34:22 2001 Owen Taylor <otaylor@redhat.com>
+
+ * glib/gmain.[ch]: Rename (private) GSource.id and
+ id parameter to g_main_context_find_source_by_id()
+ to avoid problems with Objective C where 'id' is
+ a keyword. (#65616)
+
2001-11-28 Daniel Elstner <daniel.elstner@gmx.net>
* glib/gutf8.c (utf8_skip_data): In order to avoid infinite loops
+Wed Nov 28 18:34:22 2001 Owen Taylor <otaylor@redhat.com>
+
+ * glib/gmain.[ch]: Rename (private) GSource.id and
+ id parameter to g_main_context_find_source_by_id()
+ to avoid problems with Objective C where 'id' is
+ a keyword. (#65616)
+
2001-11-28 Daniel Elstner <daniel.elstner@gmx.net>
* glib/gutf8.c (utf8_skip_data): In order to avoid infinite loops
+Wed Nov 28 18:50:19 2001 Owen Taylor <otaylor@redhat.com>
+
+ * glib/glib-sections.txt: Update.
+
2001-11-28 Sebastian Wilhelmi <wilhelmi@ira.uka.de>
* glib/tmpl/date.sgml: Fix g_usleep docs.
gldouble
GLIB_SIZEOF_VOID_P
GLIB_SIZEOF_LONG
+GLIB_SIZEOF_SIZE_T
</SECTION>
<SECTION>
</para>
@context:
-@id:
+@source_id:
@Returns:
+<!-- # Unused Parameters # -->
+@id:
<!-- ##### FUNCTION g_main_context_find_source_by_user_data ##### -->
g_node_traverse() and g_node_find().
</para>
-@G_PRE_ORDER: visits a node, then its children.
@G_IN_ORDER: vists a node's left child first, then the node itself, then its
right child. This is the one to use if you want the output sorted according
to the compare function.
+@G_PRE_ORDER: visits a node, then its children.
@G_POST_ORDER: visits the node's children, then the node itself.
@G_LEVEL_ORDER: is not implemented for
<link linkend="glib-Balanced-Binary-Trees">Balanced Binary Trees</link>.
including g_node_traverse() and g_node_find().
</para>
-@G_TRAVERSE_LEAFS: only leaf nodes should be visited.
+@G_TRAVERSE_LEAFS: only leaf nodes should be visited.
@G_TRAVERSE_NON_LEAFS: only non-leaf nodes should be visited.
@G_TRAVERSE_ALL: all nodes should be visited.
@G_TRAVERSE_MASK:
@parent_instance:
+<!-- ##### ENUM GTypeFundamentals ##### -->
+<para>
+The predefined identifiers of the reserved fundamental types.
+</para>
+
+@G_TYPE_INVALID: Usually a return value indicating an error.
+@G_TYPE_NONE: A synonym for the "void" type in C.
+@G_TYPE_INTERFACE: Root type of all interface types.
+@G_TYPE_CHAR: Identifier for the built-in type "gchar".
+@G_TYPE_UCHAR: Identifier for the built-in type "guchar".
+@G_TYPE_BOOLEAN: Identifier for the built-in type "gboolean".
+@G_TYPE_INT: Identifier for the built-in type "gint".
+@G_TYPE_UINT: Identifier for the built-in type "guint".
+@G_TYPE_LONG: Identifier for the built-in type "glong".
+@G_TYPE_ULONG: Identifier for the built-in type "gulong".
+@G_TYPE_INT64:
+@G_TYPE_UINT64:
+@G_TYPE_ENUM: Identifier for the "#GEnum" type.
+@G_TYPE_FLAGS: Identifier for the "#GFlags" type.
+@G_TYPE_FLOAT: Identifier for the built-in type "gfloat".
+@G_TYPE_DOUBLE: Identifier for the built-in type "gdouble".
+@G_TYPE_STRING: Identifier for a pointer to a null-terminated string "gchar*".
+@G_TYPE_POINTER: Identifier for anonymous pointers "void*".
+@G_TYPE_BOXED: Identifier for the "#GBoxed" type.
+@G_TYPE_PARAM: Identifier for the "#GParam" type.
+@G_TYPE_OBJECT: Identifier for the "#GObject" type.
+@G_TYPE_RESERVED_BSE_FIRST: First fundamental type ID reserved for BSE.
+@G_TYPE_RESERVED_BSE_LAST: Last fundamental type ID reserved for BSE.
+@G_TYPE_RESERVED_LAST_FUNDAMENTAL:
+@G_TYPE_CONSTANT_TYPES:
+@G_TYPE_CLOSURE:
+@G_TYPE_VALUE:
+@G_TYPE_VALUE_ARRAY:
+@G_TYPE_GSTRING:
+@G_TYPE_PARAM_CHAR:
+@G_TYPE_PARAM_UCHAR:
+@G_TYPE_PARAM_BOOLEAN:
+@G_TYPE_PARAM_INT:
+@G_TYPE_PARAM_UINT:
+@G_TYPE_PARAM_LONG:
+@G_TYPE_PARAM_ULONG:
+@G_TYPE_PARAM_INT64:
+@G_TYPE_PARAM_UINT64:
+@G_TYPE_PARAM_UNICHAR:
+@G_TYPE_PARAM_ENUM:
+@G_TYPE_PARAM_FLAGS:
+@G_TYPE_PARAM_FLOAT:
+@G_TYPE_PARAM_DOUBLE:
+@G_TYPE_PARAM_STRING:
+@G_TYPE_PARAM_PARAM:
+@G_TYPE_PARAM_BOXED:
+@G_TYPE_PARAM_POINTER:
+@G_TYPE_PARAM_VALUE_ARRAY:
+@G_TYPE_PARAM_CLOSURE:
+@G_TYPE_PARAM_OBJECT:
+
<!-- ##### MACRO G_IS_PARAM_SPEC_CLOSURE ##### -->
<para>
@type: A #GType value.
-<!-- ##### ENUM GTypeFundamentals ##### -->
-<para>
-The predefined identifiers of the reserved fundamental types.
-</para>
-
-@G_TYPE_INVALID: Usually a return value indicating an error.
-@G_TYPE_NONE: A synonym for the "void" type in C.
-@G_TYPE_INTERFACE: Root type of all interface types.
-@G_TYPE_CHAR: Identifier for the built-in type "gchar".
-@G_TYPE_UCHAR: Identifier for the built-in type "guchar".
-@G_TYPE_BOOLEAN: Identifier for the built-in type "gboolean".
-@G_TYPE_INT: Identifier for the built-in type "gint".
-@G_TYPE_UINT: Identifier for the built-in type "guint".
-@G_TYPE_LONG: Identifier for the built-in type "glong".
-@G_TYPE_ULONG: Identifier for the built-in type "gulong".
-@G_TYPE_INT64:
-@G_TYPE_UINT64:
-@G_TYPE_ENUM: Identifier for the "#GEnum" type.
-@G_TYPE_FLAGS: Identifier for the "#GFlags" type.
-@G_TYPE_FLOAT: Identifier for the built-in type "gfloat".
-@G_TYPE_DOUBLE: Identifier for the built-in type "gdouble".
-@G_TYPE_STRING: Identifier for a pointer to a null-terminated string "gchar*".
-@G_TYPE_POINTER: Identifier for anonymous pointers "void*".
-@G_TYPE_BOXED: Identifier for the "#GBoxed" type.
-@G_TYPE_PARAM: Identifier for the "#GParam" type.
-@G_TYPE_OBJECT: Identifier for the "#GObject" type.
-@G_TYPE_RESERVED_BSE_FIRST: First fundamental type ID reserved for BSE.
-@G_TYPE_RESERVED_BSE_LAST: Last fundamental type ID reserved for BSE.
-@G_TYPE_RESERVED_LAST_FUNDAMENTAL:
-@G_TYPE_CONSTANT_TYPES:
-@G_TYPE_CLOSURE:
-@G_TYPE_VALUE:
-@G_TYPE_VALUE_ARRAY:
-@G_TYPE_GSTRING:
-@G_TYPE_PARAM_CHAR:
-@G_TYPE_PARAM_UCHAR:
-@G_TYPE_PARAM_BOOLEAN:
-@G_TYPE_PARAM_INT:
-@G_TYPE_PARAM_UINT:
-@G_TYPE_PARAM_LONG:
-@G_TYPE_PARAM_ULONG:
-@G_TYPE_PARAM_INT64:
-@G_TYPE_PARAM_UINT64:
-@G_TYPE_PARAM_UNICHAR:
-@G_TYPE_PARAM_ENUM:
-@G_TYPE_PARAM_FLAGS:
-@G_TYPE_PARAM_FLOAT:
-@G_TYPE_PARAM_DOUBLE:
-@G_TYPE_PARAM_STRING:
-@G_TYPE_PARAM_PARAM:
-@G_TYPE_PARAM_BOXED:
-@G_TYPE_PARAM_POINTER:
-@G_TYPE_PARAM_VALUE_ARRAY:
-@G_TYPE_PARAM_CLOSURE:
-@G_TYPE_PARAM_OBJECT:
-
<!-- ##### STRUCT GTypeInterface ##### -->
<para>
An opaque structure used as the base of all interface types.
LOCK_CONTEXT (context);
source->context = context;
- result = source->id = context->next_id++;
+ result = source->source_id = context->next_id++;
source->ref_count++;
g_source_list_add (source, context);
g_return_val_if_fail (source->context != NULL, 0);
LOCK_CONTEXT (source->context);
- result = source->id;
+ result = source->source_id;
UNLOCK_CONTEXT (source->context);
return result;
/**
* g_main_context_find_source_by_id:
* @context: a #GMainContext (if %NULL, the default context will be used)
- * @id: the source ID, as returned by g_source_get_id()
+ * @source_id: the source ID, as returned by g_source_get_id()
*
* Finds a #GSource given a pair of context and ID
*
**/
GSource *
g_main_context_find_source_by_id (GMainContext *context,
- guint id)
+ guint source_id)
{
GSource *source;
- g_return_val_if_fail (id > 0, FALSE);
+ g_return_val_if_fail (source_id > 0, FALSE);
if (context == NULL)
context = g_main_context_default ();
while (source)
{
if (!SOURCE_DESTROYED (source) &&
- source->id == id)
+ source->source_id == source_id)
break;
source = source->next;
}
gint priority;
guint flags;
- guint id;
+ guint source_id;
GSList *poll_fds;
/* For implementation of legacy interfaces
*/
GSource *g_main_context_find_source_by_id (GMainContext *context,
- guint id);
+ guint source_id);
GSource *g_main_context_find_source_by_user_data (GMainContext *context,
gpointer user_data);
GSource *g_main_context_find_source_by_funcs_user_data (GMainContext *context,