[vala] gtk+-3.0: Update to 3.21.3+25fed034
- From: Rico Tzschichholz <ricotz src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [vala] gtk+-3.0: Update to 3.21.3+25fed034
- Date: Fri, 8 Jul 2016 13:51:58 +0000 (UTC)
commit 62a23d0fb82e3f30e1d349ecda2c50bf7e6af139
Author: Rico Tzschichholz <ricotz ubuntu com>
Date: Fri Jul 8 15:50:06 2016 +0200
gtk+-3.0: Update to 3.21.3+25fed034
vapi/gtk+-3.0.vapi | 22 +++++++
vapi/packages/gtk+-3.0/gtk+-3.0.gi | 95 +++++++++++++++++++++++++++++-
vapi/packages/gtk+-3.0/gtk+-3.0.metadata | 7 ++
3 files changed, 121 insertions(+), 3 deletions(-)
---
diff --git a/vapi/gtk+-3.0.vapi b/vapi/gtk+-3.0.vapi
index 83298fe..80c0712 100644
--- a/vapi/gtk+-3.0.vapi
+++ b/vapi/gtk+-3.0.vapi
@@ -2130,11 +2130,15 @@ namespace Gtk {
public void add_pattern (string pattern);
public void add_pixbuf_formats ();
public bool filter (Gtk.FileFilterInfo filter_info);
+ [CCode (has_construct_function = false)]
+ public FileFilter.from_gvariant (GLib.Variant variant);
[CCode (cname = "gtk_file_filter_get_name")]
public unowned string? get_filter_name ();
public Gtk.FileFilterFlags get_needed ();
[CCode (cname = "gtk_file_filter_set_name")]
public void set_filter_name (string? name);
+ [CCode (returns_floating_reference = true)]
+ public GLib.Variant to_gvariant ();
}
[CCode (cheader_filename = "gtk/gtk.h")]
[Compact]
@@ -3684,6 +3688,8 @@ namespace Gtk {
[CCode (has_construct_function = false)]
public PageSetup.from_file (string file_name) throws GLib.Error;
[CCode (has_construct_function = false)]
+ public PageSetup.from_gvariant (GLib.Variant variant);
+ [CCode (has_construct_function = false)]
public PageSetup.from_key_file (GLib.KeyFile key_file, string? group_name) throws GLib.Error;
public double get_bottom_margin (Gtk.Unit unit);
public double get_left_margin (Gtk.Unit unit);
@@ -3705,6 +3711,8 @@ namespace Gtk {
public void set_right_margin (double margin, Gtk.Unit unit);
public void set_top_margin (double margin, Gtk.Unit unit);
public bool to_file (string file_name) throws GLib.Error;
+ [CCode (returns_floating_reference = true)]
+ public GLib.Variant to_gvariant ();
public void to_key_file (GLib.KeyFile key_file, string group_name);
}
[CCode (cheader_filename = "gtk/gtk.h", type_id = "gtk_paned_get_type ()")]
@@ -3751,6 +3759,8 @@ namespace Gtk {
[CCode (has_construct_function = false)]
public PaperSize.custom (string name, string display_name, double width, double height,
Gtk.Unit unit);
[CCode (has_construct_function = false)]
+ public PaperSize.from_gvariant (GLib.Variant variant);
+ [CCode (has_construct_function = false)]
public PaperSize.from_ipp (string ipp_name, double width, double height);
[CCode (has_construct_function = false)]
public PaperSize.from_key_file (GLib.KeyFile key_file, string group_name) throws GLib.Error;
@@ -3771,6 +3781,8 @@ namespace Gtk {
public bool is_equal (Gtk.PaperSize size2);
public bool is_ipp ();
public void set_size (double width, double height, Gtk.Unit unit);
+ [CCode (returns_floating_reference = true)]
+ public GLib.Variant to_gvariant ();
public void to_key_file (GLib.KeyFile key_file, string group_name);
}
[CCode (cheader_filename = "gtk/gtk.h", type_id = "gtk_places_sidebar_get_type ()")]
@@ -3978,6 +3990,8 @@ namespace Gtk {
[CCode (has_construct_function = false)]
public PrintSettings.from_file (string file_name) throws GLib.Error;
[CCode (has_construct_function = false)]
+ public PrintSettings.from_gvariant (GLib.Variant variant);
+ [CCode (has_construct_function = false)]
public PrintSettings.from_key_file (GLib.KeyFile key_file, string? group_name) throws
GLib.Error;
public unowned string @get (string key);
public bool get_bool (string key);
@@ -4046,6 +4060,8 @@ namespace Gtk {
public void set_scale (double scale);
public void set_use_color (bool use_color);
public bool to_file (string file_name) throws GLib.Error;
+ [CCode (returns_floating_reference = true)]
+ public GLib.Variant to_gvariant ();
public void to_key_file (GLib.KeyFile key_file, string group_name);
public void unset (string key);
}
@@ -7344,10 +7360,12 @@ namespace Gtk {
}
[CCode (cheader_filename = "gtk/gtk.h")]
public interface FileChooser : GLib.Object {
+ public void add_choice (string id, string label, string[]? options, string[]? option_labels);
public void add_filter (owned Gtk.FileFilter filter);
public bool add_shortcut_folder (string folder) throws GLib.Error;
public bool add_shortcut_folder_uri (string uri) throws GLib.Error;
public Gtk.FileChooserAction get_action ();
+ public unowned string get_choice (string id);
public bool get_create_folders ();
public string get_current_folder ();
public GLib.File get_current_folder_file ();
@@ -7374,6 +7392,7 @@ namespace Gtk {
public GLib.SList<weak Gtk.FileFilter> list_filters ();
public GLib.SList<string>? list_shortcut_folder_uris ();
public GLib.SList<string>? list_shortcut_folders ();
+ public void remove_choice (string id);
public void remove_filter (Gtk.FileFilter filter);
public bool remove_shortcut_folder (string folder) throws GLib.Error;
public bool remove_shortcut_folder_uri (string uri) throws GLib.Error;
@@ -7382,6 +7401,7 @@ namespace Gtk {
public bool select_filename (string filename);
public bool select_uri (string uri);
public void set_action (Gtk.FileChooserAction action);
+ public void set_choice (string id, string option);
public void set_create_folders (bool create_folders);
public bool set_current_folder (string filename);
public bool set_current_folder_file (GLib.File file) throws GLib.Error;
@@ -10022,6 +10042,8 @@ namespace Gtk {
[CCode (cheader_filename = "gtk/gtk.h")]
public static bool show_uri (Gdk.Screen? screen, string uri, uint32 timestamp) throws GLib.Error;
[CCode (cheader_filename = "gtk/gtk.h")]
+ public static bool show_uri_on_window (Gtk.Window? parent, string uri, uint32 timestamp) throws
GLib.Error;
+ [CCode (cheader_filename = "gtk/gtk.h")]
[Version (deprecated_since = "vala-0.12", replacement = "Gtk.Stock.add")]
public static void stock_add (Gtk.StockItem[] items);
[CCode (cheader_filename = "gtk/gtk.h")]
diff --git a/vapi/packages/gtk+-3.0/gtk+-3.0.gi b/vapi/packages/gtk+-3.0/gtk+-3.0.gi
index 2ee8b90..a4f0c3e 100644
--- a/vapi/packages/gtk+-3.0/gtk+-3.0.gi
+++ b/vapi/packages/gtk+-3.0/gtk+-3.0.gi
@@ -1376,6 +1376,15 @@
<parameter name="error" type="GError**"/>
</parameters>
</function>
+ <function name="show_uri_on_window" symbol="gtk_show_uri_on_window">
+ <return-type type="gboolean"/>
+ <parameters>
+ <parameter name="parent" type="GtkWindow*"/>
+ <parameter name="uri" type="char*"/>
+ <parameter name="timestamp" type="guint32"/>
+ <parameter name="error" type="GError**"/>
+ </parameters>
+ </function>
<function name="target_table_free" symbol="gtk_target_table_free">
<return-type type="void"/>
<parameters>
@@ -2925,6 +2934,12 @@
<parameter name="unit" type="GtkUnit"/>
</parameters>
</constructor>
+ <constructor name="new_from_gvariant" symbol="gtk_paper_size_new_from_gvariant">
+ <return-type type="GtkPaperSize*"/>
+ <parameters>
+ <parameter name="variant" type="GVariant*"/>
+ </parameters>
+ </constructor>
<constructor name="new_from_ipp" symbol="gtk_paper_size_new_from_ipp">
<return-type type="GtkPaperSize*"/>
<parameters>
@@ -2959,6 +2974,12 @@
<parameter name="unit" type="GtkUnit"/>
</parameters>
</method>
+ <method name="to_gvariant" symbol="gtk_paper_size_to_gvariant">
+ <return-type type="GVariant*"/>
+ <parameters>
+ <parameter name="size" type="GtkPaperSize*"/>
+ </parameters>
+ </method>
<method name="to_key_file" symbol="gtk_paper_size_to_key_file">
<return-type type="void"/>
<parameters>
@@ -13096,6 +13117,12 @@
<constructor name="new" symbol="gtk_file_filter_new">
<return-type type="GtkFileFilter*"/>
</constructor>
+ <constructor name="new_from_gvariant" symbol="gtk_file_filter_new_from_gvariant">
+ <return-type type="GtkFileFilter*"/>
+ <parameters>
+ <parameter name="variant" type="GVariant*"/>
+ </parameters>
+ </constructor>
<method name="set_name" symbol="gtk_file_filter_set_name">
<return-type type="void"/>
<parameters>
@@ -13103,6 +13130,12 @@
<parameter name="name" type="gchar*"/>
</parameters>
</method>
+ <method name="to_gvariant" symbol="gtk_file_filter_to_gvariant">
+ <return-type type="GVariant*"/>
+ <parameters>
+ <parameter name="filter" type="GtkFileFilter*"/>
+ </parameters>
+ </method>
</object>
<object name="GtkFixed" parent="GtkContainer" type-name="GtkFixed"
get-type="gtk_fixed_get_type">
<implements>
@@ -19557,6 +19590,12 @@
<parameter name="error" type="GError**"/>
</parameters>
</constructor>
+ <constructor name="new_from_gvariant" symbol="gtk_page_setup_new_from_gvariant">
+ <return-type type="GtkPageSetup*"/>
+ <parameters>
+ <parameter name="variant" type="GVariant*"/>
+ </parameters>
+ </constructor>
<constructor name="new_from_key_file" symbol="gtk_page_setup_new_from_key_file">
<return-type type="GtkPageSetup*"/>
<parameters>
@@ -19626,6 +19665,12 @@
<parameter name="error" type="GError**"/>
</parameters>
</method>
+ <method name="to_gvariant" symbol="gtk_page_setup_to_gvariant">
+ <return-type type="GVariant*"/>
+ <parameters>
+ <parameter name="setup" type="GtkPageSetup*"/>
+ </parameters>
+ </method>
<method name="to_key_file" symbol="gtk_page_setup_to_key_file">
<return-type type="void"/>
<parameters>
@@ -20883,6 +20928,12 @@
<parameter name="error" type="GError**"/>
</parameters>
</constructor>
+ <constructor name="new_from_gvariant" symbol="gtk_print_settings_new_from_gvariant">
+ <return-type type="GtkPrintSettings*"/>
+ <parameters>
+ <parameter name="variant" type="GVariant*"/>
+ </parameters>
+ </constructor>
<constructor name="new_from_key_file" symbol="gtk_print_settings_new_from_key_file">
<return-type type="GtkPrintSettings*"/>
<parameters>
@@ -21119,6 +21170,12 @@
<parameter name="error" type="GError**"/>
</parameters>
</method>
+ <method name="to_gvariant" symbol="gtk_print_settings_to_gvariant">
+ <return-type type="GVariant*"/>
+ <parameters>
+ <parameter name="settings" type="GtkPrintSettings*"/>
+ </parameters>
+ </method>
<method name="to_key_file" symbol="gtk_print_settings_to_key_file">
<return-type type="void"/>
<parameters>
@@ -34472,6 +34529,16 @@
<requires>
<interface name="GObject"/>
</requires>
+ <method name="add_choice" symbol="gtk_file_chooser_add_choice">
+ <return-type type="void"/>
+ <parameters>
+ <parameter name="chooser" type="GtkFileChooser*"/>
+ <parameter name="id" type="char*"/>
+ <parameter name="label" type="char*"/>
+ <parameter name="options" type="char**"/>
+ <parameter name="option_labels" type="char**"/>
+ </parameters>
+ </method>
<method name="add_filter" symbol="gtk_file_chooser_add_filter">
<return-type type="void"/>
<parameters>
@@ -34504,6 +34571,13 @@
<parameter name="chooser" type="GtkFileChooser*"/>
</parameters>
</method>
+ <method name="get_choice" symbol="gtk_file_chooser_get_choice">
+ <return-type type="char*"/>
+ <parameters>
+ <parameter name="chooser" type="GtkFileChooser*"/>
+ <parameter name="id" type="char*"/>
+ </parameters>
+ </method>
<method name="get_create_folders" symbol="gtk_file_chooser_get_create_folders">
<return-type type="gboolean"/>
<parameters>
@@ -34660,6 +34734,13 @@
<parameter name="chooser" type="GtkFileChooser*"/>
</parameters>
</method>
+ <method name="remove_choice" symbol="gtk_file_chooser_remove_choice">
+ <return-type type="void"/>
+ <parameters>
+ <parameter name="chooser" type="GtkFileChooser*"/>
+ <parameter name="id" type="char*"/>
+ </parameters>
+ </method>
<method name="remove_filter" symbol="gtk_file_chooser_remove_filter">
<return-type type="void"/>
<parameters>
@@ -34718,6 +34799,14 @@
<parameter name="action" type="GtkFileChooserAction"/>
</parameters>
</method>
+ <method name="set_choice" symbol="gtk_file_chooser_set_choice">
+ <return-type type="void"/>
+ <parameters>
+ <parameter name="chooser" type="GtkFileChooser*"/>
+ <parameter name="id" type="char*"/>
+ <parameter name="option" type="char*"/>
+ </parameters>
+ </method>
<method name="set_create_folders" symbol="gtk_file_chooser_set_create_folders">
<return-type type="void"/>
<parameters>
@@ -36231,15 +36320,15 @@
</parameters>
</vfunc>
</interface>
- <constant name="GTK_BINARY_AGE" type="int" value="2102"/>
+ <constant name="GTK_BINARY_AGE" type="int" value="2103"/>
<constant name="GTK_INPUT_ERROR" type="int" value="-1"/>
- <constant name="GTK_INTERFACE_AGE" type="int" value="2"/>
+ <constant name="GTK_INTERFACE_AGE" type="int" value="0"/>
<constant name="GTK_LEVEL_BAR_OFFSET_FULL" type="char*" value="full"/>
<constant name="GTK_LEVEL_BAR_OFFSET_HIGH" type="char*" value="high"/>
<constant name="GTK_LEVEL_BAR_OFFSET_LOW" type="char*" value="low"/>
<constant name="GTK_MAJOR_VERSION" type="int" value="3"/>
<constant name="GTK_MAX_COMPOSE_LEN" type="int" value="7"/>
- <constant name="GTK_MICRO_VERSION" type="int" value="2"/>
+ <constant name="GTK_MICRO_VERSION" type="int" value="3"/>
<constant name="GTK_MINOR_VERSION" type="int" value="21"/>
<constant name="GTK_PAPER_NAME_A3" type="char*" value="iso_a3"/>
<constant name="GTK_PAPER_NAME_A4" type="char*" value="iso_a4"/>
diff --git a/vapi/packages/gtk+-3.0/gtk+-3.0.metadata b/vapi/packages/gtk+-3.0/gtk+-3.0.metadata
index 247dc23..0b4d202 100644
--- a/vapi/packages/gtk+-3.0/gtk+-3.0.metadata
+++ b/vapi/packages/gtk+-3.0/gtk+-3.0.metadata
@@ -445,6 +445,8 @@ gtk_expander_get_label nullable="1"
gtk_expander_set_label.label nullable="1"
gtk_expander_set_label_widget.label_widget nullable="1"
gtk_false hidden="1"
+gtk_file_chooser_add_choice.options is_array="1" is_out="0" nullable="1"
+gtk_file_chooser_add_choice.option_labels is_array="1" is_out="0" nullable="1"
gtk_file_chooser_add_filter.filter transfer_ownership="1"
gtk_file_chooser_get_current_folder transfer_ownership="1"
gtk_file_chooser_get_current_folder_file transfer_ownership="1"
@@ -475,6 +477,7 @@ gtk_file_filter_add_custom.notify hidden="1"
gtk_file_filter_set_name.name nullable="1"
gtk_file_filter_set_name name="set_filter_name"
gtk_file_filter_get_name name="get_filter_name" nullable="1"
+gtk_file_filter_to_gvariant returns_floating_reference="1"
gtk_file_chooser_list_filters transfer_ownership="1" type_arguments="unowned FileFilter"
gtk_file_chooser_list_shortcut_folder_uris nullable="1" transfer_ownership="1" type_arguments="string"
gtk_file_chooser_list_shortcut_folders nullable="1" transfer_ownership="1" type_arguments="string"
@@ -899,6 +902,7 @@ GtkOverlay::get_child_position.allocation is_out="1"
gtk_page_setup_copy transfer_ownership="1"
gtk_page_setup_new_from_key_file.group_name nullable="1"
gtk_page_setup_load_key_file.group_name nullable="1"
+gtk_page_setup_to_gvariant returns_floating_reference="1"
gtk_paper_size_new.name nullable="1"
gtk_paper_size_set_location.location nullable="1"
GtkPageRange is_value_type="1"
@@ -976,6 +980,7 @@ gtk_paned_get_child1 nullable="1"
gtk_paned_get_child2 nullable="1"
gtk_paper_size_copy transfer_ownership="1"
gtk_paper_size_get_paper_sizes transfer_ownership="1" type_arguments="PaperSize"
+gtk_paper_size_to_gvariant returns_floating_reference="1"
gtk_parse_args.argc hidden="1"
gtk_parse_args.argv is_array="1" is_ref="1" transfer_ownership="0" array_length_cname="argc"
array_length_pos="0.5"
gtk_places_sidebar_get_location transfer_ownership="1" nullable="1"
@@ -1028,6 +1033,7 @@ gtk_print_settings_load_key_file.group_name nullable="1"
gtk_print_settings_set.value nullable="1"
gtk_print_settings_set_page_ranges.page_ranges is_array="1" array_length_pos="1.1"
array_length_cname="num_ranges"
gtk_print_settings_set_page_ranges.num_ranges hidden="1"
+gtk_print_settings_to_gvariant returns_floating_reference="1"
gtk_printer_accepts_pdf hidden="1" experimental="1"
gtk_printer_accepts_ps hidden="1" experimental="1"
gtk_printer_is_virtual hidden="1" experimental="1"
@@ -1184,6 +1190,7 @@ GtkShortcuts*Class hidden="1"
gtk_show_about_dialog ellipsis="1"
gtk_show_about_dialog.parent nullable="1"
gtk_show_uri.screen nullable="1"
+gtk_show_uri_on_window.parent nullable="1"
gtk_size_group_get_widgets type_arguments="Widget"
gtk_socket_get_plug_window nullable="1"
GtkSpinButton::input.new_value type_name="double" is_out="1"
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]