diff options
author | Jean-François Rameau <jframeau@cvs.gnome.org> | 2006-06-26 04:14:24 +0800 |
---|---|---|
committer | Jean-François Rameau <jframeau@src.gnome.org> | 2006-06-26 04:14:24 +0800 |
commit | 30c3723d82aa9e8eb15f2d8db0d5b8f095bd301f (patch) | |
tree | 184cdd14762d126c4f1b8b6afb5a1d5ed26afc71 /src | |
parent | 00ee1336b99ee345e3dbda24e83354fde4cdce77 (diff) | |
download | gsoc2013-epiphany-30c3723d82aa9e8eb15f2d8db0d5b8f095bd301f.tar.gz gsoc2013-epiphany-30c3723d82aa9e8eb15f2d8db0d5b8f095bd301f.tar.zst gsoc2013-epiphany-30c3723d82aa9e8eb15f2d8db0d5b8f095bd301f.zip |
Add EphyFindToolbar type to Python binding. Bug #345837.
2006-06-25 Jean-François Rameau <jframeau@cvs.gnome.org>
* src/epiphany.defs:
* src/epiphany.override:
* src/Makefile.am:
Add EphyFindToolbar type to Python binding.
Bug #345837.
Diffstat (limited to 'src')
-rw-r--r-- | src/Makefile.am | 2 | ||||
-rw-r--r-- | src/epiphany.defs | 73 | ||||
-rw-r--r-- | src/epiphany.override | 4 |
3 files changed, 78 insertions, 1 deletions
diff --git a/src/Makefile.am b/src/Makefile.am index 5cd77cb2c..e2abb81c0 100644 --- a/src/Makefile.am +++ b/src/Makefile.am @@ -353,6 +353,7 @@ BINDING_HEADERS_SRCDIR_IN = \ src/bookmarks/ephy-bookmarks.h \ src/ephy-extension.h \ src/ephy-extensions-manager.h \ + src/ephy-find-toolbar.h \ src/ephy-link-action.h \ src/ephy-link.h \ src/ephy-location-action.h \ @@ -429,7 +430,6 @@ BINDING_HEADERS_SRCDIR_IGNORE_IN = \ src/ephy-dbus.h \ src/ephy-encoding-dialog.h \ src/ephy-encoding-menu.h \ - src/ephy-find-toolbar.h \ src/ephy-fullscreen-popup.h \ src/ephy-go-action.h \ src/ephy-history-window.h \ diff --git a/src/epiphany.defs b/src/epiphany.defs index d811587c8..68564fc3f 100644 --- a/src/epiphany.defs +++ b/src/epiphany.defs @@ -85,6 +85,13 @@ (gtype-id "EPHY_TYPE_FAVICON_CACHE") ) +(define-object FindToolbar + (in-module "Ephy") + (parent "GtkToolbar") + (c-name "EphyFindToolbar") + (gtype-id "EPHY_TYPE_FIND_TOOLBAR") +) + (define-object History (in-module "Ephy") (parent "GObject") @@ -1233,6 +1240,72 @@ ) +;; From ephy-find-toolbar.h + +(define-function ephy_find_toolbar_get_type + (c-name "ephy_find_toolbar_get_type") + (return-type "GType") +) + +(define-function ephy_find_toolbar_new + (c-name "ephy_find_toolbar_new") + (is-constructor-of "EphyFindToolbar") + (return-type "EphyFindToolbar*") + (parameters + '("EphyWindow*" "window") + ) +) + +(define-method get_text + (of-object "EphyFindToolbar") + (c-name "ephy_find_toolbar_get_text") + (return-type "const-char*") +) + +(define-method set_embed + (of-object "EphyFindToolbar") + (c-name "ephy_find_toolbar_set_embed") + (return-type "none") + (parameters + '("EphyEmbed*" "embed") + ) +) + +(define-method find_next + (of-object "EphyFindToolbar") + (c-name "ephy_find_toolbar_find_next") + (return-type "none") +) + +(define-method find_previous + (of-object "EphyFindToolbar") + (c-name "ephy_find_toolbar_find_previous") + (return-type "none") +) + +(define-method open + (of-object "EphyFindToolbar") + (c-name "ephy_find_toolbar_open") + (return-type "none") + (parameters + '("gboolean" "links_only") + '("gboolean" "clear_search") + ) +) + +(define-method close + (of-object "EphyFindToolbar") + (c-name "ephy_find_toolbar_close") + (return-type "none") +) + +(define-method request_close + (of-object "EphyFindToolbar") + (c-name "ephy_find_toolbar_request_close") + (return-type "none") +) + + ;; From ../../embed/ephy-history.h (define-function ephy_history_get_type diff --git a/src/epiphany.override b/src/epiphany.override index 9bc352bea..898a5739f 100644 --- a/src/epiphany.override +++ b/src/epiphany.override @@ -38,6 +38,7 @@ headers #include "ephy-embed-type-builtins.h" #include "ephy-extension.h" #include "ephy-extensions-manager.h" +#include "ephy-find-toolbar.h" #include "ephy-history.h" #include "ephy-lib-type-builtins.h" #include "ephy-node-db.h" @@ -193,6 +194,9 @@ ignore ephy_shell_error_quark ephy_shell_startup ephy_shell_get_dbus_service + ephy_find_toolbar_new + ephy_find_toolbar_close + ephy_find_toolbar_set_embed %% override ephy_tab_get_size noargs static PyObject * |