[Xfce4-commits] <xfce4-vala:master> Update libxfce4panel-1.0 package
Mike Massonnet
noreply at xfce.org
Tue Oct 23 02:16:01 CEST 2012
Updating branch refs/heads/master
to 7f967db6a037126b98dda2d199b78226b3a27d80 (commit)
from bac501f2889e311f3651dc9822fd418cd5c780cc (commit)
commit 7f967db6a037126b98dda2d199b78226b3a27d80
Author: Mike Massonnet <mmassonnet at gmail.com>
Date: Tue Oct 23 02:12:57 2012 +0200
Update libxfce4panel-1.0 package
No need for custom VAPI.
Xfce 4.6 macros are excluded.
Makefile.am | 3 +-
.../libxfce4panel-1.0-custom.vala | 17 -
.../libxfce4panel-1.0/libxfce4panel-1.0.excludes | 6 +-
packages/libxfce4panel-1.0/libxfce4panel-1.0.gi | 353 +++++++++++++++++++-
.../libxfce4panel-1.0/libxfce4panel-1.0.metadata | 12 +-
vapi/libxfce4panel-1.0.vapi | 92 +++++-
6 files changed, 438 insertions(+), 45 deletions(-)
diff --git a/Makefile.am b/Makefile.am
index e29ed74..eba288d 100644
--- a/Makefile.am
+++ b/Makefile.am
@@ -22,8 +22,7 @@ update-vapi:
$(VAPIGEN) --vapidir=. --library $(LIBXFCE4UI)\
../packages/$(LIBXFCE4UI)/$(LIBXFCE4UI).gi;\
$(VAPIGEN) --vapidir=. --library $(LIBXFCE4PANEL)\
- ../packages/$(LIBXFCE4PANEL)/$(LIBXFCE4PANEL).gi\
- ../packages/$(LIBXFCE4PANEL)/$(LIBXFCE4PANEL)-custom.vala;\
+ ../packages/$(LIBXFCE4PANEL)/$(LIBXFCE4PANEL).gi;\
$(VAPIGEN) --vapidir=. --library $(EXO)\
../packages/$(EXO)/$(EXO).gi\
../packages/$(EXO)/$(EXO)-custom.vala;\
diff --git a/packages/libxfce4panel-1.0/libxfce4panel-1.0-custom.vala b/packages/libxfce4panel-1.0/libxfce4panel-1.0-custom.vala
deleted file mode 100644
index a7e3f25..0000000
--- a/packages/libxfce4panel-1.0/libxfce4panel-1.0-custom.vala
+++ /dev/null
@@ -1,17 +0,0 @@
-namespace Xfce {
- public class PanelImage : Gtk.Widget {
- [CCode (has_construct_function=false)]
- public PanelImage ();
- [CCode (has_construct_function=false)]
- public PanelImage.from_pixbuf (Gdk.Pixbuf pixbuf);
- [CCode (has_construct_function=false)]
- public PanelImage.from_source (string source);
- public void set_from_pixbuf (Gdk.Pixbuf pixbuf);
- public void set_from_source (string source);
- public void clear ();
- }
- public interface PanelPluginProvider {
- }
- public unowned Gtk.Button panel_create_button ();
- public unowned Gtk.ToggleButton panel_create_toggle_button ();
-}
diff --git a/packages/libxfce4panel-1.0/libxfce4panel-1.0.excludes b/packages/libxfce4panel-1.0/libxfce4panel-1.0.excludes
index ffd034d..b58979b 100644
--- a/packages/libxfce4panel-1.0/libxfce4panel-1.0.excludes
+++ b/packages/libxfce4panel-1.0/libxfce4panel-1.0.excludes
@@ -1,5 +1 @@
-include/xfce4/libxfce4panel-1.0/libxfce4panel/libxfce4panel-config.h
-include/xfce4/libxfce4panel-1.0/libxfce4panel/libxfce4panel-deprecated.h
-include/xfce4/libxfce4panel-1.0/libxfce4panel/libxfce4panel.h
-include/xfce4/libxfce4panel-1.0/libxfce4panel/xfce-panel-image.h
-include/xfce4/libxfce4panel-1.0/libxfce4panel/xfce-panel-plugin-provider.h
+include/xfce4/libxfce4panel-1.0/libxfce4panel/xfce-panel-macros-46.h
diff --git a/packages/libxfce4panel-1.0/libxfce4panel-1.0.gi b/packages/libxfce4panel-1.0/libxfce4panel-1.0.gi
index 7b1c362..a6f1020 100644
--- a/packages/libxfce4panel-1.0/libxfce4panel-1.0.gi
+++ b/packages/libxfce4panel-1.0/libxfce4panel-1.0.gi
@@ -1,6 +1,14 @@
<?xml version="1.0"?>
<api version="1.0">
<namespace name="Xfce">
+ <function name="libxfce4panel_check_version" symbol="libxfce4panel_check_version">
+ <return-type type="gchar*"/>
+ <parameters>
+ <parameter name="required_major" type="guint"/>
+ <parameter name="required_minor" type="guint"/>
+ <parameter name="required_micro" type="guint"/>
+ </parameters>
+ </function>
<function name="panel_create_button" symbol="xfce_panel_create_button">
<return-type type="GtkWidget*"/>
</function>
@@ -27,6 +35,24 @@
<parameter name="dest_height" type="gint"/>
</parameters>
</function>
+ <callback name="PluginConstructFunc">
+ <return-type type="GtkWidget*"/>
+ <parameters>
+ <parameter name="name" type="gchar*"/>
+ <parameter name="unique_id" type="gint"/>
+ <parameter name="display_name" type="gchar*"/>
+ <parameter name="comment" type="gchar*"/>
+ <parameter name="arguments" type="gchar**"/>
+ <parameter name="screen" type="GdkScreen*"/>
+ </parameters>
+ </callback>
+ <callback name="PluginInitFunc">
+ <return-type type="GType"/>
+ <parameters>
+ <parameter name="module" type="GTypeModule*"/>
+ <parameter name="make_resident" type="gboolean*"/>
+ </parameters>
+ </callback>
<callback name="XfcePanelPluginCheck">
<return-type type="gboolean"/>
<parameters>
@@ -53,6 +79,45 @@
<member name="XFCE_PANEL_PLUGIN_MODE_VERTICAL" value="1"/>
<member name="XFCE_PANEL_PLUGIN_MODE_DESKBAR" value="2"/>
</enum>
+ <enum name="XfcePanelPluginProviderPropType">
+ <member name="PROVIDER_PROP_TYPE_SET_SIZE" value="0"/>
+ <member name="PROVIDER_PROP_TYPE_SET_MODE" value="1"/>
+ <member name="PROVIDER_PROP_TYPE_SET_SCREEN_POSITION" value="2"/>
+ <member name="PROVIDER_PROP_TYPE_SET_BACKGROUND_ALPHA" value="3"/>
+ <member name="PROVIDER_PROP_TYPE_SET_NROWS" value="4"/>
+ <member name="PROVIDER_PROP_TYPE_SET_LOCKED" value="5"/>
+ <member name="PROVIDER_PROP_TYPE_SET_SENSITIVE" value="6"/>
+ <member name="PROVIDER_PROP_TYPE_SET_BACKGROUND_COLOR" value="7"/>
+ <member name="PROVIDER_PROP_TYPE_SET_BACKGROUND_IMAGE" value="8"/>
+ <member name="PROVIDER_PROP_TYPE_ACTION_REMOVED" value="9"/>
+ <member name="PROVIDER_PROP_TYPE_ACTION_SAVE" value="10"/>
+ <member name="PROVIDER_PROP_TYPE_ACTION_QUIT" value="11"/>
+ <member name="PROVIDER_PROP_TYPE_ACTION_QUIT_FOR_RESTART" value="12"/>
+ <member name="PROVIDER_PROP_TYPE_ACTION_BACKGROUND_UNSET" value="13"/>
+ <member name="PROVIDER_PROP_TYPE_ACTION_SHOW_CONFIGURE" value="14"/>
+ <member name="PROVIDER_PROP_TYPE_ACTION_SHOW_ABOUT" value="15"/>
+ <member name="PROVIDER_PROP_TYPE_ACTION_ASK_REMOVE" value="16"/>
+ </enum>
+ <enum name="XfcePanelPluginProviderSignal">
+ <member name="PROVIDER_SIGNAL_MOVE_PLUGIN" value="0"/>
+ <member name="PROVIDER_SIGNAL_EXPAND_PLUGIN" value="1"/>
+ <member name="PROVIDER_SIGNAL_COLLAPSE_PLUGIN" value="2"/>
+ <member name="PROVIDER_SIGNAL_SMALL_PLUGIN" value="3"/>
+ <member name="PROVIDER_SIGNAL_UNSMALL_PLUGIN" value="4"/>
+ <member name="PROVIDER_SIGNAL_LOCK_PANEL" value="5"/>
+ <member name="PROVIDER_SIGNAL_UNLOCK_PANEL" value="6"/>
+ <member name="PROVIDER_SIGNAL_REMOVE_PLUGIN" value="7"/>
+ <member name="PROVIDER_SIGNAL_ADD_NEW_ITEMS" value="8"/>
+ <member name="PROVIDER_SIGNAL_PANEL_PREFERENCES" value="9"/>
+ <member name="PROVIDER_SIGNAL_PANEL_LOGOUT" value="10"/>
+ <member name="PROVIDER_SIGNAL_PANEL_ABOUT" value="11"/>
+ <member name="PROVIDER_SIGNAL_PANEL_HELP" value="12"/>
+ <member name="PROVIDER_SIGNAL_SHOW_CONFIGURE" value="13"/>
+ <member name="PROVIDER_SIGNAL_SHOW_ABOUT" value="14"/>
+ <member name="PROVIDER_SIGNAL_FOCUS_PLUGIN" value="15"/>
+ <member name="PROVIDER_SIGNAL_SHRINK_PLUGIN" value="16"/>
+ <member name="PROVIDER_SIGNAL_UNSHRINK_PLUGIN" value="17"/>
+ </enum>
<enum name="XfceScreenPosition" type-name="XfceScreenPosition" get-type="xfce_screen_position_get_type">
<member name="XFCE_SCREEN_POSITION_NONE" value="0"/>
<member name="XFCE_SCREEN_POSITION_NW_H" value="1"/>
@@ -146,6 +211,75 @@
</method>
<field name="orientation" type="GtkOrientation"/>
</object>
+ <object name="XfcePanelImage" parent="GtkWidget" type-name="XfcePanelImage" get-type="xfce_panel_image_get_type">
+ <implements>
+ <interface name="AtkImplementor"/>
+ <interface name="GtkBuildable"/>
+ </implements>
+ <method name="clear" symbol="xfce_panel_image_clear">
+ <return-type type="void"/>
+ <parameters>
+ <parameter name="image" type="XfcePanelImage*"/>
+ </parameters>
+ </method>
+ <method name="get_size" symbol="xfce_panel_image_get_size">
+ <return-type type="gint"/>
+ <parameters>
+ <parameter name="image" type="XfcePanelImage*"/>
+ </parameters>
+ </method>
+ <constructor name="new" symbol="xfce_panel_image_new">
+ <return-type type="GtkWidget*"/>
+ </constructor>
+ <constructor name="new_from_pixbuf" symbol="xfce_panel_image_new_from_pixbuf">
+ <return-type type="GtkWidget*"/>
+ <parameters>
+ <parameter name="pixbuf" type="GdkPixbuf*"/>
+ </parameters>
+ </constructor>
+ <constructor name="new_from_source" symbol="xfce_panel_image_new_from_source">
+ <return-type type="GtkWidget*"/>
+ <parameters>
+ <parameter name="source" type="gchar*"/>
+ </parameters>
+ </constructor>
+ <method name="set_from_pixbuf" symbol="xfce_panel_image_set_from_pixbuf">
+ <return-type type="void"/>
+ <parameters>
+ <parameter name="image" type="XfcePanelImage*"/>
+ <parameter name="pixbuf" type="GdkPixbuf*"/>
+ </parameters>
+ </method>
+ <method name="set_from_source" symbol="xfce_panel_image_set_from_source">
+ <return-type type="void"/>
+ <parameters>
+ <parameter name="image" type="XfcePanelImage*"/>
+ <parameter name="source" type="gchar*"/>
+ </parameters>
+ </method>
+ <method name="set_size" symbol="xfce_panel_image_set_size">
+ <return-type type="void"/>
+ <parameters>
+ <parameter name="image" type="XfcePanelImage*"/>
+ <parameter name="size" type="gint"/>
+ </parameters>
+ </method>
+ <property name="pixbuf" type="GdkPixbuf*" readable="1" writable="1" construct="0" construct-only="0"/>
+ <property name="size" type="gint" readable="1" writable="1" construct="0" construct-only="0"/>
+ <property name="source" type="char*" readable="1" writable="1" construct="0" construct-only="0"/>
+ <vfunc name="reserved1">
+ <return-type type="void"/>
+ </vfunc>
+ <vfunc name="reserved2">
+ <return-type type="void"/>
+ </vfunc>
+ <vfunc name="reserved3">
+ <return-type type="void"/>
+ </vfunc>
+ <vfunc name="reserved4">
+ <return-type type="void"/>
+ </vfunc>
+ </object>
<object name="XfcePanelPlugin" parent="GtkEventBox" type-name="XfcePanelPlugin" get-type="xfce_panel_plugin_get_type">
<implements>
<interface name="AtkImplementor"/>
@@ -473,8 +607,221 @@
<return-type type="void"/>
</vfunc>
</object>
- <constant name="PANEL_PARAM_READABLE" type="int" value="0"/>
- <constant name="PANEL_PARAM_READWRITE" type="int" value="0"/>
- <constant name="PANEL_PARAM_WRITABLE" type="int" value="0"/>
+ <interface name="XfcePanelPluginProvider" type-name="XfcePanelPluginProvider" get-type="xfce_panel_plugin_provider_get_type">
+ <method name="ask_remove" symbol="xfce_panel_plugin_provider_ask_remove">
+ <return-type type="void"/>
+ <parameters>
+ <parameter name="provider" type="XfcePanelPluginProvider*"/>
+ </parameters>
+ </method>
+ <method name="emit_signal" symbol="xfce_panel_plugin_provider_emit_signal">
+ <return-type type="void"/>
+ <parameters>
+ <parameter name="provider" type="XfcePanelPluginProvider*"/>
+ <parameter name="provider_signal" type="XfcePanelPluginProviderSignal"/>
+ </parameters>
+ </method>
+ <method name="get_name" symbol="xfce_panel_plugin_provider_get_name">
+ <return-type type="gchar*"/>
+ <parameters>
+ <parameter name="provider" type="XfcePanelPluginProvider*"/>
+ </parameters>
+ </method>
+ <method name="get_show_about" symbol="xfce_panel_plugin_provider_get_show_about">
+ <return-type type="gboolean"/>
+ <parameters>
+ <parameter name="provider" type="XfcePanelPluginProvider*"/>
+ </parameters>
+ </method>
+ <method name="get_show_configure" symbol="xfce_panel_plugin_provider_get_show_configure">
+ <return-type type="gboolean"/>
+ <parameters>
+ <parameter name="provider" type="XfcePanelPluginProvider*"/>
+ </parameters>
+ </method>
+ <method name="get_unique_id" symbol="xfce_panel_plugin_provider_get_unique_id">
+ <return-type type="gint"/>
+ <parameters>
+ <parameter name="provider" type="XfcePanelPluginProvider*"/>
+ </parameters>
+ </method>
+ <method name="remote_event" symbol="xfce_panel_plugin_provider_remote_event">
+ <return-type type="gboolean"/>
+ <parameters>
+ <parameter name="provider" type="XfcePanelPluginProvider*"/>
+ <parameter name="name" type="gchar*"/>
+ <parameter name="value" type="GValue*"/>
+ <parameter name="handle" type="guint*"/>
+ </parameters>
+ </method>
+ <method name="removed" symbol="xfce_panel_plugin_provider_removed">
+ <return-type type="void"/>
+ <parameters>
+ <parameter name="provider" type="XfcePanelPluginProvider*"/>
+ </parameters>
+ </method>
+ <method name="save" symbol="xfce_panel_plugin_provider_save">
+ <return-type type="void"/>
+ <parameters>
+ <parameter name="provider" type="XfcePanelPluginProvider*"/>
+ </parameters>
+ </method>
+ <method name="set_locked" symbol="xfce_panel_plugin_provider_set_locked">
+ <return-type type="void"/>
+ <parameters>
+ <parameter name="provider" type="XfcePanelPluginProvider*"/>
+ <parameter name="locked" type="gboolean"/>
+ </parameters>
+ </method>
+ <method name="set_mode" symbol="xfce_panel_plugin_provider_set_mode">
+ <return-type type="void"/>
+ <parameters>
+ <parameter name="provider" type="XfcePanelPluginProvider*"/>
+ <parameter name="mode" type="XfcePanelPluginMode"/>
+ </parameters>
+ </method>
+ <method name="set_nrows" symbol="xfce_panel_plugin_provider_set_nrows">
+ <return-type type="void"/>
+ <parameters>
+ <parameter name="provider" type="XfcePanelPluginProvider*"/>
+ <parameter name="rows" type="guint"/>
+ </parameters>
+ </method>
+ <method name="set_screen_position" symbol="xfce_panel_plugin_provider_set_screen_position">
+ <return-type type="void"/>
+ <parameters>
+ <parameter name="provider" type="XfcePanelPluginProvider*"/>
+ <parameter name="screen_position" type="XfceScreenPosition"/>
+ </parameters>
+ </method>
+ <method name="set_size" symbol="xfce_panel_plugin_provider_set_size">
+ <return-type type="void"/>
+ <parameters>
+ <parameter name="provider" type="XfcePanelPluginProvider*"/>
+ <parameter name="size" type="gint"/>
+ </parameters>
+ </method>
+ <method name="show_about" symbol="xfce_panel_plugin_provider_show_about">
+ <return-type type="void"/>
+ <parameters>
+ <parameter name="provider" type="XfcePanelPluginProvider*"/>
+ </parameters>
+ </method>
+ <method name="show_configure" symbol="xfce_panel_plugin_provider_show_configure">
+ <return-type type="void"/>
+ <parameters>
+ <parameter name="provider" type="XfcePanelPluginProvider*"/>
+ </parameters>
+ </method>
+ <signal name="provider-signal" when="LAST">
+ <return-type type="void"/>
+ <parameters>
+ <parameter name="object" type="XfcePanelPluginProvider*"/>
+ <parameter name="p0" type="guint"/>
+ </parameters>
+ </signal>
+ <vfunc name="ask_remove">
+ <return-type type="void"/>
+ <parameters>
+ <parameter name="provider" type="XfcePanelPluginProvider*"/>
+ </parameters>
+ </vfunc>
+ <vfunc name="get_name">
+ <return-type type="gchar*"/>
+ <parameters>
+ <parameter name="provider" type="XfcePanelPluginProvider*"/>
+ </parameters>
+ </vfunc>
+ <vfunc name="get_show_about">
+ <return-type type="gboolean"/>
+ <parameters>
+ <parameter name="provider" type="XfcePanelPluginProvider*"/>
+ </parameters>
+ </vfunc>
+ <vfunc name="get_show_configure">
+ <return-type type="gboolean"/>
+ <parameters>
+ <parameter name="provider" type="XfcePanelPluginProvider*"/>
+ </parameters>
+ </vfunc>
+ <vfunc name="get_unique_id">
+ <return-type type="gint"/>
+ <parameters>
+ <parameter name="provider" type="XfcePanelPluginProvider*"/>
+ </parameters>
+ </vfunc>
+ <vfunc name="remote_event">
+ <return-type type="gboolean"/>
+ <parameters>
+ <parameter name="provider" type="XfcePanelPluginProvider*"/>
+ <parameter name="name" type="gchar*"/>
+ <parameter name="value" type="GValue*"/>
+ <parameter name="handle" type="guint*"/>
+ </parameters>
+ </vfunc>
+ <vfunc name="removed">
+ <return-type type="void"/>
+ <parameters>
+ <parameter name="provider" type="XfcePanelPluginProvider*"/>
+ </parameters>
+ </vfunc>
+ <vfunc name="save">
+ <return-type type="void"/>
+ <parameters>
+ <parameter name="provider" type="XfcePanelPluginProvider*"/>
+ </parameters>
+ </vfunc>
+ <vfunc name="set_locked">
+ <return-type type="void"/>
+ <parameters>
+ <parameter name="provider" type="XfcePanelPluginProvider*"/>
+ <parameter name="locked" type="gboolean"/>
+ </parameters>
+ </vfunc>
+ <vfunc name="set_mode">
+ <return-type type="void"/>
+ <parameters>
+ <parameter name="provider" type="XfcePanelPluginProvider*"/>
+ <parameter name="mode" type="XfcePanelPluginMode"/>
+ </parameters>
+ </vfunc>
+ <vfunc name="set_nrows">
+ <return-type type="void"/>
+ <parameters>
+ <parameter name="provider" type="XfcePanelPluginProvider*"/>
+ <parameter name="rows" type="guint"/>
+ </parameters>
+ </vfunc>
+ <vfunc name="set_screen_position">
+ <return-type type="void"/>
+ <parameters>
+ <parameter name="provider" type="XfcePanelPluginProvider*"/>
+ <parameter name="screen_position" type="XfceScreenPosition"/>
+ </parameters>
+ </vfunc>
+ <vfunc name="set_size">
+ <return-type type="void"/>
+ <parameters>
+ <parameter name="provider" type="XfcePanelPluginProvider*"/>
+ <parameter name="size" type="gint"/>
+ </parameters>
+ </vfunc>
+ <vfunc name="show_about">
+ <return-type type="void"/>
+ <parameters>
+ <parameter name="provider" type="XfcePanelPluginProvider*"/>
+ </parameters>
+ </vfunc>
+ <vfunc name="show_configure">
+ <return-type type="void"/>
+ <parameters>
+ <parameter name="provider" type="XfcePanelPluginProvider*"/>
+ </parameters>
+ </vfunc>
+ </interface>
+ <constant name="LIBXFCE4PANEL_MAJOR_VERSION" type="int" value="4"/>
+ <constant name="LIBXFCE4PANEL_MICRO_VERSION" type="int" value="0"/>
+ <constant name="LIBXFCE4PANEL_MINOR_VERSION" type="int" value="10"/>
+ <constant name="LIBXFCE4PANEL_VERSION" type="char*" value="4.10.0git-e3e5071"/>
</namespace>
</api>
diff --git a/packages/libxfce4panel-1.0/libxfce4panel-1.0.metadata b/packages/libxfce4panel-1.0/libxfce4panel-1.0.metadata
index 667f14b..857be91 100644
--- a/packages/libxfce4panel-1.0/libxfce4panel-1.0.metadata
+++ b/packages/libxfce4panel-1.0/libxfce4panel-1.0.metadata
@@ -1,12 +1,2 @@
Xfce cheader_filename="libxfce4panel/libxfce4panel.h"
-
-xfce_panel_create_button hidden="1"
-xfce_panel_create_toggle_button hidden="1"
-
-xfce_panel_plugin_reserved* hidden="1"
-
-ScaledImageClass hidden="1"
-G_PARAM_STATIC_STRINGS hidden="1"
-PANEL_PARAM_READABLE hidden="1"
-PANEL_PARAM_READWRITE hidden="1"
-PANEL_PARAM_WRITABLE hidden="1"
+*reserved* hidden="1"
diff --git a/vapi/libxfce4panel-1.0.vapi b/vapi/libxfce4panel-1.0.vapi
index b799183..9260c69 100644
--- a/vapi/libxfce4panel-1.0.vapi
+++ b/vapi/libxfce4panel-1.0.vapi
@@ -23,16 +23,23 @@ namespace Xfce {
public void set_orientation (Gtk.Orientation orientation);
}
[CCode (cheader_filename = "libxfce4panel/libxfce4panel.h")]
- public class PanelImage : Gtk.Widget {
- [CCode (has_construct_function = false)]
+ public class PanelImage : Gtk.Widget, Atk.Implementor, Gtk.Buildable {
+ [CCode (has_construct_function = false, type = "GtkWidget*")]
public PanelImage ();
public void clear ();
- [CCode (has_construct_function = false)]
+ [CCode (has_construct_function = false, type = "GtkWidget*")]
public PanelImage.from_pixbuf (Gdk.Pixbuf pixbuf);
- [CCode (has_construct_function = false)]
+ [CCode (has_construct_function = false, type = "GtkWidget*")]
public PanelImage.from_source (string source);
+ public int get_size ();
public void set_from_pixbuf (Gdk.Pixbuf pixbuf);
public void set_from_source (string source);
+ public void set_size (int size);
+ [NoAccessorMethod]
+ public Gdk.Pixbuf pixbuf { owned get; set; }
+ public int size { get; set; }
+ [NoAccessorMethod]
+ public string source { owned get; set; }
}
[CCode (cheader_filename = "libxfce4panel/libxfce4panel.h")]
public class PanelPlugin : Gtk.EventBox, Atk.Implementor, Gtk.Buildable, Xfce.PanelPluginProvider {
@@ -58,7 +65,6 @@ namespace Xfce {
public bool get_shrink ();
public int get_size ();
public bool get_small ();
- public int get_unique_id ();
public unowned string lookup_rc_file ();
public void menu_insert_item (Gtk.MenuItem item);
public void menu_show_about ();
@@ -105,6 +111,23 @@ namespace Xfce {
}
[CCode (cheader_filename = "libxfce4panel/libxfce4panel.h")]
public interface PanelPluginProvider {
+ public abstract void ask_remove ();
+ public void emit_signal (Xfce.PanelPluginProviderSignal provider_signal);
+ public abstract unowned string get_name ();
+ public abstract bool get_show_about ();
+ public abstract bool get_show_configure ();
+ public abstract int get_unique_id ();
+ public abstract bool remote_event (string name, GLib.Value value, uint handle);
+ public abstract void removed ();
+ public abstract void save ();
+ public abstract void set_locked (bool locked);
+ public abstract void set_mode (Xfce.PanelPluginMode mode);
+ public abstract void set_nrows (uint rows);
+ public abstract void set_screen_position (Xfce.ScreenPosition screen_position);
+ public abstract void set_size (int size);
+ public abstract void show_about ();
+ public abstract void show_configure ();
+ public signal void provider_signal (uint p0);
}
[CCode (cheader_filename = "libxfce4panel/libxfce4panel.h", cprefix = "XFCE_PANEL_PLUGIN_MODE_")]
public enum PanelPluginMode {
@@ -112,6 +135,47 @@ namespace Xfce {
VERTICAL,
DESKBAR
}
+ [CCode (cheader_filename = "libxfce4panel/libxfce4panel.h", cprefix = "PROVIDER_PROP_TYPE_", has_type_id = false)]
+ public enum PanelPluginProviderPropType {
+ SET_SIZE,
+ SET_MODE,
+ SET_SCREEN_POSITION,
+ SET_BACKGROUND_ALPHA,
+ SET_NROWS,
+ SET_LOCKED,
+ SET_SENSITIVE,
+ SET_BACKGROUND_COLOR,
+ SET_BACKGROUND_IMAGE,
+ ACTION_REMOVED,
+ ACTION_SAVE,
+ ACTION_QUIT,
+ ACTION_QUIT_FOR_RESTART,
+ ACTION_BACKGROUND_UNSET,
+ ACTION_SHOW_CONFIGURE,
+ ACTION_SHOW_ABOUT,
+ ACTION_ASK_REMOVE
+ }
+ [CCode (cheader_filename = "libxfce4panel/libxfce4panel.h", cprefix = "PROVIDER_SIGNAL_", has_type_id = false)]
+ public enum PanelPluginProviderSignal {
+ MOVE_PLUGIN,
+ EXPAND_PLUGIN,
+ COLLAPSE_PLUGIN,
+ SMALL_PLUGIN,
+ UNSMALL_PLUGIN,
+ LOCK_PANEL,
+ UNLOCK_PANEL,
+ REMOVE_PLUGIN,
+ ADD_NEW_ITEMS,
+ PANEL_PREFERENCES,
+ PANEL_LOGOUT,
+ PANEL_ABOUT,
+ PANEL_HELP,
+ SHOW_CONFIGURE,
+ SHOW_ABOUT,
+ FOCUS_PLUGIN,
+ SHRINK_PLUGIN,
+ UNSHRINK_PLUGIN
+ }
[CCode (cheader_filename = "libxfce4panel/libxfce4panel.h", cprefix = "XFCE_SCREEN_POSITION_")]
public enum ScreenPosition {
NONE,
@@ -136,10 +200,24 @@ namespace Xfce {
public delegate void PanelPluginFunc (Xfce.PanelPlugin plugin);
[CCode (cheader_filename = "libxfce4panel/libxfce4panel.h", has_target = false)]
public delegate bool PanelPluginPreInit (int argc, string argv);
+ [CCode (cheader_filename = "libxfce4panel/libxfce4panel.h", has_target = false)]
+ public delegate unowned Gtk.Widget PluginConstructFunc (string name, int unique_id, string display_name, string comment, string arguments, Gdk.Screen screen);
+ [CCode (cheader_filename = "libxfce4panel/libxfce4panel.h", has_target = false)]
+ public delegate GLib.Type PluginInitFunc (GLib.TypeModule module, bool make_resident);
+ [CCode (cheader_filename = "libxfce4panel/libxfce4panel.h")]
+ public const int LIBXFCE4PANEL_MAJOR_VERSION;
+ [CCode (cheader_filename = "libxfce4panel/libxfce4panel.h")]
+ public const int LIBXFCE4PANEL_MICRO_VERSION;
+ [CCode (cheader_filename = "libxfce4panel/libxfce4panel.h")]
+ public const int LIBXFCE4PANEL_MINOR_VERSION;
+ [CCode (cheader_filename = "libxfce4panel/libxfce4panel.h")]
+ public const string LIBXFCE4PANEL_VERSION;
+ [CCode (cheader_filename = "libxfce4panel/libxfce4panel.h", cname = "libxfce4panel_check_version")]
+ public static unowned string libxfce4panel_check_version (uint required_major, uint required_minor, uint required_micro);
[CCode (cheader_filename = "libxfce4panel/libxfce4panel.h")]
- public static unowned Gtk.Button panel_create_button ();
+ public static unowned Gtk.Widget panel_create_button ();
[CCode (cheader_filename = "libxfce4panel/libxfce4panel.h")]
- public static unowned Gtk.ToggleButton panel_create_toggle_button ();
+ public static unowned Gtk.Widget panel_create_toggle_button ();
[CCode (cheader_filename = "libxfce4panel/libxfce4panel.h")]
public static unowned string panel_get_channel_name ();
[CCode (cheader_filename = "libxfce4panel/libxfce4panel.h")]
More information about the Xfce4-commits
mailing list