David Knight wrote:
>The biggest bug that needs fixing before a release is the closing of a
>single page in a site. When you try that, if any other pages in the
>site are open it switches to one of them, but does not insert the text
>into the editor.
Finally I got it. Here's a description of what happened :
screem_page_close_page() sets the sites current page to NULL
the following call to gtk_notebook_remove_page() triggers
a call to page_book_switch() which in turn calls
But as the current page is null screem_editor_insert() fails to
insert the text of the new page into the editor.
I just put the call to screem_site_set_current_page() a few lines
higher in page_book_switch() and now it works.
Got a hard time to track this down as depending on where I place my
breakpoints in xxgdb the X display just freezes when I hit one.
I also simplified a little bit screem_editor_changed() in editor.c
Both diffs are attached.
One problem remains : if many pages are open one should be able to
scroll using the arrows that appear on the bottom of the screen.
Unfortunately the left mouse button has no effect, only the right one
works. Couldn't figure out why.
Get Your Private, Free Email at http://www.hotmail.com
From: David Knight <david@ri...> - 2000-03-04 21:05:02
Sven Liessem wrote:
> I just put the call to screem_site_set_current_page() a few lines
> higher in page_book_switch() and now it works.
its better than the hack I put in last night to fix it, applied.
> I also simplified a little bit screem_editor_changed() in editor.c
> Both diffs are attached.
the call to screem_page_get_tab() was in there so that a '*' can be
placed next to the page name on the notebook tab to signify that it has
been changed and not saved. I've applied the patch and add the call
> One problem remains : if many pages are open one should be able to
> scroll using the arrows that appear on the bottom of the screen.
> Unfortunately the left mouse button has no effect, only the right one
> works. Couldn't figure out why.
I'm not sure either, I need to take a look at the GTK documentation.
I'll be commiting a big change to the highlighting code soon (just as
soon as gnome finishes updating from CVS) which may need a bit of stress
testing. I've had no problems so far, crashing wise anyway. The new
code allows highlighting to be applied to any language as it just uses
There are also a couple of other minor fixes that I found yesterday as
Make your site SCREEM - Site Creating & Editing EnvironMent