gtk.cfg: Add some missing macro/function configurations (#2619)

Found by daca@home
This commit is contained in:
Sebastian 2020-04-23 14:09:09 +02:00 committed by GitHub
parent 2a09465a07
commit ff88bf1080
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 22 additions and 0 deletions

View File

@ -96,6 +96,7 @@
<define name="g_try_new(struct_type, n_structs)" value="_G_NEW (struct_type, n_structs, try_malloc)"/>
<define name="g_try_new0(struct_type, n_structs)" value="_G_NEW (struct_type, n_structs, try_malloc0)"/>
<define name="g_try_renew(struct_type, mem, n_structs)" value="_G_RENEW (struct_type, mem, n_structs, try_realloc)"/>
<define name="GTK_BUTTON(obj)" value="((GtkButton*)(obj))"/>
<define name="GTK_BOX(obj)" value="((GtkBox*)(obj))"/>
<define name="GTK_CONTAINER(obj)" value="((GtkContainer*)(obj))"/>
<define name="GTK_ENTRY(obj)" value="((GtkEntry*)(obj))"/>
@ -106,6 +107,7 @@
<define name="GTK_MISC(obj)" value="((GtkMisc*)(obj))"/>
<define name="GTK_NOTEBOOK(obj)" value="((GtkNotebook*)(obj))"/>
<define name="GTK_TABLE(obj)" value="((GtkTable*)(obj))"/>
<define name="GTK_TEXT_VIEW(obj)" value="((GtkTextView*)(obj))"/>
<define name="GTK_SPIN_BUTTON(obj)" value="((GtkSpinButton*)(obj))"/>
<define name="GTK_TREE_VIEW(obj)" value="((GtkTreeView*)(obj))"/>
<define name="GTK_TREE_MODEL(obj)" value="((GtkTreeModel*)(obj))"/>
@ -7013,6 +7015,26 @@
<not-bool/>
</arg>
</function>
<!-- gpointer g_type_class_peek (GType type); -->
<!-- gpointer g_type_class_peek_static (GType type); -->
<function name="g_type_class_peek,g_type_class_peek_static">
<noreturn>false</noreturn>
<returnValue type="gpointer"/>
<use-retval/>
<arg nr="1" direction="in">
<not-uninit/>
</arg>
</function>
<!-- gpointer g_type_class_peek_parent (gpointer g_class); -->
<function name="g_type_class_peek_parent">
<noreturn>false</noreturn>
<returnValue type="gpointer"/>
<use-retval/>
<arg nr="1" direction="in">
<not-uninit/>
<not-null/>
</arg>
</function>
<!-- GLIB_AVAILABLE_IN_ALL gpointer g_type_instance_get_private (GTypeInstance *instance, GType private_type); -->
<function name="g_type_instance_get_private">
<noreturn>false</noreturn>