Merge pull request #145 from awittaker/GtkApplication_string_array_fixes

Change Gtk.Application action/accel related calls to use string[]
This commit is contained in:
Harry 2020-04-03 04:14:01 +02:00 committed by GitHub
commit 0fb659c2bf
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 5 additions and 2 deletions

View File

@ -5408,7 +5408,7 @@
</parameters>
</method>
<method name="GetAccelsForAction" cname="gtk_application_get_accels_for_action">
<return-type type="gchar**" />
<return-type type="const-gchar**" />
<parameters>
<parameter type="const-gchar*" name="detailed_action_name" />
</parameters>
@ -5489,7 +5489,7 @@
<return-type type="void" />
<parameters>
<parameter type="const-gchar*" name="detailed_action_name" />
<parameter type="const-gchar*" name="accels" />
<parameter type="const-gchar**" name="accels" />
</parameters>
</method>
<method name="SetAppMenu" cname="gtk_application_set_app_menu">

View File

@ -251,6 +251,9 @@
<attr path="/api/namespace/object[@cname='GtkAdjustment']/method[@name='Changed']" name="name">Change</attr>
<attr path="/api/namespace/object[@cname='GtkAdjustment']/method[@name='ValueChanged']" name="name">ChangeValue</attr>
<attr path="/api/namespace/object[@cname='GtkApplication']/method[@name='GetWindows']/return-type" name="element_type">GtkWindow*</attr>
<attr path="/api/namespace/object[@cname='GtkApplication']/method[@name='SetAccelsForAction']/*/*[@name='accels']" name="null_term_array">1</attr>
<attr path="/api/namespace/object[@cname='GtkApplication']/method[@name='GetAccelsForAction']/return-type" name="null_term_array">1</attr>
<attr path="/api/namespace/object[@cname='GtkApplication']/method[@name='GetActionsForAccel']/return-type" name="null_term_array">1</attr>
<attr path="/api/namespace/object[@cname='GtkArrow']/method[@name='Set']" name="hidden">1</attr>
<attr path="/api/namespace/object[@cname='GtkBin']/method[@name='GetChild']" name="hidden">1</attr>
<attr path="/api/namespace/object[@cname='GtkBuilder']/constructor[@cname='gtk_builder_new_from_file']" name="hidden">1</attr>