[totem] Update vala bindings
- From: Bastien Nocera <hadess src gnome org>
- To: svn-commits-list gnome org
- Cc:
- Subject: [totem] Update vala bindings
- Date: Mon, 15 Feb 2010 14:12:59 +0000 (UTC)
commit 3b6ae8054f5bd46cd9e3974931200309a602e684
Author: Simon Wenner <simon wenner ch>
Date: Mon Feb 15 14:12:08 2010 +0000
Update vala bindings
Bind more of Totem in the Vala bindings, and fix the bindings
for the video list widget.
https://bugzilla.gnome.org/show_bug.cgi?id=609844
bindings/vala/totem.vapi | 58 +++++++++++++++++++++++++++++++++++++++++++--
1 files changed, 55 insertions(+), 3 deletions(-)
---
diff --git a/bindings/vala/totem.vapi b/bindings/vala/totem.vapi
index cf3027a..4c6de91 100644
--- a/bindings/vala/totem.vapi
+++ b/bindings/vala/totem.vapi
@@ -13,16 +13,67 @@ namespace Totem {
[CCode (cname = "totem_metadata_updated")]
public void metadata_updated (string artist, string title, string album, uint track_num);
- [CCode (cname = "totem_action_fullscreen_toggle")]
- public void action_fullscreen_toggle ();
[CCode (cname = "totem_action_error", instance_pos = 3)]
public void action_error (string title, string reason);
[CCode (cname = "totem_add_to_playlist_and_play")]
public void add_to_playlist_and_play (string uri, string display_name, bool add_to_recent);
+ [CCode (cname = "totem_action_exit")]
+ public void action_exit ();
[CCode (cname = "totem_action_play")]
public void action_play ();
+ [CCode (cname = "totem_action_stop")]
+ public void action_stop ();
+ [CCode (cname = "totem_action_play_pause")]
+ public void action_play_pause ();
+ [CCode (cname = "totem_action_pause")]
+ public void action_pause ();
+ [CCode (cname = "totem_action_next")]
+ public void action_next ();
+ [CCode (cname = "totem_action_previous")]
+ public void action_previous ();
+ [CCode (cname = "totem_action_seek_time")]
+ public void action_seek_time (int64 sec);
+ [CCode (cname = "totem_action_seek_relative")]
+ public void action_seek_relative (int64 offset);
+
+ [CCode (cname = "totem_get_volume")]
+ public double get_volume ();
+ [CCode (cname = "totem_action_volume")]
+ public void action_volume (double volume);
+ [CCode (cname = "totem_action_volume_relative")]
+ public void action_volume_relative (double off_pct);
+ [CCode (cname = "totem_action_volume_toggle_mute")]
+ public void action_volume_toggle_mute ();
+
+ [CCode (cname = "totem_action_fullscreen_toggle")]
+ public void action_fullscreen_toggle ();
+ [CCode (cname = "totem_action_fullscreen")]
+ public void action_fullscreen (bool state);
+ [CCode (cname = "totem_is_fullscreen")]
+ public bool is_fullscreen ();
+ [CCode (cname = "totem_is_playing")]
+ public bool is_playing ();
+ [CCode (cname = "totem_is_paused")]
+ public bool is_paused ();
+ [CCode (cname = "totem_is_seekable")]
+ public bool is_seekable ();
+
+ [CCode (cname = "totem_get_main_window")]
+ public Gtk.Window get_main_window ();
+ [CCode (cname = "totem_get_ui_manager")]
+ public Gtk.UIManager get_ui_manager ();
+ [CCode (cname = "totem_get_video_widget")]
+ public Gtk.Widget get_video_widget ();
+
+ /* Current media information */
+ [CCode (cname = "totem_get_short_title")]
+ public string get_short_title ();
+ [CCode (cname = "totem_get_current_time")]
+ public int64 get_current_time ();
+
+ /* Sidebar handling */
[CCode (cname = "totem_add_sidebar_page")]
public void add_sidebar_page (string page_id, string title, Gtk.Widget main_widget);
[CCode (cname = "totem_remove_sidebar_page")]
@@ -42,11 +93,12 @@ namespace Totem {
[CCode (cname = "totem_video_list_get_type")]
public static GLib.Type get_type ();
[CCode (cname = "totem_video_list_new")]
+ [CCode (has_construct_function = false)]
public VideoList ();
[CCode (cname = "totem_video_list_get_ui_manager")]
public Gtk.UIManager get_ui_manager ();
- public virtual bool starting_video (Gtk.TreePath path);
+ public virtual signal bool starting_video (Gtk.TreePath path);
}
[CCode (cheader_filename = "totem-plugin.h")]
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]