summaryrefslogtreecommitdiff
path: root/vapi
diff options
context:
space:
mode:
authorAlexander Larsson <alexl@redhat.com>2013-06-12 11:25:33 +0200
committerAlexander Larsson <alexl@redhat.com>2013-06-12 11:25:33 +0200
commita695204f9d9d421bd7c7e19a5d33c54459bff1f9 (patch)
tree0408ed82a9e3ddfa0e8c23a61555a3e993170e3e /vapi
parentabc5ba448de899ec502497dca93860298e784633 (diff)
downloadgnome-contacts-a695204f9d9d421bd7c7e19a5d33c54459bff1f9.tar.gz
custom.vapi: Add GtkListBox bindings
This is not in vala yet.
Diffstat (limited to 'vapi')
-rw-r--r--vapi/custom.vapi48
1 files changed, 48 insertions, 0 deletions
diff --git a/vapi/custom.vapi b/vapi/custom.vapi
index 8313caa..e9fca6c 100644
--- a/vapi/custom.vapi
+++ b/vapi/custom.vapi
@@ -97,3 +97,51 @@ namespace Cheese {
public void fire (Gdk.Rectangle rect);
}
}
+
+[CCode (cprefix = "Gtk", gir_namespace = "Gtk", gir_version = "3.0", lower_case_cprefix = "gtk_")]
+namespace LocalGtk {
+ [CCode (cheader_filename = "gtk/gtk.h", type_id = "gtk_list_box_get_type ()")]
+ public class ListBox : Gtk.Container, Atk.Implementor, Gtk.Buildable {
+ [CCode (has_construct_function = false, type = "GtkWidget*")]
+ public ListBox ();
+ public void drag_highlight_row (LocalGtk.ListBoxRow row);
+ public void drag_unhighlight_row ();
+ public unowned Gtk.Adjustment get_adjustment ();
+ public unowned LocalGtk.ListBoxRow get_row_at_index (int index);
+ public unowned LocalGtk.ListBoxRow get_row_at_y (int y);
+ public unowned LocalGtk.ListBoxRow get_selected_row ();
+ public Gtk.SelectionMode get_selection_mode ();
+ public void invalidate_filter ();
+ public void invalidate_headers ();
+ public void invalidate_sort ();
+ public void select_row (LocalGtk.ListBoxRow? row);
+ public void set_activate_on_single_click (bool single);
+ public void set_adjustment (Gtk.Adjustment? adjustment);
+ public void set_filter_func (owned LocalGtk.ListBoxFilterFunc? filter_func);
+ public void set_header_func (owned LocalGtk.ListBoxUpdateHeaderFunc? update_header);
+ public void set_placeholder (Gtk.Widget? placeholder);
+ public void set_selection_mode (Gtk.SelectionMode mode);
+ public void set_sort_func (owned LocalGtk.ListBoxSortFunc? sort_func);
+ public bool activate_on_single_click { get; set; }
+ public Gtk.SelectionMode selection_mode { get; set; }
+ public virtual signal void activate_cursor_row ();
+ public virtual signal void move_cursor (Gtk.MovementStep step, int count);
+ public virtual signal void row_activated (LocalGtk.ListBoxRow row);
+ public virtual signal void row_selected (LocalGtk.ListBoxRow row);
+ public virtual signal void toggle_cursor_row ();
+ }
+ [CCode (cheader_filename = "gtk/gtk.h", type_id = "gtk_list_box_row_get_type ()")]
+ public class ListBoxRow : Gtk.Bin, Atk.Implementor, Gtk.Buildable {
+ [CCode (has_construct_function = false, type = "GtkWidget*")]
+ public ListBoxRow ();
+ public void changed ();
+ public unowned Gtk.Widget get_header ();
+ public void set_header (Gtk.Widget? header);
+ }
+ [CCode (cheader_filename = "gtk/gtk.h", instance_pos = 1.9)]
+ public delegate bool ListBoxFilterFunc (LocalGtk.ListBoxRow row);
+ [CCode (cheader_filename = "gtk/gtk.h", instance_pos = 2.9)]
+ public delegate int ListBoxSortFunc (LocalGtk.ListBoxRow row1, LocalGtk.ListBoxRow row2);
+ [CCode (cheader_filename = "gtk/gtk.h", instance_pos = 2.9)]
+ public delegate void ListBoxUpdateHeaderFunc (LocalGtk.ListBoxRow row, LocalGtk.ListBoxRow before);
+}