[vala] gtk+-3.0: Update from git
- From: Rico Tzschichholz <ricotz src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [vala] gtk+-3.0: Update from git
- Date: Sat, 15 Feb 2014 08:17:01 +0000 (UTC)
commit f949b64d63e8faa1cf38c9e80bb44f9392c85113
Author: Rico Tzschichholz <ricotz ubuntu com>
Date: Sat Feb 15 09:12:48 2014 +0100
gtk+-3.0: Update from git
vapi/gtk+-3.0.vapi | 43 ++++++++++---
vapi/packages/gtk+-3.0/gtk+-3.0.gi | 121 +++++++++++++++++++++++++++++++----
2 files changed, 141 insertions(+), 23 deletions(-)
---
diff --git a/vapi/gtk+-3.0.vapi b/vapi/gtk+-3.0.vapi
index ca2d102..675d433 100644
--- a/vapi/gtk+-3.0.vapi
+++ b/vapi/gtk+-3.0.vapi
@@ -430,16 +430,13 @@ namespace Gtk {
public virtual signal void activate ();
}
[CCode (cheader_filename = "gtk/gtk.h")]
- public class ActionBar : Gtk.Container, Atk.Implementor, Gtk.Buildable {
+ public class ActionBar : Gtk.Bin, Atk.Implementor, Gtk.Buildable {
[CCode (has_construct_function = false, type = "GtkWidget*")]
public ActionBar ();
public unowned Gtk.Widget get_center_widget ();
public void pack_end (Gtk.Widget child);
public void pack_start (Gtk.Widget child);
public void set_center_widget (Gtk.Widget? center_widget);
- public Gtk.Widget center_widget { get; set construct; }
- [NoAccessorMethod]
- public int spacing { get; set; }
}
[CCode (cheader_filename = "gtk/gtk.h")]
[Deprecated (since = "3.10")]
@@ -1348,6 +1345,18 @@ namespace Gtk {
public Gtk.TreeModel model { get; set; }
}
[CCode (cheader_filename = "gtk/gtk.h")]
+ public class CenterBox : Gtk.Container, Atk.Implementor, Gtk.Buildable {
+ [CCode (has_construct_function = false, type = "GtkWidget*")]
+ public CenterBox ();
+ public unowned Gtk.Widget get_center_widget ();
+ public void pack_end (Gtk.Widget child);
+ public void pack_start (Gtk.Widget child);
+ public void set_center_widget (Gtk.Widget center_widget);
+ public Gtk.Widget center_widget { get; set construct; }
+ [NoAccessorMethod]
+ public int spacing { get; set; }
+ }
+ [CCode (cheader_filename = "gtk/gtk.h")]
public class CheckButton : Gtk.ToggleButton, Atk.Implementor, Gtk.Buildable, Gtk.Actionable,
Gtk.Activatable {
[CCode (has_construct_function = false, type = "GtkWidget*")]
public CheckButton ();
@@ -1768,6 +1777,7 @@ namespace Gtk {
public unowned Pango.Layout get_layout ();
public void get_layout_offsets (out int x, out int y);
public int get_max_length ();
+ public int get_max_width_chars ();
public bool get_overwrite_mode ();
public unowned string get_placeholder_text ();
public double get_progress_fraction ();
@@ -1806,6 +1816,7 @@ namespace Gtk {
public void set_input_purpose (Gtk.InputPurpose purpose);
public void set_invisible_char (unichar ch);
public void set_max_length (int max);
+ public void set_max_width_chars (int n_chars);
public void set_overwrite_mode (bool overwrite);
public void set_placeholder_text (string text);
public void set_progress_fraction (double fraction);
@@ -1839,6 +1850,7 @@ namespace Gtk {
[NoAccessorMethod]
public bool invisible_char_set { get; set; }
public int max_length { get; set; }
+ public int max_width_chars { get; set; }
public bool overwrite_mode { get; set; }
public string placeholder_text { get; set; }
[NoAccessorMethod]
@@ -2149,7 +2161,7 @@ namespace Gtk {
public uint row_spacing { get; set; }
public Gtk.SelectionMode selection_mode { get; set; }
public virtual signal void activate_cursor_child ();
- public virtual signal void child_activated (Gtk.Widget child);
+ public virtual signal void child_activated (Gtk.FlowBoxChild child);
public virtual signal void move_cursor (Gtk.MovementStep step, int count);
[HasEmitter]
public virtual signal void select_all ();
@@ -3147,15 +3159,21 @@ namespace Gtk {
public unowned Gtk.Widget get_align_widget ();
public Gtk.ArrowType get_direction ();
public unowned GLib.MenuModel get_menu_model ();
+ public unowned Gtk.Popover get_popover ();
public unowned Gtk.Menu get_popup ();
+ public bool get_use_popover ();
public void set_align_widget (Gtk.Widget align_widget);
public void set_direction (Gtk.ArrowType direction);
public void set_menu_model (GLib.MenuModel menu_model);
- public void set_popup (Gtk.Widget popup);
+ public void set_popover (Gtk.Widget popover);
+ public void set_popup (Gtk.Widget menu);
+ public void set_use_popover (bool use_popover);
public Gtk.Container align_widget { get; set; }
public Gtk.ArrowType direction { get; set; }
public GLib.MenuModel menu_model { get; set; }
+ public Gtk.Popover popover { get; set; }
public Gtk.Menu popup { get; set; }
+ public bool use_popover { get; set; }
}
[CCode (cheader_filename = "gtk/gtk.h")]
public class MenuButtonAccessible : Gtk.ToggleButtonAccessible, Atk.Component, Atk.Action, Atk.Image {
@@ -3576,18 +3594,21 @@ namespace Gtk {
public class Popover : Gtk.Bin, Atk.Implementor, Gtk.Buildable {
[CCode (has_construct_function = false, type = "GtkWidget*")]
public Popover (Gtk.Widget relative_to);
+ [CCode (has_construct_function = false, type = "GtkWidget*")]
+ public Popover.from_model (Gtk.Widget relative_to, GLib.MenuModel model);
public bool get_modal ();
- public bool get_pointing_to (Cairo.RectangleInt rect);
+ public bool get_pointing_to (Gdk.Rectangle rect);
public Gtk.PositionType get_position ();
public unowned Gtk.Widget get_relative_to ();
public void set_modal (bool modal);
- public void set_pointing_to (Cairo.RectangleInt rect);
+ public void set_pointing_to (Gdk.Rectangle rect);
public void set_position (Gtk.PositionType position);
public void set_relative_to (Gtk.Widget relative_to);
public bool modal { get; set; }
public Cairo.RectangleInt pointing_to { get; set; }
public Gtk.PositionType position { get; set construct; }
public Gtk.Widget relative_to { get; set; }
+ public virtual signal void closed ();
}
[CCode (cheader_filename = "gtk/gtk.h")]
public class PrintContext : GLib.Object {
@@ -6184,7 +6205,7 @@ namespace Gtk {
[CCode (has_construct_function = false, type = "GtkWidget*")]
public VolumeButton ();
[NoAccessorMethod]
- public bool use_symbolic { get; set; }
+ public bool use_symbolic { get; set construct; }
}
[CCode (cheader_filename = "gtk/gtk.h")]
public class Widget : GLib.InitiallyUnowned, Atk.Implementor, Gtk.Buildable {
@@ -8935,6 +8956,8 @@ namespace Gtk {
[CCode (cheader_filename = "gtk/gtk.h")]
public const string STYLE_CLASS_DEFAULT;
[CCode (cheader_filename = "gtk/gtk.h")]
+ public const string STYLE_CLASS_DESTRUCTIVE_ACTION;
+ [CCode (cheader_filename = "gtk/gtk.h")]
public const string STYLE_CLASS_DIM_LABEL;
[CCode (cheader_filename = "gtk/gtk.h")]
public const string STYLE_CLASS_DND;
@@ -9029,6 +9052,8 @@ namespace Gtk {
[CCode (cheader_filename = "gtk/gtk.h")]
public const string STYLE_CLASS_SPINNER;
[CCode (cheader_filename = "gtk/gtk.h")]
+ public const string STYLE_CLASS_SUGGESTED_ACTION;
+ [CCode (cheader_filename = "gtk/gtk.h")]
public const string STYLE_CLASS_TITLEBAR;
[CCode (cheader_filename = "gtk/gtk.h")]
public const string STYLE_CLASS_TOOLBAR;
diff --git a/vapi/packages/gtk+-3.0/gtk+-3.0.gi b/vapi/packages/gtk+-3.0/gtk+-3.0.gi
index 15e439a..3cc65a7 100644
--- a/vapi/packages/gtk+-3.0/gtk+-3.0.gi
+++ b/vapi/packages/gtk+-3.0/gtk+-3.0.gi
@@ -6232,7 +6232,7 @@
</parameters>
</vfunc>
</object>
- <object name="GtkActionBar" parent="GtkContainer" type-name="GtkActionBar"
get-type="gtk_action_bar_get_type">
+ <object name="GtkActionBar" parent="GtkBin" type-name="GtkActionBar"
get-type="gtk_action_bar_get_type">
<implements>
<interface name="AtkImplementor"/>
<interface name="GtkBuildable"/>
@@ -6240,7 +6240,7 @@
<method name="get_center_widget" symbol="gtk_action_bar_get_center_widget">
<return-type type="GtkWidget*"/>
<parameters>
- <parameter name="bar" type="GtkActionBar*"/>
+ <parameter name="action_bar" type="GtkActionBar*"/>
</parameters>
</method>
<constructor name="new" symbol="gtk_action_bar_new">
@@ -6249,26 +6249,24 @@
<method name="pack_end" symbol="gtk_action_bar_pack_end">
<return-type type="void"/>
<parameters>
- <parameter name="bar" type="GtkActionBar*"/>
+ <parameter name="action_bar" type="GtkActionBar*"/>
<parameter name="child" type="GtkWidget*"/>
</parameters>
</method>
<method name="pack_start" symbol="gtk_action_bar_pack_start">
<return-type type="void"/>
<parameters>
- <parameter name="bar" type="GtkActionBar*"/>
+ <parameter name="action_bar" type="GtkActionBar*"/>
<parameter name="child" type="GtkWidget*"/>
</parameters>
</method>
<method name="set_center_widget" symbol="gtk_action_bar_set_center_widget">
<return-type type="void"/>
<parameters>
- <parameter name="bar" type="GtkActionBar*"/>
+ <parameter name="action_bar" type="GtkActionBar*"/>
<parameter name="center_widget" type="GtkWidget*"/>
</parameters>
</method>
- <property name="center-widget" type="GtkWidget*" readable="1" writable="1"
construct="1" construct-only="0"/>
- <property name="spacing" type="gint" readable="1" writable="1" construct="0"
construct-only="0"/>
</object>
<object name="GtkActionGroup" parent="GObject" type-name="GtkActionGroup"
get-type="gtk_action_group_get_type">
<implements>
@@ -9624,6 +9622,44 @@
<property name="fit-model" type="gboolean" readable="1" writable="1" construct="0"
construct-only="0"/>
<property name="model" type="GtkTreeModel*" readable="1" writable="1" construct="0"
construct-only="0"/>
</object>
+ <object name="GtkCenterBox" parent="GtkContainer" type-name="GtkCenterBox"
get-type="gtk_center_box_get_type">
+ <implements>
+ <interface name="AtkImplementor"/>
+ <interface name="GtkBuildable"/>
+ </implements>
+ <method name="get_center_widget" symbol="gtk_center_box_get_center_widget">
+ <return-type type="GtkWidget*"/>
+ <parameters>
+ <parameter name="box" type="GtkCenterBox*"/>
+ </parameters>
+ </method>
+ <constructor name="new" symbol="gtk_center_box_new">
+ <return-type type="GtkWidget*"/>
+ </constructor>
+ <method name="pack_end" symbol="gtk_center_box_pack_end">
+ <return-type type="void"/>
+ <parameters>
+ <parameter name="box" type="GtkCenterBox*"/>
+ <parameter name="child" type="GtkWidget*"/>
+ </parameters>
+ </method>
+ <method name="pack_start" symbol="gtk_center_box_pack_start">
+ <return-type type="void"/>
+ <parameters>
+ <parameter name="box" type="GtkCenterBox*"/>
+ <parameter name="child" type="GtkWidget*"/>
+ </parameters>
+ </method>
+ <method name="set_center_widget" symbol="gtk_center_box_set_center_widget">
+ <return-type type="void"/>
+ <parameters>
+ <parameter name="box" type="GtkCenterBox*"/>
+ <parameter name="center_widget" type="GtkWidget*"/>
+ </parameters>
+ </method>
+ <property name="center-widget" type="GtkWidget*" readable="1" writable="1"
construct="1" construct-only="0"/>
+ <property name="spacing" type="gint" readable="1" writable="1" construct="0"
construct-only="0"/>
+ </object>
<object name="GtkCheckButton" parent="GtkToggleButton" type-name="GtkCheckButton"
get-type="gtk_check_button_get_type">
<implements>
<interface name="AtkImplementor"/>
@@ -11441,6 +11477,12 @@
<parameter name="entry" type="GtkEntry*"/>
</parameters>
</method>
+ <method name="get_max_width_chars" symbol="gtk_entry_get_max_width_chars">
+ <return-type type="gint"/>
+ <parameters>
+ <parameter name="entry" type="GtkEntry*"/>
+ </parameters>
+ </method>
<method name="get_overwrite_mode" symbol="gtk_entry_get_overwrite_mode">
<return-type type="gboolean"/>
<parameters>
@@ -11694,6 +11736,13 @@
<parameter name="max" type="gint"/>
</parameters>
</method>
+ <method name="set_max_width_chars" symbol="gtk_entry_set_max_width_chars">
+ <return-type type="void"/>
+ <parameters>
+ <parameter name="entry" type="GtkEntry*"/>
+ <parameter name="n_chars" type="gint"/>
+ </parameters>
+ </method>
<method name="set_overwrite_mode" symbol="gtk_entry_set_overwrite_mode">
<return-type type="void"/>
<parameters>
@@ -11778,6 +11827,7 @@
<property name="invisible-char" type="guint" readable="1" writable="1" construct="0"
construct-only="0"/>
<property name="invisible-char-set" type="gboolean" readable="1" writable="1"
construct="0" construct-only="0"/>
<property name="max-length" type="gint" readable="1" writable="1" construct="0"
construct-only="0"/>
+ <property name="max-width-chars" type="gint" readable="1" writable="1" construct="0"
construct-only="0"/>
<property name="overwrite-mode" type="gboolean" readable="1" writable="1"
construct="0" construct-only="0"/>
<property name="placeholder-text" type="char*" readable="1" writable="1"
construct="0" construct-only="0"/>
<property name="populate-all" type="gboolean" readable="1" writable="1" construct="0"
construct-only="0"/>
@@ -12944,7 +12994,7 @@
<return-type type="void"/>
<parameters>
<parameter name="box" type="GtkFlowBox*"/>
- <parameter name="child" type="GtkWidget*"/>
+ <parameter name="child" type="GtkFlowBoxChild*"/>
</parameters>
</signal>
<signal name="move-cursor" when="LAST">
@@ -16931,12 +16981,24 @@
<parameter name="menu_button" type="GtkMenuButton*"/>
</parameters>
</method>
+ <method name="get_popover" symbol="gtk_menu_button_get_popover">
+ <return-type type="GtkPopover*"/>
+ <parameters>
+ <parameter name="menu_button" type="GtkMenuButton*"/>
+ </parameters>
+ </method>
<method name="get_popup" symbol="gtk_menu_button_get_popup">
<return-type type="GtkMenu*"/>
<parameters>
<parameter name="menu_button" type="GtkMenuButton*"/>
</parameters>
</method>
+ <method name="get_use_popover" symbol="gtk_menu_button_get_use_popover">
+ <return-type type="gboolean"/>
+ <parameters>
+ <parameter name="menu_button" type="GtkMenuButton*"/>
+ </parameters>
+ </method>
<constructor name="new" symbol="gtk_menu_button_new">
<return-type type="GtkWidget*"/>
</constructor>
@@ -16961,17 +17023,33 @@
<parameter name="menu_model" type="GMenuModel*"/>
</parameters>
</method>
+ <method name="set_popover" symbol="gtk_menu_button_set_popover">
+ <return-type type="void"/>
+ <parameters>
+ <parameter name="menu_button" type="GtkMenuButton*"/>
+ <parameter name="popover" type="GtkWidget*"/>
+ </parameters>
+ </method>
<method name="set_popup" symbol="gtk_menu_button_set_popup">
<return-type type="void"/>
<parameters>
<parameter name="menu_button" type="GtkMenuButton*"/>
- <parameter name="popup" type="GtkWidget*"/>
+ <parameter name="menu" type="GtkWidget*"/>
+ </parameters>
+ </method>
+ <method name="set_use_popover" symbol="gtk_menu_button_set_use_popover">
+ <return-type type="void"/>
+ <parameters>
+ <parameter name="menu_button" type="GtkMenuButton*"/>
+ <parameter name="use_popover" type="gboolean"/>
</parameters>
</method>
<property name="align-widget" type="GtkContainer*" readable="1" writable="1"
construct="0" construct-only="0"/>
<property name="direction" type="GtkArrowType" readable="1" writable="1"
construct="0" construct-only="0"/>
<property name="menu-model" type="GMenuModel*" readable="1" writable="1"
construct="0" construct-only="0"/>
+ <property name="popover" type="GtkPopover*" readable="1" writable="1" construct="0"
construct-only="0"/>
<property name="popup" type="GtkMenu*" readable="1" writable="1" construct="0"
construct-only="0"/>
+ <property name="use-popover" type="gboolean" readable="1" writable="1" construct="0"
construct-only="0"/>
</object>
<object name="GtkMenuButtonAccessible" parent="GtkToggleButtonAccessible"
type-name="GtkMenuButtonAccessible" get-type="gtk_menu_button_accessible_get_type">
<implements>
@@ -18675,7 +18753,7 @@
<return-type type="gboolean"/>
<parameters>
<parameter name="popover" type="GtkPopover*"/>
- <parameter name="rect" type="cairo_rectangle_int_t*"/>
+ <parameter name="rect" type="GdkRectangle*"/>
</parameters>
</method>
<method name="get_position" symbol="gtk_popover_get_position">
@@ -18696,6 +18774,13 @@
<parameter name="relative_to" type="GtkWidget*"/>
</parameters>
</constructor>
+ <constructor name="new_from_model" symbol="gtk_popover_new_from_model">
+ <return-type type="GtkWidget*"/>
+ <parameters>
+ <parameter name="relative_to" type="GtkWidget*"/>
+ <parameter name="model" type="GMenuModel*"/>
+ </parameters>
+ </constructor>
<method name="set_modal" symbol="gtk_popover_set_modal">
<return-type type="void"/>
<parameters>
@@ -18707,7 +18792,7 @@
<return-type type="void"/>
<parameters>
<parameter name="popover" type="GtkPopover*"/>
- <parameter name="rect" type="cairo_rectangle_int_t*"/>
+ <parameter name="rect" type="GdkRectangle*"/>
</parameters>
</method>
<method name="set_position" symbol="gtk_popover_set_position">
@@ -18728,6 +18813,12 @@
<property name="pointing-to" type="cairo_rectangle_int_t*" readable="1" writable="1"
construct="0" construct-only="0"/>
<property name="position" type="GtkPositionType" readable="1" writable="1"
construct="1" construct-only="0"/>
<property name="relative-to" type="GtkWidget*" readable="1" writable="1"
construct="0" construct-only="0"/>
+ <signal name="closed" when="LAST">
+ <return-type type="void"/>
+ <parameters>
+ <parameter name="popover" type="GtkPopover*"/>
+ </parameters>
+ </signal>
</object>
<object name="GtkPrintContext" parent="GObject" type-name="GtkPrintContext"
get-type="gtk_print_context_get_type">
<method name="create_pango_context" symbol="gtk_print_context_create_pango_context">
@@ -28390,7 +28481,7 @@
<constructor name="new" symbol="gtk_volume_button_new">
<return-type type="GtkWidget*"/>
</constructor>
- <property name="use-symbolic" type="gboolean" readable="1" writable="1" construct="0"
construct-only="0"/>
+ <property name="use-symbolic" type="gboolean" readable="1" writable="1" construct="1"
construct-only="0"/>
</object>
<object name="GtkWidget" parent="GInitiallyUnowned" type-name="GtkWidget"
get-type="gtk_widget_get_type">
<implements>
@@ -34168,14 +34259,14 @@
</parameters>
</vfunc>
</interface>
- <constant name="GTK_BINARY_AGE" type="int" value="1105"/>
+ <constant name="GTK_BINARY_AGE" type="int" value="1106"/>
<constant name="GTK_INPUT_ERROR" type="int" value="-1"/>
<constant name="GTK_INTERFACE_AGE" type="int" value="0"/>
<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="5"/>
+ <constant name="GTK_MICRO_VERSION" type="int" value="6"/>
<constant name="GTK_MINOR_VERSION" type="int" value="11"/>
<constant name="GTK_PAPER_NAME_A3" type="char*" value="iso_a3"/>
<constant name="GTK_PAPER_NAME_A4" type="char*" value="iso_a4"/>
@@ -34230,6 +34321,7 @@
<constant name="GTK_STYLE_CLASS_CONTEXT_MENU" type="char*" value="context-menu"/>
<constant name="GTK_STYLE_CLASS_CURSOR_HANDLE" type="char*" value="cursor-handle"/>
<constant name="GTK_STYLE_CLASS_DEFAULT" type="char*" value="default"/>
+ <constant name="GTK_STYLE_CLASS_DESTRUCTIVE_ACTION" type="char*" value="destructive-action"/>
<constant name="GTK_STYLE_CLASS_DIM_LABEL" type="char*" value="dim-label"/>
<constant name="GTK_STYLE_CLASS_DND" type="char*" value="dnd"/>
<constant name="GTK_STYLE_CLASS_DOCK" type="char*" value="dock"/>
@@ -34277,6 +34369,7 @@
<constant name="GTK_STYLE_CLASS_SLIDER" type="char*" value="slider"/>
<constant name="GTK_STYLE_CLASS_SPINBUTTON" type="char*" value="spinbutton"/>
<constant name="GTK_STYLE_CLASS_SPINNER" type="char*" value="spinner"/>
+ <constant name="GTK_STYLE_CLASS_SUGGESTED_ACTION" type="char*" value="suggested-action"/>
<constant name="GTK_STYLE_CLASS_TITLEBAR" type="char*" value="titlebar"/>
<constant name="GTK_STYLE_CLASS_TOOLBAR" type="char*" value="toolbar"/>
<constant name="GTK_STYLE_CLASS_TOOLTIP" type="char*" value="tooltip"/>
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]