[vala] gtk+-3.0: add some default values
- From: Evan Nemerson <evann src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [vala] gtk+-3.0: add some default values
- Date: Thu, 16 Oct 2014 20:33:14 +0000 (UTC)
commit ef652815e1fac52886bfc307571da1edcc874557
Author: Evan Nemerson <evan nemerson com>
Date: Thu Oct 16 13:18:02 2014 -0700
gtk+-3.0: add some default values
vapi/gtk+-3.0.vapi | 8 ++++----
vapi/packages/gtk+-3.0/gtk+-3.0.metadata | 5 +++++
2 files changed, 9 insertions(+), 4 deletions(-)
---
diff --git a/vapi/gtk+-3.0.vapi b/vapi/gtk+-3.0.vapi
index 8c6d361..34304c9 100644
--- a/vapi/gtk+-3.0.vapi
+++ b/vapi/gtk+-3.0.vapi
@@ -809,7 +809,7 @@ namespace Gtk {
[CCode (has_construct_function = false, type = "GtkWidget*")]
public Button ();
[CCode (has_construct_function = false, type = "GtkWidget*")]
- public Button.from_icon_name (string icon_name, Gtk.IconSize size);
+ public Button.from_icon_name (string icon_name, Gtk.IconSize size = Gtk.IconSize.BUTTON);
[CCode (has_construct_function = false, type = "GtkWidget*")]
public Button.from_stock (string stock_id);
public void get_alignment (out float xalign, out float yalign);
@@ -2414,8 +2414,8 @@ namespace Gtk {
public class Grid : Gtk.Container, Atk.Implementor, Gtk.Buildable, Gtk.Orientable {
[CCode (has_construct_function = false, type = "GtkWidget*")]
public Grid ();
- public void attach (Gtk.Widget child, int left, int top, int width, int height);
- public void attach_next_to (Gtk.Widget child, Gtk.Widget? sibling, Gtk.PositionType side, int
width, int height);
+ public void attach (Gtk.Widget child, int left, int top, int width = 1, int height = 1);
+ public void attach_next_to (Gtk.Widget child, Gtk.Widget? sibling, Gtk.PositionType side, int
width = 1, int height = 1);
public int get_baseline_row ();
public unowned Gtk.Widget get_child_at (int left, int top);
public bool get_column_homogeneous ();
@@ -7006,7 +7006,7 @@ namespace Gtk {
public abstract void do_delete_text (int start_pos, int end_pos);
[NoWrapper]
public abstract void do_insert_text (string new_text, int new_text_length, ref int position);
- public abstract string get_chars (int start_pos, int end_pos);
+ public abstract string get_chars (int start_pos = 0, int end_pos = -1);
public bool get_editable ();
public abstract int get_position ();
public abstract bool get_selection_bounds (out int start_pos, out int end_pos);
diff --git a/vapi/packages/gtk+-3.0/gtk+-3.0.metadata b/vapi/packages/gtk+-3.0/gtk+-3.0.metadata
index 420a3a7..4861d0d 100644
--- a/vapi/packages/gtk+-3.0/gtk+-3.0.metadata
+++ b/vapi/packages/gtk+-3.0/gtk+-3.0.metadata
@@ -138,6 +138,7 @@ GtkBuilderConnectFunc.connect_object nullable="1"
gtk_button_get_alignment.xalign is_out="1"
gtk_button_get_alignment.yalign is_out="1"
gtk_button_set_label.label nullable="1"
+gtk_button_new_from_icon_name.size default_value="Gtk.IconSize.BUTTON"
GtkButton::clicked has_emitter="1"
GtkButton::enter has_emitter="1" deprecated_since="2.8" replacement="Gtk.Widget.enter_notify_event"
GtkButton::leave has_emitter="1" deprecated_since="2.8" replacement="Gtk.Widget.leave_notify_event"
@@ -319,6 +320,8 @@ GtkEditable::insert_text has_emitter="1"
GtkEditable::insert_text.position type_name="int" is_ref="1"
gtk_editable_do_insert_text.position is_ref="1"
gtk_editable_get_chars transfer_ownership="1"
+gtk_editable_get_chars.start_pos default_value="0"
+gtk_editable_get_chars.end_pos default_value="-1"
gtk_editable_get_selection_bounds.start_pos is_out="1"
gtk_editable_get_selection_bounds.end_pos is_out="1"
gtk_editable_select_region hidden="1"
@@ -417,6 +420,8 @@ gtk_frame_get_label_widget nullable="1"
gtk_frame_set_label.label nullable="1"
gtk_frame_set_label_widget.label_widget nullable="1"
gtk_grid_attach_next_to.sibling nullable="1"
+gtk_grid_attach*.width default_value="1"
+gtk_grid_attach*.height default_value="1"
GtkHandleBox.child_detached hidden="1"
GtkHandleBox::child_detached hidden="1"
gtk_hscale_new.adjustment nullable="1"
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]