[Xfce4-commits] <xfce4-vala:master> Update libxfce4panel-1.0 package
Mike Massonnet
noreply at xfce.org
Mon Oct 22 18:18:01 CEST 2012
Updating branch refs/heads/master
to d7fa46dbe33073365f7b744712e04e8c62e7afb5 (commit)
from 8019cbb996dd8f8f6858c209dafb3bb310c3f227 (commit)
commit d7fa46dbe33073365f7b744712e04e8c62e7afb5
Author: Mike Massonnet <mmassonnet at gmail.com>
Date: Mon Oct 22 16:28:52 2012 +0200
Update libxfce4panel-1.0 package
.../libxfce4panel-1.0/libxfce4panel-1.0.defines | 2 +-
packages/libxfce4panel-1.0/libxfce4panel-1.0.gi | 76 ++++++++++++++++++--
.../libxfce4panel-1.0/libxfce4panel-1.0.metadata | 5 +-
vapi/libxfce4panel-1.0.vapi | 22 ++++++-
4 files changed, 93 insertions(+), 12 deletions(-)
diff --git a/packages/libxfce4panel-1.0/libxfce4panel-1.0.defines b/packages/libxfce4panel-1.0/libxfce4panel-1.0.defines
index 2d37f49..12f281a 100644
--- a/packages/libxfce4panel-1.0/libxfce4panel-1.0.defines
+++ b/packages/libxfce4panel-1.0/libxfce4panel-1.0.defines
@@ -1 +1 @@
--DLIBXFCE4PANEL_INSIDE_LIBXFCE4PANEL_H -DXFCE_DISABLE_DEPRECATED
+-DLIBXFCE4PANEL_COMPILATION
diff --git a/packages/libxfce4panel-1.0/libxfce4panel-1.0.gi b/packages/libxfce4panel-1.0/libxfce4panel-1.0.gi
index 45a1059..7b1c362 100644
--- a/packages/libxfce4panel-1.0/libxfce4panel-1.0.gi
+++ b/packages/libxfce4panel-1.0/libxfce4panel-1.0.gi
@@ -18,6 +18,15 @@
<parameter name="size" type="gint"/>
</parameters>
</function>
+ <function name="panel_pixbuf_from_source_at_size" symbol="xfce_panel_pixbuf_from_source_at_size">
+ <return-type type="GdkPixbuf*"/>
+ <parameters>
+ <parameter name="source" type="gchar*"/>
+ <parameter name="icon_theme" type="GtkIconTheme*"/>
+ <parameter name="dest_width" type="gint"/>
+ <parameter name="dest_height" type="gint"/>
+ </parameters>
+ </function>
<callback name="XfcePanelPluginCheck">
<return-type type="gboolean"/>
<parameters>
@@ -39,6 +48,11 @@
</callback>
<struct name="XfcePanelTypeModule">
</struct>
+ <enum name="XfcePanelPluginMode" type-name="XfcePanelPluginMode" get-type="xfce_panel_plugin_mode_get_type">
+ <member name="XFCE_PANEL_PLUGIN_MODE_HORIZONTAL" value="0"/>
+ <member name="XFCE_PANEL_PLUGIN_MODE_VERTICAL" value="1"/>
+ <member name="XFCE_PANEL_PLUGIN_MODE_DESKBAR" value="2"/>
+ </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"/>
@@ -201,12 +215,24 @@
<parameter name="plugin" type="XfcePanelPlugin*"/>
</parameters>
</method>
+ <method name="get_mode" symbol="xfce_panel_plugin_get_mode">
+ <return-type type="XfcePanelPluginMode"/>
+ <parameters>
+ <parameter name="plugin" type="XfcePanelPlugin*"/>
+ </parameters>
+ </method>
<method name="get_name" symbol="xfce_panel_plugin_get_name">
<return-type type="gchar*"/>
<parameters>
<parameter name="plugin" type="XfcePanelPlugin*"/>
</parameters>
</method>
+ <method name="get_nrows" symbol="xfce_panel_plugin_get_nrows">
+ <return-type type="guint"/>
+ <parameters>
+ <parameter name="plugin" type="XfcePanelPlugin*"/>
+ </parameters>
+ </method>
<method name="get_orientation" symbol="xfce_panel_plugin_get_orientation">
<return-type type="GtkOrientation"/>
<parameters>
@@ -225,12 +251,24 @@
<parameter name="plugin" type="XfcePanelPlugin*"/>
</parameters>
</method>
+ <method name="get_shrink" symbol="xfce_panel_plugin_get_shrink">
+ <return-type type="gboolean"/>
+ <parameters>
+ <parameter name="plugin" type="XfcePanelPlugin*"/>
+ </parameters>
+ </method>
<method name="get_size" symbol="xfce_panel_plugin_get_size">
<return-type type="gint"/>
<parameters>
<parameter name="plugin" type="XfcePanelPlugin*"/>
</parameters>
</method>
+ <method name="get_small" symbol="xfce_panel_plugin_get_small">
+ <return-type type="gboolean"/>
+ <parameters>
+ <parameter name="plugin" type="XfcePanelPlugin*"/>
+ </parameters>
+ </method>
<method name="get_unique_id" symbol="xfce_panel_plugin_get_unique_id">
<return-type type="gint"/>
<parameters>
@@ -309,6 +347,20 @@
<parameter name="expand" type="gboolean"/>
</parameters>
</method>
+ <method name="set_shrink" symbol="xfce_panel_plugin_set_shrink">
+ <return-type type="void"/>
+ <parameters>
+ <parameter name="plugin" type="XfcePanelPlugin*"/>
+ <parameter name="shrink" type="gboolean"/>
+ </parameters>
+ </method>
+ <method name="set_small" symbol="xfce_panel_plugin_set_small">
+ <return-type type="void"/>
+ <parameters>
+ <parameter name="plugin" type="XfcePanelPlugin*"/>
+ <parameter name="small" type="gboolean"/>
+ </parameters>
+ </method>
<method name="take_window" symbol="xfce_panel_plugin_take_window">
<return-type type="void"/>
<parameters>
@@ -326,10 +378,14 @@
<property name="comment" type="char*" readable="1" writable="1" construct="0" construct-only="1"/>
<property name="display-name" type="char*" readable="1" writable="1" construct="0" construct-only="1"/>
<property name="expand" type="gboolean" readable="1" writable="1" construct="0" construct-only="0"/>
+ <property name="mode" type="XfcePanelPluginMode" readable="1" writable="0" construct="0" construct-only="0"/>
<property name="name" type="char*" readable="1" writable="1" construct="0" construct-only="1"/>
+ <property name="nrows" type="guint" readable="1" writable="0" construct="0" construct-only="0"/>
<property name="orientation" type="GtkOrientation" readable="1" writable="0" construct="0" construct-only="0"/>
<property name="screen-position" type="XfceScreenPosition" readable="1" writable="0" construct="0" construct-only="0"/>
+ <property name="shrink" type="gboolean" readable="1" writable="1" construct="0" construct-only="0"/>
<property name="size" type="gint" readable="1" writable="0" construct="0" construct-only="0"/>
+ <property name="small" type="gboolean" readable="1" writable="1" construct="0" construct-only="0"/>
<property name="unique-id" type="gint" readable="1" writable="1" construct="0" construct-only="1"/>
<signal name="about" when="LAST">
<return-type type="void"/>
@@ -349,6 +405,20 @@
<parameter name="plugin" type="XfcePanelPlugin*"/>
</parameters>
</signal>
+ <signal name="mode-changed" when="LAST">
+ <return-type type="void"/>
+ <parameters>
+ <parameter name="plugin" type="XfcePanelPlugin*"/>
+ <parameter name="mode" type="XfcePanelPluginMode"/>
+ </parameters>
+ </signal>
+ <signal name="nrows-changed" when="LAST">
+ <return-type type="void"/>
+ <parameters>
+ <parameter name="plugin" type="XfcePanelPlugin*"/>
+ <parameter name="rows" type="guint"/>
+ </parameters>
+ </signal>
<signal name="orientation-changed" when="LAST">
<return-type type="void"/>
<parameters>
@@ -402,12 +472,6 @@
<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>
<constant name="PANEL_PARAM_READABLE" type="int" value="0"/>
<constant name="PANEL_PARAM_READWRITE" type="int" value="0"/>
diff --git a/packages/libxfce4panel-1.0/libxfce4panel-1.0.metadata b/packages/libxfce4panel-1.0/libxfce4panel-1.0.metadata
index be136a3..667f14b 100644
--- a/packages/libxfce4panel-1.0/libxfce4panel-1.0.metadata
+++ b/packages/libxfce4panel-1.0/libxfce4panel-1.0.metadata
@@ -3,10 +3,7 @@ Xfce cheader_filename="libxfce4panel/libxfce4panel.h"
xfce_panel_create_button hidden="1"
xfce_panel_create_toggle_button hidden="1"
-xfce_panel_plugin_reserved1 hidden="1"
-xfce_panel_plugin_reserved2 hidden="1"
-xfce_panel_plugin_reserved3 hidden="1"
-xfce_panel_plugin_reserved4 hidden="1"
+xfce_panel_plugin_reserved* hidden="1"
ScaledImageClass hidden="1"
G_PARAM_STATIC_STRINGS hidden="1"
diff --git a/vapi/libxfce4panel-1.0.vapi b/vapi/libxfce4panel-1.0.vapi
index 47463b8..f1b349b 100644
--- a/vapi/libxfce4panel-1.0.vapi
+++ b/vapi/libxfce4panel-1.0.vapi
@@ -1,4 +1,4 @@
-/* libxfce4panel-1.0.vapi generated by vapigen-0.16, do not modify. */
+/* libxfce4panel-1.0.vapi generated by vapigen, do not modify. */
namespace Xfce {
[CCode (cheader_filename = "libxfce4panel/libxfce4panel.h")]
@@ -50,10 +50,14 @@ namespace Xfce {
public unowned string get_display_name ();
public bool get_expand ();
public bool get_locked ();
+ public Xfce.PanelPluginMode get_mode ();
+ public uint get_nrows ();
public Gtk.Orientation get_orientation ();
public unowned string get_property_base ();
public Xfce.ScreenPosition get_screen_position ();
+ 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);
@@ -65,6 +69,8 @@ namespace Xfce {
public void remove ();
public unowned string save_location (bool create);
public void set_expand (bool expand);
+ public void set_shrink (bool shrink);
+ public void set_small (bool small);
public void take_window (Gtk.Window window);
public void unblock_menu ();
[CCode (array_length = false, array_null_terminated = true)]
@@ -72,14 +78,20 @@ namespace Xfce {
public string comment { get; construct; }
public string display_name { get; construct; }
public bool expand { get; set; }
+ public Xfce.PanelPluginMode mode { get; }
public string name { get; construct; }
+ public uint nrows { get; }
public Gtk.Orientation orientation { get; }
public Xfce.ScreenPosition screen_position { get; }
+ public bool shrink { get; set; }
public int size { get; }
+ public bool small { get; set; }
public int unique_id { get; construct; }
public virtual signal void about ();
public virtual signal void configure_plugin ();
public virtual signal void free_data ();
+ public virtual signal void mode_changed (Xfce.PanelPluginMode mode);
+ public virtual signal void nrows_changed (uint rows);
public virtual signal void orientation_changed (Gtk.Orientation orientation);
public virtual signal bool remote_event (string name, GLib.Value value);
public virtual signal void removed ();
@@ -94,6 +106,12 @@ namespace Xfce {
[CCode (cheader_filename = "libxfce4panel/libxfce4panel.h")]
public interface PanelPluginProvider {
}
+ [CCode (cheader_filename = "libxfce4panel/libxfce4panel.h", cprefix = "XFCE_PANEL_PLUGIN_MODE_")]
+ public enum PanelPluginMode {
+ HORIZONTAL,
+ VERTICAL,
+ DESKBAR
+ }
[CCode (cheader_filename = "libxfce4panel/libxfce4panel.h", cprefix = "XFCE_SCREEN_POSITION_")]
public enum ScreenPosition {
NONE,
@@ -126,4 +144,6 @@ namespace Xfce {
public static unowned string panel_get_channel_name ();
[CCode (cheader_filename = "libxfce4panel/libxfce4panel.h")]
public static unowned Gdk.Pixbuf panel_pixbuf_from_source (string source, Gtk.IconTheme icon_theme, int size);
+ [CCode (cheader_filename = "libxfce4panel/libxfce4panel.h")]
+ public static unowned Gdk.Pixbuf panel_pixbuf_from_source_at_size (string source, Gtk.IconTheme icon_theme, int dest_width, int dest_height);
}
More information about the Xfce4-commits
mailing list