multithreading gtk app

2010-06-29 Thread Mick
can anyone point me to an explanation (with examples) to help me
understand running some dialogs in separate threads. (eg. help,
preferences, etc)

I only use C.
___
gtk-app-devel-list mailing list
gtk-app-devel-list@gnome.org
http://mail.gnome.org/mailman/listinfo/gtk-app-devel-list


[MORE UPDATE] app crashes with segfault within gtk_init()

2010-06-29 Thread Mick
I've been working on my project for several weeks, using anjuta,
incrementally building it as I go.

Last wednesday, immeadetely before shutting down for the day I did a
clean -> build -> install ->test that completed successfully (as far as
incomplete code can).

On friday I started up anjuta and repeated the process as I always do,
but when test running the program it crashed with illegal instruction
as soon as it reached the call to gtk_init().

I made no changes to the code in between wed & fri. so I find it
confusing, where can I look for a cause?

I tried shutting anjuta and doing the old fashion "make uninstall ->
make clean -> autoheader -> aclocal -> automake -ac -> autoconf
-> ./configure make make install -> run" thing to no avail.

in the meantime I have been using test/tryout code (working on small
chunks like menubar, textview, ...) that use the same pre gtk_init()
code that runs correctly using gcc -Wall -g ... 

[UPDATE]
I have now isolated the problem further, using anjuta to create a new
GTK project it creates a main function that calls gtkbuilder and avery
basic interface definition.

This builds and runs ok.

Comment out gtkbulder calls and substitute hand crafted interface
definition and the code builds successfully but running the exec
results in a segfault when gtk_init (or gtk_init_check) is called.

If I mix glade file and hand crafted definitions and use gtkbuilder no
segfault.
___
gtk-app-devel-list mailing list
gtk-app-devel-list@gnome.org
http://mail.gnome.org/mailman/listinfo/gtk-app-devel-list


Re: gtk_action_block_activate fails to block ?!?

2010-06-29 Thread Tadej Borovšak
Hi.

API docs state that this function is only intended to be called when
manually modifying state of action's proxy and this modification could
cause recursion. In reality, gtk_action_block_activate() simply causes
gtk_action_activate() function calls to be ignored.

There is no way to stop signal from being emitted when modifying
action directly. You'll need to block signal handlers that are
connected to this signal in order to avoid calling them. You may find
g_signal_handlers_block* family of functions useful here.

Tadej

-- 
Tadej Borovšak
tadeboro.blogspot.com
tadeb...@gmail.com
tadej.borov...@gmail.com
___
gtk-app-devel-list mailing list
gtk-app-devel-list@gnome.org
http://mail.gnome.org/mailman/listinfo/gtk-app-devel-list

gtk_action_block_activate fails to block ?!?

2010-06-29 Thread Olivier Sessink
Hi all,

I have a GtkToggleAction in a menu that I need to synchronize with the
state in the application. I don't want the callback called when I
update the state from within the application. According to the
documentation this is what gtk_action_block_activate should do, but
the callback is still called !?

GtkAction *action = gtk_action_group_get_action(actiongroup, 
actionname);
if (gtk_toggle_action_get_active(GTK_TOGGLE_ACTION(action))!=value) {
gtk_action_block_activate(action);
gtk_toggle_action_set_active(GTK_TOGGLE_ACTION(action), value);
gtk_action_unblock_activate(action);
}

is this a bug or do I misunderstand something?

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


Broken Links in GTK Documentation

2010-06-29 Thread dhk
There are a lot of broken links in the GTK documentation.

For example when clicking on GDK_FOCUS_CHANGE_MASK and other hyperlinks
in
http://library.gnome.org/devel/gtk/stable/GtkWidget.html#GtkWidget-focus-out-event
the result is "Not Found".

It looks like the links in the stable documentation point to the
"unstable" documentation.
___
gtk-app-devel-list mailing list
gtk-app-devel-list@gnome.org
http://mail.gnome.org/mailman/listinfo/gtk-app-devel-list


Re: GdkDrawingArea on the GtkImage

2010-06-29 Thread Tadej Borovšak
Hello.

> How can i impose GdkDrawingArea on the GtkImage for painting on image
> for example?

Why don't you simply draw your image onto drawing area too? No need
for layered widgets here.

Tadej

-- 
Tadej Borovšak
tadeboro.blogspot.com
tadeb...@gmail.com
tadej.borov...@gmail.com
___
gtk-app-devel-list mailing list
gtk-app-devel-list@gnome.org
http://mail.gnome.org/mailman/listinfo/gtk-app-devel-list

GdkDrawingArea on the GtkImage

2010-06-29 Thread Alexander Kuleshov
Hello,

How can i impose GdkDrawingArea on the GtkImage for painting on image
for example?

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