Commit c41e5260 authored by Jürg Billeter's avatar Jürg Billeter Committed by Jürg Billeter
Browse files

visit interface signals obey lock keyword add interface signals

2006-09-27  Jürg Billeter  <j@bitron.ch>

	* vala/valainterface.vala: visit interface signals
	* vala/valainterfacewriter.vala: obey lock keyword
	* vapi/atk.vala, vapi/gtk+-2.0.vala: add interface signals

svn path=/trunk/; revision=131
parent cfe8ec32
2006-09-27 Jürg Billeter <j@bitron.ch>
* vala/valainterface.vala: visit interface signals
* vala/valainterfacewriter.vala: obey lock keyword
* vapi/atk.vala, vapi/gtk+-2.0.vala: add interface signals
2006-09-27 Raffaele Sandrini <rasa@gmx.ch>
* vapi/glib-2.0.vala: add threading and assorted structures
......
......@@ -196,6 +196,10 @@ public class Vala.Interface : DataType {
foreach (Property prop in properties) {
prop.accept (visitor);
}
foreach (Signal sig in signals) {
sig.accept (visitor);
}
visitor.visit_end_interface (this);
}
......
......@@ -394,7 +394,8 @@ public class Vala.InterfaceWriter : CodeVisitor {
write_string (" ");
if (m.name == "class" || m.name == "construct" ||
m.name == "foreach" || m.name == "get" ||
m.name == "ref" || m.name == "set") {
m.name == "lock" || m.name == "ref" ||
m.name == "set") {
write_string ("@");
}
write_identifier (m.name);
......
......@@ -272,6 +272,7 @@ namespace Atk {
public virtual bool set_position (int x, int y, Atk.CoordType coord_type);
[NoArrayLength ()]
public virtual bool set_size (int width, int height);
public signal void bounds_changed (Atk.Rectangle bounds);
}
public interface Document {
[NoArrayLength ()]
......@@ -322,6 +323,7 @@ namespace Atk {
public virtual int get_n_links ();
[NoArrayLength ()]
public GLib.Type get_type ();
public signal void link_selected (int link_index);
}
public interface Image {
[NoArrayLength ()]
......@@ -360,6 +362,7 @@ namespace Atk {
public virtual bool remove_selection (int i);
[NoArrayLength ()]
public virtual bool select_all_selection ();
public signal void selection_changed ();
}
public interface StreamableContent {
[NoArrayLength ()]
......@@ -434,6 +437,13 @@ namespace Atk {
public virtual void set_row_header (int row, Atk.Object header);
[NoArrayLength ()]
public virtual void set_summary (Atk.Object accessible);
public signal void row_inserted (int row, int num_inserted);
public signal void column_inserted (int column, int num_inserted);
public signal void row_deleted (int row, int num_deleted);
public signal void column_deleted (int column, int num_deleted);
public signal void row_reordered ();
public signal void column_reordered ();
public signal void model_changed ();
}
public interface Text {
[NoArrayLength ()]
......@@ -486,6 +496,10 @@ namespace Atk {
public virtual bool set_caret_offset (int offset);
[NoArrayLength ()]
public virtual bool set_selection (int selection_num, int start_offset, int end_offset);
public signal void text_changed (int position, int length);
public signal void text_caret_moved (int location);
public signal void text_selection_changed ();
public signal void text_attributes_changed ();
}
public interface Value {
[NoArrayLength ()]
......
......@@ -98,7 +98,7 @@ namespace Gtk {
[NoArrayLength ()]
public GLib.Type get_type ();
[NoArrayLength ()]
public void lock ();
public void @lock ();
[NoArrayLength ()]
public construct ();
[NoArrayLength ()]
......@@ -5739,14 +5739,12 @@ namespace Gtk {
public void remove_window (Gtk.Window window);
}
public interface CellEditable {
[NoArrayLength ()]
public void editing_done ();
[NoArrayLength ()]
public GLib.Type get_type ();
[NoArrayLength ()]
public void remove_widget ();
[NoArrayLength ()]
public virtual void start_editing (Gdk.Event event);
[HasEmitter ()]
public signal void editing_done ();
[HasEmitter ()]
public signal void remove_widget ();
}
public interface CellLayout {
[NoArrayLength ()]
......@@ -5776,8 +5774,6 @@ namespace Gtk {
[NoArrayLength ()]
public void delete_selection ();
[NoArrayLength ()]
public void delete_text (int start_pos, int end_pos);
[NoArrayLength ()]
public virtual string get_chars (int start_pos, int end_pos);
[NoArrayLength ()]
public bool get_editable ();
......@@ -5788,8 +5784,6 @@ namespace Gtk {
[NoArrayLength ()]
public GLib.Type get_type ();
[NoArrayLength ()]
public void insert_text (string new_text, int new_text_length, int position);
[NoArrayLength ()]
public void paste_clipboard ();
[NoArrayLength ()]
public void select_region (int start, int end);
......@@ -5797,6 +5791,11 @@ namespace Gtk {
public void set_editable (bool is_editable);
[NoArrayLength ()]
public virtual void set_position (int position);
[HasEmitter ()]
public signal void insert_text (string text, int length, int position);
[HasEmitter ()]
public signal void delete_text (int start_pos, int end_pos);
public signal void changed ();
}
public interface FileChooser {
[NoArrayLength ()]
......@@ -5909,6 +5908,8 @@ namespace Gtk {
public virtual bool is_selected (int page_nr);
[NoArrayLength ()]
public virtual void render_page (int page_nr);
public signal void ready (Gtk.PrintContext context);
public signal void got_page_size (Gtk.PrintContext context, Gtk.PageSetup page_setup);
}
public interface RecentChooser {
[NoArrayLength ()]
......@@ -5981,6 +5982,8 @@ namespace Gtk {
public virtual void unselect_all ();
[NoArrayLength ()]
public virtual void unselect_uri (string uri);
public signal void selection_changed ();
public signal void item_activated ();
}
public interface TreeDragDest {
[NoArrayLength ()]
......@@ -6042,17 +6045,17 @@ namespace Gtk {
[NoArrayLength ()]
public virtual void ref_node (Gtk.TreeIter iter);
[NoArrayLength ()]
public void row_changed (Gtk.TreePath path, Gtk.TreeIter iter);
[NoArrayLength ()]
public virtual void row_deleted (Gtk.TreePath path);
[NoArrayLength ()]
public void row_has_child_toggled (Gtk.TreePath path, Gtk.TreeIter iter);
[NoArrayLength ()]
public virtual void row_inserted (Gtk.TreePath path, Gtk.TreeIter iter);
[NoArrayLength ()]
public virtual void rows_reordered (Gtk.TreePath path, Gtk.TreeIter iter, int new_order);
[NoArrayLength ()]
public virtual void unref_node (Gtk.TreeIter iter);
[HasEmitter ()]
public signal void row_changed (Gtk.TreePath path, Gtk.TreeIter iter);
[HasEmitter ()]
public signal void row_inserted (Gtk.TreePath path, Gtk.TreeIter iter);
[HasEmitter ()]
public signal void row_has_child_toggled (Gtk.TreePath path, Gtk.TreeIter iter);
[HasEmitter ()]
public signal void row_deleted (Gtk.TreePath path);
[HasEmitter ()]
public signal void rows_reordered (Gtk.TreePath path, Gtk.TreeIter iter, int new_order);
}
public interface TreeSortable {
[NoArrayLength ()]
......@@ -6067,8 +6070,8 @@ namespace Gtk {
public virtual void set_sort_column_id (int sort_column_id, Gtk.SortType order);
[NoArrayLength ()]
public virtual void set_sort_func (int sort_column_id, Gtk.TreeIterCompareFunc sort_func, pointer user_data, Gtk.DestroyNotify destroy);
[NoArrayLength ()]
public void sort_column_changed ();
[HasEmitter ()]
public signal void sort_column_changed ();
}
[ReferenceType ()]
public struct AccelGroupEntry {
......
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