aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorChristian Persch <chpe@svn.gnome.org>2007-01-29 03:56:01 +0800
committerChristian Persch <chpe@src.gnome.org>2007-01-29 03:56:01 +0800
commit2eee055dd76bfe30aea7758025cdd499aea95b4d (patch)
tree21b73c51d5f3188c67c802723bf0ea58362539b4
parent9f55ee3719b4ba01a4929ca0f9b1e71c24ebae84 (diff)
downloadgsoc2013-epiphany-2eee055dd76bfe30aea7758025cdd499aea95b4d.tar
gsoc2013-epiphany-2eee055dd76bfe30aea7758025cdd499aea95b4d.tar.gz
gsoc2013-epiphany-2eee055dd76bfe30aea7758025cdd499aea95b4d.tar.bz2
gsoc2013-epiphany-2eee055dd76bfe30aea7758025cdd499aea95b4d.tar.lz
gsoc2013-epiphany-2eee055dd76bfe30aea7758025cdd499aea95b4d.tar.xz
gsoc2013-epiphany-2eee055dd76bfe30aea7758025cdd499aea95b4d.tar.zst
gsoc2013-epiphany-2eee055dd76bfe30aea7758025cdd499aea95b4d.zip
Fix the wrapping of the singleton Ephy[Embed]Shell as "epiphany.Shell()".
2007-01-28 Christian Persch <chpe@svn.gnome.org> * src/epiphany.defs: * src/epiphany.override: Fix the wrapping of the singleton Ephy[Embed]Shell as "epiphany.Shell()". Bug #351705. svn path=/trunk/; revision=6854
-rw-r--r--ChangeLog8
-rw-r--r--src/epiphany.defs31
-rw-r--r--src/epiphany.override32
3 files changed, 56 insertions, 15 deletions
diff --git a/ChangeLog b/ChangeLog
index 23d54cbc4..801063b2a 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,5 +1,13 @@
2007-01-28 Christian Persch <chpe@svn.gnome.org>
+ * src/epiphany.defs:
+ * src/epiphany.override:
+
+ Fix the wrapping of the singleton Ephy[Embed]Shell as
+ "epiphany.Shell()". Bug #351705.
+
+2007-01-28 Christian Persch <chpe@svn.gnome.org>
+
* data/Makefile.am:
Fix schemas install command.
diff --git a/src/epiphany.defs b/src/epiphany.defs
index 8d7511948..3f224d122 100644
--- a/src/epiphany.defs
+++ b/src/epiphany.defs
@@ -3123,6 +3123,7 @@
;; From ../../src/ephy-shell.h
+
(define-function ephy_new_tab_flags_get_type
(c-name "ephy_new_tab_flags_get_type")
(return-type "GType")
@@ -3138,11 +3139,11 @@
(return-type "EphyShell*")
)
-(define-function ephy_shell_new
- (c-name "ephy_shell_new")
- (is-constructor-of "EphyShell")
- (return-type "EphyShell*")
-)
+;(define-function ephy_shell_new
+; (c-name "ephy_shell_new")
+; (is-constructor-of "EphyShell")
+; (return-type "EphyShell*")
+;)
(define-method new_tab
(of-object "EphyShell")
@@ -3237,11 +3238,11 @@
(return-type "GType")
)
-(define-function ephy_statusbar_new
- (c-name "ephy_statusbar_new")
- (is-constructor-of "EphyStatusbar")
- (return-type "GtkWidget*")
-)
+;(define-function ephy_statusbar_new
+; (c-name "ephy_statusbar_new")
+; (is-constructor-of "EphyStatusbar")
+; (return-type "GtkWidget*")
+;)
(define-method get_tooltips
(of-object "EphyStatusbar")
@@ -3311,11 +3312,11 @@
(return-type "GType")
)
-(define-function ephy_tab_new
- (c-name "ephy_tab_new")
- (is-constructor-of "EphyTab")
- (return-type "EphyTab*")
-)
+;(define-function ephy_tab_new
+; (c-name "ephy_tab_new")
+; (is-constructor-of "EphyTab")
+; (return-type "EphyTab*")
+;)
(define-method get_embed
(of-object "EphyTab")
diff --git a/src/epiphany.override b/src/epiphany.override
index 1676d4e1a..430aa0a3f 100644
--- a/src/epiphany.override
+++ b/src/epiphany.override
@@ -199,6 +199,38 @@ ignore
ephy_find_toolbar_close
ephy_find_toolbar_set_embed
%%
+override-slot EphyShell.tp_init
+
+static int
+_wrap_ephy_shell_tp_init(PyGObject *self, PyObject *args, PyObject *kwargs)
+{
+ static char *kwlist[] = { NULL };
+
+ if (!PyArg_ParseTupleAndKeywords(args, kwargs, ":epiphany.Shell.__init__", kwlist)) {
+ return -1;
+ }
+
+ self->obj = (GObject *) g_object_ref (ephy_shell_get_default());
+ pygobject_register_wrapper((PyObject *)self);
+ return 0;
+}
+%%
+override-slot EphyEmbedShell.tp_init
+
+static int
+_wrap_ephy_embed_shell_tp_init(PyGObject *self, PyObject *args, PyObject *kwargs)
+{
+ static char *kwlist[] = { NULL };
+
+ if (!PyArg_ParseTupleAndKeywords(args, kwargs, ":epiphany.EmbedShell.__init__", kwlist)) {
+ return -1;
+ }
+
+ self->obj = (GObject *) g_object_ref (ephy_embed_shell_get_default());
+ pygobject_register_wrapper((PyObject *)self);
+ return 0;
+}
+%%
override ephy_tab_get_size noargs
static PyObject *
_wrap_ephy_tab_get_size(PyGObject *self)