Re: [New evidence] exported gtk_text_view on different DISPLAY crashes (error_code 204)



Hi Melvin,

After some investigation, the problems arises when using
gtk_widget_set_scroll_adjustment().

To summarize: 
When an application runs (started) in one DISPLAY and opens a top-level window
on another DISPLAY, if this window contains a gtk_text_view packed in a
gtk_scrolled_window via gtk_container_add, as soon as the user hits a key, the
application crashes with the X error mentioned in the OP. To be more precise,
the cursor advances, and before the character is displayed, the application
crashes.

If the gtk_text_view is packed via gtk_scrolled_window_add_with_viewport, the
application does not crash, but the scrollbars do not respond to the
gtk_text_view adjustment. 

Now what I found: if I pack with gtk_scrolled_window_add_with_viewport and then
use gtk_widget_set_scroll_adjustment() so the text_view uses the scrolled window
adjustemnt, I get the crash again.

So it seems it is related on how the scrolling events/signals are passed from
the text_view to the scrolled_window and vice-versa.

I'll continue investigating by trial and error, but an expert in GTK would be
very helpful here.

Anyone has an idea?

Namlala unono (Comoran: Goodbye)


-- 
Melvin Hadasht



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