Commit 050063f2 authored by Evan Nemerson's avatar Evan Nemerson
Browse files

gtk+-2.0, gtk+-3.0: improvements for Gtk.ScaleButton constructor args

parent aef2d1d7
......@@ -3615,7 +3615,7 @@ namespace Gtk {
public weak Gtk.Widget minus_button;
public weak Gtk.Widget plus_button;
[CCode (has_construct_function = false, type = "GtkWidget*")]
public ScaleButton (Gtk.IconSize size, double min, double max, double step, [CCode (array_length = false)] string[] icons);
public ScaleButton (Gtk.IconSize size, double min = 0.0, double max = 100.0, double step = 2.0, [CCode (array_length = false)] string[]? icons = null);
public unowned Gtk.Adjustment get_adjustment ();
public unowned Gtk.Widget get_minus_button ();
public unowned Gtk.Widget get_plus_button ();
......
......@@ -3632,7 +3632,7 @@ namespace Gtk {
[CCode (cheader_filename = "gtk/gtk.h")]
public class ScaleButton : Gtk.Button, Atk.Implementor, Gtk.Buildable, Gtk.Actionable, Gtk.Activatable, Gtk.Orientable {
[CCode (has_construct_function = false, type = "GtkWidget*")]
public ScaleButton (Gtk.IconSize size, double min, double max, double step, [CCode (array_length = false)] string[] icons);
public ScaleButton (Gtk.IconSize size, double min = 0.0, double max = 100.0, double step = 2.0, [CCode (array_length = false)] string[]? icons = null);
public unowned Gtk.Adjustment get_adjustment ();
public unowned Gtk.Widget get_minus_button ();
public unowned Gtk.Widget get_plus_button ();
......
......@@ -518,7 +518,10 @@ gtk_rc_get_style_by_paths.class_path nullable="1"
gtk_rc_style_copy transfer_ownership="1"
gtk_rc_style_create_style transfer_ownership="1"
gtk_scale_add_mark.markup nullable="1"
gtk_scale_button_new.icons is_array="1" no_array_length="1"
gtk_scale_button_new.min default_value="0.0"
gtk_scale_button_new.max default_value="100.0"
gtk_scale_button_new.step default_value="2.0"
gtk_scale_button_new.icons is_array="1" no_array_length="1" nullable="1" default_value="null"
gtk_scale_button_set_icons.icons is_array="1" no_array_length="1"
gtk_scale_draw_value hidden="1"
gtk_scale_get_layout_offsets.x is_out="1"
......
......@@ -639,7 +639,10 @@ gtk_rc_style_copy transfer_ownership="1"
gtk_rc_style_create_style transfer_ownership="1"
gtk_scale_new.adjustment nullable="1"
gtk_scale_add_mark.markup nullable="1"
gtk_scale_button_new.icons is_array="1" no_array_length="1"
gtk_scale_button_new.min default_value="0.0"
gtk_scale_button_new.max default_value="100.0"
gtk_scale_button_new.step default_value="2.0"
gtk_scale_button_new.icons is_array="1" no_array_length="1" nullable="1" default_value="null"
gtk_scale_button_set_icons.icons is_array="1" no_array_length="1"
gtk_scale_draw_value hidden="1"
gtk_scale_get_layout_offsets.x is_out="1"
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment