From: Juerg Billeter Date: Thu, 22 Nov 2007 20:37:43 +0000 (+0000) Subject: update to use vala-gen-introspect X-Git-Tag: VALA_0_1_5~12 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=1bd391e9054b3d61bed1cd88cb8e29979f9bb488;p=platform%2Fupstream%2Fvala.git update to use vala-gen-introspect 2007-11-22 Juerg Billeter * vapi/packages/libnotify/: update to use vala-gen-introspect * vapi/libnotify.vapi: regenerated svn path=/trunk/; revision=709 --- diff --git a/ChangeLog b/ChangeLog index 2c0e017..47cf1ed 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,5 +1,11 @@ 2007-11-22 Jürg Billeter + * vapi/packages/libnotify/: update to use vala-gen-introspect + + * vapi/libnotify.vapi: regenerated + +2007-11-22 Jürg Billeter + * vapi/packages/libgnome-2.0/, vapi/packages/libgnomeui-2.0/: update to use vala-gen-introspect diff --git a/vapi/libnotify.vapi b/vapi/libnotify.vapi index 3cc4985..94455f0 100644 --- a/vapi/libnotify.vapi +++ b/vapi/libnotify.vapi @@ -11,12 +11,13 @@ namespace Notify { [CCode (cheader_filename = "libnotify/notify.h")] public class Notification : GLib.Object { public void add_action (string action, string label, Notify.ActionCallback callback, pointer user_data, GLib.FreeFunc free_func); + public void attach_to_status_icon (Gtk.StatusIcon status_icon); public void attach_to_widget (Gtk.Widget attach); public void clear_actions (); public void clear_hints (); public bool close () throws GLib.Error; - public static GLib.Type get_type (); public Notification (string summary, string body, string icon, Gtk.Widget attach); + public Notification.with_status_icon (string summary, string body, string icon, Gtk.StatusIcon status_icon); 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); @@ -31,21 +32,24 @@ namespace Notify { public bool show () throws GLib.Error; public bool update (string summary, string body, string icon); [NoAccessorMethod] - public weak string summary { get; set construct; } + public weak Gtk.Widget attach_widget { get; set construct; } [NoAccessorMethod] public weak string body { get; set construct; } [NoAccessorMethod] public weak string icon_name { get; set construct; } [NoAccessorMethod] - public weak Gtk.Widget attach_widget { get; set construct; } - [NoAccessorMethod] public weak Gtk.StatusIcon status_icon { get; set construct; } + [NoAccessorMethod] + public weak string summary { get; set construct; } public signal void closed (); } - public static delegate void ActionCallback (Notify.Notification arg1, string arg2, pointer arg3); - public static bool init (string! app_name); + public static delegate void ActionCallback (Notify.Notification p1, string p2, pointer p3); + public const int EXPIRES_DEFAULT; + public const int EXPIRES_NEVER; public static weak string get_app_name (); public static weak GLib.List get_server_caps (); public static bool get_server_info (out string ret_name, out string ret_vendor, out string ret_version, out string ret_spec_version); + public static bool init (string app_name); public static bool is_initted (); + public static void uninit (); } diff --git a/vapi/packages/libnotify/libnotify-custom.vala b/vapi/packages/libnotify/libnotify-custom.vala deleted file mode 100644 index 3e0a8c9..0000000 --- a/vapi/packages/libnotify/libnotify-custom.vala +++ /dev/null @@ -1,28 +0,0 @@ -/* libnotify-custom.vala - * - * Copyright (C) 2007 Nicolas Christener, Roland Hostettler - * - * This library is free software; you can redistribute it and/or - * modify it under the terms of the GNU Lesser General Public - * License as published by the Free Software Foundation; either - * version 2.1 of the License, or (at your option) any later version. - - * This library is distributed in the hope that it will be useful, - * but WITHOUT ANY WARRANTY; without even the implied warranty of - * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU - * Lesser General Public License for more details. - - * You should have received a copy of the GNU Lesser General Public - * License along with this library; if not, write to the Free Software - * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA - * - * Author: - * Nicolas Christener - * Roland Hostettler - */ - -[CCode (cheader_filename = "libnotify/notify.h")] -namespace Notify { - [Import] - public bool init (string! app_name); -} diff --git a/vapi/packages/libnotify/libnotify.files b/vapi/packages/libnotify/libnotify.files index a449208..50d30a3 100644 --- a/vapi/packages/libnotify/libnotify.files +++ b/vapi/packages/libnotify/libnotify.files @@ -1 +1,2 @@ -libnotify +include/libnotify +lib/libnotify.so diff --git a/vapi/packages/libnotify/libnotify.gi b/vapi/packages/libnotify/libnotify.gi new file mode 100644 index 0000000..d514412 --- /dev/null +++ b/vapi/packages/libnotify/libnotify.gi @@ -0,0 +1,216 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + diff --git a/vapi/packages/libnotify/libnotify.gidl b/vapi/packages/libnotify/libnotify.gidl deleted file mode 100644 index 82f6f5d..0000000 --- a/vapi/packages/libnotify/libnotify.gidl +++ /dev/null @@ -1,198 +0,0 @@ - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -