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

add libnotify bindings, patch by Nicolas Christener and Roland Hostettler

2007-08-29  Juerg Billeter  <j@bitron.ch>

	* vapi/Makefile.am, vapi/libnotify.valam, vapi/packages/libnotify/: add
	  libnotify bindings, patch by Nicolas Christener and Roland Hostettler

svn path=/trunk/; revision=534
parent 5c533123
2007-08-29 Jürg Billeter <j@bitron.ch>
* vapi/Makefile.am, vapi/libnotify.valam, vapi/packages/libnotify/: add
libnotify bindings, patch by Nicolas Christener and Roland Hostettler
2007-08-29 Jürg Billeter <j@bitron.ch>
* vapi/glib-2.0.vala: add missing type_id information
......
......@@ -39,6 +39,8 @@ dist_vapi_DATA = \
libgnome-2.0.vala \
libgnomeui-2.0.deps \
libgnomeui-2.0.vala \
libnotify.deps \
libnotify.vala \
libpanelapplet-2.0.deps \
libpanelapplet-2.0.vala \
libwnck-1.0.vala \
......
/* libnotify.vala generated by lt-vapigen, do not modify. */
[CCode (cprefix = "Notify", lower_case_cprefix = "notify_")]
namespace Notify {
[CCode (cprefix = "NOTIFY_URGENCY_", cheader_filename = "libnotify/notify.h")]
public enum Urgency {
LOW,
NORMAL,
CRITICAL,
}
[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_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 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);
[NoArrayLength]
public void set_hint_byte_array (string key, uchar[] value, ulong 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);
public void set_icon_from_pixbuf (Gdk.Pixbuf icon);
public void set_timeout (int timeout);
public void set_urgency (Notify.Urgency urgency);
public bool show () throws GLib.Error;
public bool update (string summary, string body, string icon);
[NoAccessorMethod]
public weak string summary { 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; }
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 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 is_initted ();
}
/* 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 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 <nicu@0x17.ch>
* Roland Hostettler <r.hostettler@gmx.ch>
*/
[CCode (cheader_filename = "libnotify/notify.h")]
namespace Notify {
[Import]
public bool init (string! app_name);
}
atk
cairo
gdk-2.0
pango
gtk+-2.0
<?xml version="1.0"?>
<api version="1.0">
<!--
This file was automatically generated.
Please DO NOT MODIFY THIS FILE, modify .metadata files instead.
-->
<namespace name="Notify">
<enum get-type="notify_urgency_get_type" name="NotifyUrgency" type="enum" type-name="NotifyUrgency">
<member name="NOTIFY_URGENCY_LOW" value=""/>
<member name="NOTIFY_URGENCY_NORMAL" value=""/>
<member name="NOTIFY_URGENCY_CRITICAL" value=""/>
</enum>
<callback name="NotifyActionCallback" type-name="NotifyActionCallback">
<return-type type="void"/>
<parameters>
<parameter name="arg1" type="NotifyNotification*"/>
<parameter name="arg2" type="gchar*"/>
<parameter name="arg3" type="gpointer"/>
</parameters>
</callback>
<object get-type="" name="NotifyNotification" parent="GObject" type-name="NotifyNotification">
<field name="priv" type="NotifyNotificationPrivate*"/>
<signal name="closed" when="FIRST">
<return-type type="void"/>
<parameters>
<parameter name="notification" type="NotifyNotification*"/>
</parameters>
</signal>
<property construct="1" name="summary" readable="1" type="gchar*" writable="1"/>
<property construct="1" name="body" readable="1" type="gchar*" writable="1"/>
<property construct="1" name="icon-name" readable="1" type="gchar*" writable="1"/>
<property construct="1" name="attach-widget" readable="1" type="GtkWidget" writable="1"/>
<property construct="1" name="status-icon" readable="1" type="GtkStatusIcon" writable="1"/>
<method name="add_action" symbol="notify_notification_add_action">
<return-type type="void"/>
<parameters>
<parameter name="notification" type="NotifyNotification*"/>
<parameter name="action" type="const-char*"/>
<parameter name="label" type="const-char*"/>
<parameter name="callback" type="NotifyActionCallback"/>
<parameter name="user_data" type="gpointer"/>
<parameter name="free_func" type="GFreeFunc"/>
</parameters>
</method>
<method name="attach_to_widget" symbol="notify_notification_attach_to_widget">
<return-type type="void"/>
<parameters>
<parameter name="notification" type="NotifyNotification*"/>
<parameter name="attach" type="GtkWidget*"/>
</parameters>
</method>
<method name="clear_actions" symbol="notify_notification_clear_actions">
<return-type type="void"/>
<parameters>
<parameter name="notification" type="NotifyNotification*"/>
</parameters>
</method>
<method name="clear_hints" symbol="notify_notification_clear_hints">
<return-type type="void"/>
<parameters>
<parameter name="notification" type="NotifyNotification*"/>
</parameters>
</method>
<method name="close" symbol="notify_notification_close">
<return-type type="gboolean"/>
<parameters>
<parameter name="notification" type="NotifyNotification*"/>
<parameter name="error" type="GError**"/>
</parameters>
</method>
<method name="get_type" symbol="notify_notification_get_type">
<return-type type="GType"/>
</method>
<constructor name="new" symbol="notify_notification_new">
<parameters>
<parameter name="summary" type="const-gchar*"/>
<parameter name="body" type="const-gchar*"/>
<parameter name="icon" type="const-gchar*"/>
<parameter name="attach" type="GtkWidget*"/>
</parameters>
</constructor>
<method name="set_category" symbol="notify_notification_set_category">
<return-type type="void"/>
<parameters>
<parameter name="notification" type="NotifyNotification*"/>
<parameter name="category" type="const-char*"/>
</parameters>
</method>
<method name="set_geometry_hints" symbol="notify_notification_set_geometry_hints">
<return-type type="void"/>
<parameters>
<parameter name="notification" type="NotifyNotification*"/>
<parameter name="screen" type="GdkScreen*"/>
<parameter name="x" type="gint"/>
<parameter name="y" type="gint"/>
</parameters>
</method>
<method name="set_hint_byte" symbol="notify_notification_set_hint_byte">
<return-type type="void"/>
<parameters>
<parameter name="notification" type="NotifyNotification*"/>
<parameter name="key" type="const-gchar*"/>
<parameter name="value" type="guchar"/>
</parameters>
</method>
<method name="set_hint_byte_array" symbol="notify_notification_set_hint_byte_array">
<return-type type="void"/>
<parameters>
<parameter name="notification" type="NotifyNotification*"/>
<parameter name="key" type="const-gchar*"/>
<parameter name="value" type="const-guchar*"/>
<parameter name="len" type="gsize"/>
</parameters>
</method>
<method name="set_hint_double" symbol="notify_notification_set_hint_double">
<return-type type="void"/>
<parameters>
<parameter name="notification" type="NotifyNotification*"/>
<parameter name="key" type="const-gchar*"/>
<parameter name="value" type="gdouble"/>
</parameters>
</method>
<method name="set_hint_int32" symbol="notify_notification_set_hint_int32">
<return-type type="void"/>
<parameters>
<parameter name="notification" type="NotifyNotification*"/>
<parameter name="key" type="const-gchar*"/>
<parameter name="value" type="gint"/>
</parameters>
</method>
<method name="set_hint_string" symbol="notify_notification_set_hint_string">
<return-type type="void"/>
<parameters>
<parameter name="notification" type="NotifyNotification*"/>
<parameter name="key" type="const-gchar*"/>
<parameter name="value" type="const-gchar*"/>
</parameters>
</method>
<method name="set_icon_from_pixbuf" symbol="notify_notification_set_icon_from_pixbuf">
<return-type type="void"/>
<parameters>
<parameter name="notification" type="NotifyNotification*"/>
<parameter name="icon" type="GdkPixbuf*"/>
</parameters>
</method>
<method name="set_timeout" symbol="notify_notification_set_timeout">
<return-type type="void"/>
<parameters>
<parameter name="notification" type="NotifyNotification*"/>
<parameter name="timeout" type="gint"/>
</parameters>
</method>
<method name="set_urgency" symbol="notify_notification_set_urgency">
<return-type type="void"/>
<parameters>
<parameter name="notification" type="NotifyNotification*"/>
<parameter name="urgency" type="NotifyUrgency"/>
</parameters>
</method>
<method name="show" symbol="notify_notification_show">
<return-type type="gboolean"/>
<parameters>
<parameter name="notification" type="NotifyNotification*"/>
<parameter name="error" type="GError**"/>
</parameters>
</method>
<method name="update" symbol="notify_notification_update">
<return-type type="gboolean"/>
<parameters>
<parameter name="notification" type="NotifyNotification*"/>
<parameter name="summary" type="const-gchar*"/>
<parameter name="body" type="const-gchar*"/>
<parameter name="icon" type="const-gchar*"/>
</parameters>
</method>
</object>
<function name="get_app_name" symbol="notify_get_app_name">
<return-type type="const-gchar*"/>
</function>
<function name="get_server_caps" symbol="notify_get_server_caps">
<return-type type="GList*"/>
</function>
<function name="get_server_info" symbol="notify_get_server_info">
<return-type type="gboolean"/>
<parameters>
<parameter name="ret_name" type="char**"/>
<parameter name="ret_vendor" type="char**"/>
<parameter name="ret_version" type="char**"/>
<parameter name="ret_spec_version" type="char**"/>
</parameters>
</function>
<function name="is_initted" symbol="notify_is_initted">
<return-type type="gboolean"/>
</function>
</namespace>
</api>
Notify cheader_filename="libnotify/notify.h"
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