Re: Threads and gtk_widget_show (code should not be reached?)

2013-01-31 Thread Andrew Potter
You missed the list in your last reply. It is quoted below, and I've
attached the file you sent me as well (table.txt).

On Thu, Jan 31, 2013 at 4:54 PM, Ferdinand Ramirez <
ramirez.ferdin...@yahoo.com> wrote:

>  Attached is a working program with GtkEntry in the table. If you comment
> out line 21 and uncomment line 20 to use GtkTextView instead of GtkEntry,
> you will encounter the error I mentioned.
>
> Similarly, if you replace the gtk_widget_show_all on line 65 by
> gtk_widget_show, the error goes away but does not draw the table, only the
> outermost frame. In fact, doing gtk_widget_show for successive levels of
> children works until you reach the GtkTextView level.
>
> Am I invoking (in lines 73 to 75) the function to create the table in the
> correct manner from the thread? What you see in lines 71 and 72 are
> alternatives to invoking the function but those have identical results as
> well.
>
> -Ferdinand
>

I've found that this isn't related to threading, and seems to be a bug in
TextView; my guess is embedding TextViews inside TextViews is somehow a bad
idea.
This error only effects Gtk+-2.0 (at least 2.24.13), and does not effect
Gtk+3.0 (3.6.4)

I have attached a more concise version of the program that produces the
bug. I found that if you delay the show_all on the embedded TextViews to
another g_idle_add, you don't get the error.
I believe the code is valid, so if nobody else has a comment you might want
to file a bug. I don't know if Gtk+2 gets bugfixes anymore though..

The error is:
Gtk-WARNING **: gtktextview.c:4610: somehow some text lines were modified
or scrolling occurred since the last validation of lines on the screen -
may be a text widget bug.
Gtk:ERROR:gtktextview.c:4611:gtk_text_view_paint: code should not be reached

And the backtrace is:
#0  0x0030f9a35ba5 in raise () from /lib64/libc.so.6
#1  0x0030f9a37358 in abort () from /lib64/libc.so.6
#2  0x77775b37 in g_assertion_message () from
/lib64/libglib-2.0.so.0
#3  0x00345001efd5 in gtk_text_view_expose_event () from
/lib64/libgtk-x11-2.0.so.0
#4  0x00344ff4da3c in _gtk_marshal_BOOLEAN__BOXED () from
/lib64/libgtk-x11-2.0.so.0
#5  0x77a3d910 in g_closure_invoke () from
/lib64/libgobject-2.0.so.0
#6  0x77a4ea80 in signal_emit_unlocked_R () from
/lib64/libgobject-2.0.so.0
#7  0x77a568c7 in g_signal_emit_valist () from
/lib64/libgobject-2.0.so.0
#8  0x77a56de2 in g_signal_emit () from /lib64/libgobject-2.0.so.0
#9  0x0034500814be in gtk_widget_event_internal () from
/lib64/libgtk-x11-2.0.so.0
#10 0x00344ff4be80 in gtk_main_do_event () from
/lib64/libgtk-x11-2.0.so.0
#11 0x00344fa4556c in _gdk_window_process_updates_recurse () from
/lib64/libgdk-x11-2.0.so.0
#12 0x00344fa45513 in _gdk_window_process_updates_recurse () from
/lib64/libgdk-x11-2.0.so.0
#13 0x00344fa45513 in _gdk_window_process_updates_recurse () from
/lib64/libgdk-x11-2.0.so.0
#14 0x00344fa45513 in _gdk_window_process_updates_recurse () from
/lib64/libgdk-x11-2.0.so.0
#15 0x00344fa400e7 in gdk_window_process_updates_internal () from
/lib64/libgdk-x11-2.0.so.0
#16 0x00344fa4263e in gdk_window_process_updates () from
/lib64/libgdk-x11-2.0.so.0
#17 0x003450017eb2 in gtk_text_view_value_changed () from
/lib64/libgtk-x11-2.0.so.0
#18 0x003450018346 in get_hadjustment () from /lib64/libgtk-x11-2.0.so.0
#19 0x00345001b140 in gtk_text_view_size_allocate () from
/lib64/libgtk-x11-2.0.so.0
#20 0x77a40a9e in g_cclosure_marshal_VOID__BOXEDv () from
/lib64/libgobject-2.0.so.0
#21 0x77a3db0b in _g_closure_invoke_va () from
/lib64/libgobject-2.0.so.0
#22 0x77a563a8 in g_signal_emit_valist () from
/lib64/libgobject-2.0.so.0
#23 0x77a56de2 in g_signal_emit () from /lib64/libgobject-2.0.so.0
#24 0x003450086268 in gtk_widget_size_allocate () from
/lib64/libgtk-x11-2.0.so.0
#25 0x00344ff090ae in gtk_frame_size_allocate () from
/lib64/libgtk-x11-2.0.so.0
#26 0x77a40a9e in g_cclosure_marshal_VOID__BOXEDv () from
/lib64/libgobject-2.0.so.0
#27 0x77a3db0b in _g_closure_invoke_va () from
/lib64/libgobject-2.0.so.0
#28 0x77a563a8 in g_signal_emit_valist () from
/lib64/libgobject-2.0.so.0
#29 0x77a56de2 in g_signal_emit () from /lib64/libgobject-2.0.so.0
#30 0x003450086268 in gtk_widget_size_allocate () from
/lib64/libgtk-x11-2.0.so.0
#31 0x00344ffe595b in gtk_table_size_allocate () from
/lib64/libgtk-x11-2.0.so.0
#32 0x77a40a9e in g_cclosure_marshal_VOID__BOXEDv () from
/lib64/libgobject-2.0.so.0
#33 0x77a3db0b in _g_closure_invoke_va () from
/lib64/libgobject-2.0.so.0
#34 0x77a563a8 in g_signal_emit_valist () from
/lib64/libgobject-2.0.so.0
#35 0x77a56de2 in g_signal_emit () from /lib64/libgobject-2.0.so.0
#36 0x003450086268 in gtk_widget_size_allocate () from
/lib64/libgtk-x11-2.0.so.0
#37 0x00344ff090ae in gtk_frame_size_allocate () from
/lib64/libgtk-x11-2.0.so.0
#38 0x0

Re : GTK app development for windows.

2013-01-31 Thread Lucas Levrel

--- En date de : Lun 24.12.12, Muhammed Fatih BALIN 
 a écrit :
> On Ubuntu 12.04 I can create, compile and run applications
> easily but I want to compile them for windows.
> I have mingw packages installed. But there is no gtk package
> in ubuntu repositories for cross development. How can I
> install necessary packages on ubuntu and compile gtk
> applications for windows on _ubuntu_?

I use this with success: http://mxe.cc/
Note: I do GTK2 only, I don't know if this has GTK3.

HTH.
___
gtk-app-devel-list mailing list
gtk-app-devel-list@gnome.org
https://mail.gnome.org/mailman/listinfo/gtk-app-devel-list


gtk-vim-syntax

2013-01-31 Thread Rudra Banerjee
Hi,
I am using gtk-vim-syntax. As directed, I have copied it and :run
glib.vim which highlights my glib commands. 
I tried to enable gtk3 as well by :run gtk3.vim but that is not
highlighted.

A screenshot to explain this is at http://imagebin.org/244914



___
gtk-app-devel-list mailing list
gtk-app-devel-list@gnome.org
https://mail.gnome.org/mailman/listinfo/gtk-app-devel-list