[rhythmbox] python: add bindings for rating widget (bug #620069)
- From: Jonathan Matthew <jmatthew src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [rhythmbox] python: add bindings for rating widget (bug #620069)
- Date: Sun, 30 May 2010 06:47:25 +0000 (UTC)
commit 808ca1d54df2ecbf25fb9fc4d885ed3506689489
Author: Jonathan Matthew <jonathan d14n org>
Date: Sun May 30 16:46:00 2010 +1000
python: add bindings for rating widget (bug #620069)
bindings/python/rb.defs | 16 ++++++++++++++++
bindings/python/rb.override | 1 +
2 files changed, 17 insertions(+), 0 deletions(-)
---
diff --git a/bindings/python/rb.defs b/bindings/python/rb.defs
index 0aa27d0..19343a5 100644
--- a/bindings/python/rb.defs
+++ b/bindings/python/rb.defs
@@ -193,6 +193,13 @@
(gtype-id "RB_TYPE_TRACK_TRANSFER_QUEUE")
)
+(define-object Rating
+ (in-module "RB")
+ (parent "GtkWidget")
+ (c-name "RBRating")
+ (gtype-id "RB_TYPE_RATING")
+)
+
;; Enumerations and flags ...
(define-enum ShellPlayerError
@@ -3049,3 +3056,12 @@
'("RBSource*" "source")
)
)
+
+;; From rb-rating.h
+
+(define-function rating_new
+ (in-module "rb")
+ (c-name "rb_rating_new")
+ (is-constructor-of "RBRating")
+ (return-type "RBRating*")
+)
diff --git a/bindings/python/rb.override b/bindings/python/rb.override
index cd6c34c..6ad9821 100644
--- a/bindings/python/rb.override
+++ b/bindings/python/rb.override
@@ -27,6 +27,7 @@ headers
#include "rb-player-gst-data-tee.h"
#include "rb-plugin.h"
#include "rb-property-view.h"
+#include "rb-rating.h"
#include "rb-removable-media-manager.h"
#include "rb-removable-media-source.h"
#include "rb-search-entry.h"
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]