conflict between python console extension and my own



Hello,

Firstly thanks to those involved in Epiphany's extension
support. This feature is one that I am only just learning to
appreciate fully.

I've written a simple extension that captures new tab events
and transforms them into new window events, effectively
disabling tabs. It's available at
<http://alcopop.org/code/epiphany/> but at it's core is
just:

	from epiphany import Window

	def attach_tab(window,tab):
		if len(window.get_tabs()) > 1:
		new_win = Window()
		window.remove_tab(tab)
		new_win.add_tab(tab,0,0)
		new_win.show()

When I have this extension loaded alongside the python
console, each window destruction (even if no new tabs have
been created) results in

	sys:1: GtkWarning: gtk_window_group_remove_window: assertion
	`GTK_IS_WINDOW_GROUP (window_group)' failed

When I first noticed this bug it was with an older epiphany
version (I'm currently using 2.20.1 as packaged by Debian)
and I think the warning was in a different function. I tried
reading through the C source to see what happened in the
function but couldn't find anything relevant.

It is a shame for me to conflict with the python console in
particular as I found it extremely useful whilst learning to
write my extension.

Can anyone help me get to the bottom of the problem?



thanks,

-- 
Jon Dowland



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]