+2008-12-16 Jürg Billeter <j@bitron.ch>
+
+ * vapigen/valagidlparser.vala:
+
+ Extend metadata support for delegates
+
+ * vapi/packages/libnotify/:
+
+ Fix NotifyActionCallback and notify_notification_add_action
+ bindings, fixes bug 562726
+
+ * vapi/libnotify.vapi: regenerated
+
2008-12-16 Jürg Billeter <j@bitron.ch>
* vapigen/valagirparser.vala:
namespace Notify {
[CCode (cheader_filename = "libnotify/notify.h")]
public class Notification : GLib.Object {
- public void add_action (string action, string label, Notify.ActionCallback callback, GLib.FreeFunc free_func);
+ public void add_action (string action, string label, Notify.ActionCallback# callback);
public void attach_to_status_icon (Gtk.StatusIcon status_icon);
public void attach_to_widget (Gtk.Widget attach);
public void clear_actions ();
public void set_category (string category);
public void set_geometry_hints (Gdk.Screen screen, int x, int y);
public void set_hint_byte (string key, uchar value);
- public void set_hint_byte_array (string key, uchar[] value, ulong len);
+ public void set_hint_byte_array (string key, uchar[] value, size_t len);
public void set_hint_double (string key, double value);
public void set_hint_int32 (string key, int value);
public void set_hint_string (string key, string value);
CRITICAL
}
[CCode (cheader_filename = "libnotify/notify.h")]
- public static delegate void ActionCallback (Notify.Notification p1, string p2, void* p3);
+ public delegate void ActionCallback (Notify.Notification p1, string p2);
[CCode (cheader_filename = "libnotify/notify.h")]
public const int EXPIRES_DEFAULT;
[CCode (cheader_filename = "libnotify/notify.h")]
} else if (nv[0] == "has_target") {
if (eval (nv[1]) == "0") {
check_has_target = false;
+ } else if (eval (nv[1]) == "1") {
+ cb.has_target = true;
}
}
}
ParameterDirection direction;
var p = new FormalParameter (param_name, parse_param (param, out direction));
p.direction = direction;
- cb.add_parameter (p);
+
+ bool hide_param = false;
+ bool show_param = false;
+ attributes = get_attributes ("%s.%s".printf (node.name, param_node.name));
+ if (attributes != null) {
+ foreach (string attr in attributes) {
+ var nv = attr.split ("=", 2);
+ if (nv[0] == "hidden") {
+ if (eval (nv[1]) == "1") {
+ hide_param = true;
+ } else if (eval (nv[1]) == "0") {
+ show_param = true;
+ }
+ }
+ }
+ }
+
+ if (show_param || !hide_param) {
+ cb.add_parameter (p);
+ }
}
remaining_params--;