[rhythmbox] python: add bindings for RBSearchEntry
- From: Jonathan Matthew <jmatthew src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [rhythmbox] python: add bindings for RBSearchEntry
- Date: Sun, 21 Feb 2010 09:48:48 +0000 (UTC)
commit 6cf4def3acf95ac757918cf5c1c6b7a1e638e45e
Author: Jonathan Matthew <jonathan d14n org>
Date: Sun Feb 21 19:48:00 2010 +1000
python: add bindings for RBSearchEntry
bindings/python/Makefile.am | 1 +
bindings/python/rb.defs | 47 +++++++++++++++++++++++++++++++++++++++++++
bindings/python/rb.override | 1 +
3 files changed, 49 insertions(+), 0 deletions(-)
---
diff --git a/bindings/python/Makefile.am b/bindings/python/Makefile.am
index 36a1818..8786452 100644
--- a/bindings/python/Makefile.am
+++ b/bindings/python/Makefile.am
@@ -78,6 +78,7 @@ BINDING_HEADERS_SRCDIR_IN = \
widgets/rb-entry-view.h \
widgets/rb-library-browser.h \
widgets/rb-property-view.h \
+ widgets/rb-search-entry.h \
widgets/rb-song-info.h \
widgets/rb-uri-dialog.h \
$(NULL)
diff --git a/bindings/python/rb.defs b/bindings/python/rb.defs
index d80ce91..911a1c7 100644
--- a/bindings/python/rb.defs
+++ b/bindings/python/rb.defs
@@ -172,6 +172,13 @@
(gtype-id "RB_TYPE_METADATA")
)
+(define-object SearchEntry
+ (in-module "RB")
+ (parent "GtkHBox")
+ (c-name "RBSearchEntry")
+ (gtype-id "RB_TYPE_SEARCH_ENTRY")
+)
+
;; Enumerations and flags ...
@@ -2848,3 +2855,43 @@
'("const-GValue*" "val")
)
)
+
+;; From rb-search-entry.h
+
+(define-function rb_search_entry_get_type
+ (c-name "rb_search_entry_get_type")
+ (return-type "GType")
+)
+
+(define-function rb_search_entry_new
+ (c-name "rb_search_entry_new")
+ (is-constructor-of "RbSearchEntry")
+ (return-type "RBSearchEntry*")
+)
+
+(define-method clear
+ (of-object "RBSearchEntry")
+ (c-name "rb_search_entry_clear")
+ (return-type "none")
+)
+
+(define-method set_text
+ (of-object "RBSearchEntry")
+ (c-name "rb_search_entry_set_text")
+ (return-type "none")
+ (parameters
+ '("const-char*" "text")
+ )
+)
+
+(define-method searching
+ (of-object "RBSearchEntry")
+ (c-name "rb_search_entry_searching")
+ (return-type "gboolean")
+)
+
+(define-method grab_focus
+ (of-object "RBSearchEntry")
+ (c-name "rb_search_entry_grab_focus")
+ (return-type "none")
+)
diff --git a/bindings/python/rb.override b/bindings/python/rb.override
index e35a462..4282aed 100644
--- a/bindings/python/rb.override
+++ b/bindings/python/rb.override
@@ -28,6 +28,7 @@ headers
#include "rb-property-view.h"
#include "rb-removable-media-manager.h"
#include "rb-removable-media-source.h"
+#include "rb-search-entry.h"
#include "rb-shell.h"
#include "rb-shell-player.h"
#include "rb-source.h"
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]