Commit b4b95a4d authored by Luca Bruno's avatar Luca Bruno

gtk+-2.0, gtk+-3.0: Improve TextMark constructor with nullables and defaults

parent 9035483c
......@@ -4559,7 +4559,7 @@ namespace Gtk {
public class TextMark : GLib.Object {
public void* segment;
[CCode (has_construct_function = false)]
public TextMark (string name, bool left_gravity);
public TextMark (string? name, bool left_gravity = false);
public unowned Gtk.TextBuffer get_buffer ();
public bool get_deleted ();
public bool get_left_gravity ();
......
......@@ -5105,7 +5105,7 @@ namespace Gtk {
public class TextMark : GLib.Object {
public void* segment;
[CCode (has_construct_function = false)]
public TextMark (string name, bool left_gravity);
public TextMark (string? name, bool left_gravity = false);
public unowned Gtk.TextBuffer get_buffer ();
public bool get_deleted ();
public bool get_left_gravity ();
......
......@@ -668,6 +668,8 @@ GtkTextBufferDeserializeFunc.data type_name="uint8" is_array="1" array_length_ty
GtkTextBufferDeserializeFunc.length hidden="1"
GtkTextBufferDeserializeFunc.user_data hidden="1"
GtkTextBufferDeserializeFunc has_target="1" instance_pos="5.9"
gtk_text_mark_new.name nullable="1"
gtk_text_mark_new.left_gravity default_value="false"
GtkTextIter is_value_type="1"
gtk_text_iter_get_marks transfer_ownership="1" type_arguments="unowned TextMark"
gtk_text_iter_get_tags transfer_ownership="1" type_arguments="unowned TextTag"
......
......@@ -878,6 +878,8 @@ GtkTextBufferDeserializeFunc.data type_name="uint8" is_array="1" array_length_ty
GtkTextBufferDeserializeFunc.length hidden="1"
GtkTextBufferDeserializeFunc.user_data hidden="1"
GtkTextBufferDeserializeFunc has_target="1" instance_pos="5.9"
gtk_text_mark_new.name nullable="1"
gtk_text_mark_new.left_gravity default_value="false"
GtkTextIter is_value_type="1"
gtk_text_iter_get_marks transfer_ownership="1" type_arguments="unowned TextMark"
gtk_text_iter_get_tags transfer_ownership="1" type_arguments="unowned TextTag"
......
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