aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--ChangeLog9
-rw-r--r--src/ephy-notebook.c8
-rw-r--r--src/ephy-notebook.h2
-rw-r--r--src/epiphany.defs5
-rw-r--r--src/epiphany.override14
5 files changed, 38 insertions, 0 deletions
diff --git a/ChangeLog b/ChangeLog
index 8a6fcfb29..a7bdad7e4 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,12 @@
+2006-08-08 Jean-François Rameau <jframeau@cvs.gnome.org>
+
+ * src/epiphany.defs:
+ * src/ephy-notebook.h:
+ * src/ephy-notebook.c:
+ * src/epiphany.override:
+
+ Expose notebook->priv->focused_pages to extensions. Fix bug #350187.
+
2006-08-07 Christian Persch <chpe@cvs.gnome.org>
* configure.ac:
diff --git a/src/ephy-notebook.c b/src/ephy-notebook.c
index 001ac21f1..a250836a5 100644
--- a/src/ephy-notebook.c
+++ b/src/ephy-notebook.c
@@ -727,6 +727,14 @@ ephy_notebook_set_show_tabs (EphyNotebook *nb, gboolean show_tabs)
update_tabs_visibility (nb, FALSE);
}
+GList *
+ephy_notebook_get_focused_pages (EphyNotebook *nb)
+{
+ g_return_val_if_fail (EPHY_IS_NOTEBOOK (nb), NULL);
+
+ return nb->priv->focused_pages;
+}
+
static int
ephy_notebook_insert_page (GtkNotebook *gnotebook,
GtkWidget *tab_widget,
diff --git a/src/ephy-notebook.h b/src/ephy-notebook.h
index b04fcbb15..afcdf66c2 100644
--- a/src/ephy-notebook.h
+++ b/src/ephy-notebook.h
@@ -71,6 +71,8 @@ void ephy_notebook_set_show_tabs (EphyNotebook *nb,
void ephy_notebook_set_dnd_enabled (EphyNotebook *nb,
gboolean enabled);
+GList * ephy_notebook_get_focused_pages (EphyNotebook *nb);
+
G_END_DECLS
#endif /* EPHY_NOTEBOOK_H */
diff --git a/src/epiphany.defs b/src/epiphany.defs
index 68564fc3f..8d7511948 100644
--- a/src/epiphany.defs
+++ b/src/epiphany.defs
@@ -3050,6 +3050,11 @@
)
)
+(define-method get_focused_pages
+ (of-object "EphyNotebook")
+ (c-name "ephy_notebook_get_focused_pages")
+ (return-type "GList*")
+)
;; From ../../src/ephy-session.h
diff --git a/src/epiphany.override b/src/epiphany.override
index 898a5739f..2e9d3994a 100644
--- a/src/epiphany.override
+++ b/src/epiphany.override
@@ -460,3 +460,17 @@ _wrap_ephy_session_get_windows (PyGObject *self)
return py_list;
}
+%%
+override ephy_notebook_get_focused_pages noargs
+static PyObject *
+_wrap_ephy_notebook_get_focused_pages (PyGObject *self)
+{
+ GList *list;
+ PyObject *py_list;
+
+ list = ephy_notebook_get_focused_pages (EPHY_NOTEBOOK (self->obj));
+
+ py_list = _helper_wrap_gobject_glist (list);
+
+ return py_list;
+}