gtk.cfg: Add/fix function configurations

daca@home reported a missing noreturn configuration for most of these
functions.
This commit is contained in:
versat 2019-08-01 13:44:53 +02:00
parent 2a17b897c5
commit 64b4ed5b13
1 changed files with 95 additions and 0 deletions

View File

@ -815,8 +815,19 @@
<function name="g_exit"> <function name="g_exit">
<noreturn>true</noreturn> <noreturn>true</noreturn>
</function> </function>
<!-- gboolean g_hash_table_insert (GHashTable *hash_table, gpointer key, gpointer value); -->
<function name="g_hash_table_insert"> <function name="g_hash_table_insert">
<noreturn>false</noreturn> <noreturn>false</noreturn>
<arg nr="1" direction="inout">
<not-uninit/>
</arg>
<arg nr="2">
<not-uninit/>
</arg>
<arg nr="3">
<not-uninit/>
<not-bool/>
</arg>
</function> </function>
<function name="g_hash_table_replace"> <function name="g_hash_table_replace">
<noreturn>false</noreturn> <noreturn>false</noreturn>
@ -3234,9 +3245,15 @@
<not-uninit/> <not-uninit/>
</arg> </arg>
</function> </function>
<!-- gboolean g_source_remove (guint tag); -->
<function name="g_source_remove"> <function name="g_source_remove">
<leak-ignore/> <leak-ignore/>
<noreturn>false</noreturn> <noreturn>false</noreturn>
<returnValue type="gboolean"/>
<arg nr="1" direction="in">
<not-uninit/>
<not-bool/>
</arg>
</function> </function>
<function name="g_source_remove_by_funcs_user_data"> <function name="g_source_remove_by_funcs_user_data">
<leak-ignore/> <leak-ignore/>
@ -6174,6 +6191,19 @@
<arg nr="1" direction="in"/> <arg nr="1" direction="in"/>
<arg nr="2" direction="in"/> <arg nr="2" direction="in"/>
</function> </function>
<!-- void g_type_class_add_private (gpointer g_class, gsize private_size); -->
<function name="g_type_class_add_private">
<noreturn>false</noreturn>
<returnValue type="void"/>
<warn severity="style">g_type_class_add_private has been deprecated since version 2.58 and should not be used in newly-written code. Use the G_ADD_PRIVATE() macro with the G_DEFINE_* family of macros to add instance private data to a type.</warn>
<arg nr="1">
<not-uninit/>
</arg>
<arg nr="2" direction="in">
<not-uninit/>
<not-bool/>
</arg>
</function>
<!-- GLIB_AVAILABLE_IN_ALL gpointer g_type_instance_get_private (GTypeInstance *instance, GType private_type); --> <!-- GLIB_AVAILABLE_IN_ALL gpointer g_type_instance_get_private (GTypeInstance *instance, GType private_type); -->
<function name="g_type_instance_get_private"> <function name="g_type_instance_get_private">
<noreturn>false</noreturn> <noreturn>false</noreturn>
@ -10839,9 +10869,20 @@
<leak-ignore/> <leak-ignore/>
<noreturn>false</noreturn> <noreturn>false</noreturn>
</function> </function>
<!-- void gtk_entry_set_text (GtkEntry *entry, const gchar *text); -->
<function name="gtk_entry_set_text"> <function name="gtk_entry_set_text">
<leak-ignore/> <leak-ignore/>
<noreturn>false</noreturn> <noreturn>false</noreturn>
<returnValue type="void"/>
<arg nr="1" direction="inout">
<not-null/>
<not-uninit/>
</arg>
<arg nr="2" direction="in">
<not-uninit/>
<not-bool/>
<strz/>
</arg>
</function> </function>
<function name="gtk_entry_set_visibility"> <function name="gtk_entry_set_visibility">
<leak-ignore/> <leak-ignore/>
@ -12550,9 +12591,20 @@
<leak-ignore/> <leak-ignore/>
<noreturn>false</noreturn> <noreturn>false</noreturn>
</function> </function>
<!-- void gtk_label_set_text (GtkLabel *label, const gchar *str); -->
<function name="gtk_label_set_text"> <function name="gtk_label_set_text">
<leak-ignore/> <leak-ignore/>
<noreturn>false</noreturn> <noreturn>false</noreturn>
<returnValue type="void"/>
<arg nr="1" direction="inout">
<not-null/>
<not-uninit/>
</arg>
<arg nr="2" direction="in">
<not-uninit/>
<not-bool/>
<strz/>
</arg>
</function> </function>
<function name="gtk_label_set_text_with_mnemonic"> <function name="gtk_label_set_text_with_mnemonic">
<leak-ignore/> <leak-ignore/>
@ -16666,9 +16718,16 @@
<leak-ignore/> <leak-ignore/>
<noreturn>false</noreturn> <noreturn>false</noreturn>
</function> </function>
<!-- gboolean gtk_toggle_button_get_active (GtkToggleButton *toggle_button); -->
<function name="gtk_toggle_button_get_active"> <function name="gtk_toggle_button_get_active">
<leak-ignore/> <leak-ignore/>
<noreturn>false</noreturn> <noreturn>false</noreturn>
<returnValue type="gboolean"/>
<use-retval/>
<arg nr="1">
<not-null/>
<not-uninit/>
</arg>
</function> </function>
<function name="gtk_toggle_button_get_inconsistent"> <function name="gtk_toggle_button_get_inconsistent">
<leak-ignore/> <leak-ignore/>
@ -16678,9 +16737,18 @@
<leak-ignore/> <leak-ignore/>
<noreturn>false</noreturn> <noreturn>false</noreturn>
</function> </function>
<!-- void gtk_toggle_button_set_active (GtkToggleButton *toggle_button, gboolean is_active); -->
<function name="gtk_toggle_button_set_active"> <function name="gtk_toggle_button_set_active">
<leak-ignore/> <leak-ignore/>
<noreturn>false</noreturn> <noreturn>false</noreturn>
<returnValue type="void"/>
<arg nr="1">
<not-null/>
<not-uninit/>
</arg>
<arg nr="2" direction="in">
<not-uninit/>
</arg>
</function> </function>
<function name="gtk_toggle_button_set_inconsistent"> <function name="gtk_toggle_button_set_inconsistent">
<leak-ignore/> <leak-ignore/>
@ -17446,9 +17514,15 @@
<leak-ignore/> <leak-ignore/>
<noreturn>false</noreturn> <noreturn>false</noreturn>
</function> </function>
<!-- void gtk_tree_path_free (GtkTreePath *path); -->
<function name="gtk_tree_path_free"> <function name="gtk_tree_path_free">
<leak-ignore/> <leak-ignore/>
<noreturn>false</noreturn> <noreturn>false</noreturn>
<returnValue type="void"/>
<arg nr="1">
<not-uninit/>
<not-bool/>
</arg>
</function> </function>
<function name="gtk_tree_path_get_depth"> <function name="gtk_tree_path_get_depth">
<leak-ignore/> <leak-ignore/>
@ -19472,6 +19546,27 @@
<not-bool/> <not-bool/>
</arg> </arg>
</function> </function>
<!-- void g_signal_emit (gpointer instance,
guint signal_id,
GQuark detail,
...); -->
<function name="g_signal_emit">
<noreturn>false</noreturn>
<returnValue type="void"/>
<leak-ignore/>
<arg nr="1">
<not-uninit/>
</arg>
<arg nr="2" direction="in">
<not-uninit/>
</arg>
<arg nr="3">
<not-uninit/>
</arg>
<arg nr="variadic">
<not-uninit/>
</arg>
</function>
<define name="gchar" value="char"/> <define name="gchar" value="char"/>
<define name="guchar" value="unsigned char"/> <define name="guchar" value="unsigned char"/>
<define name="gint" value="int"/> <define name="gint" value="int"/>