win32: FileChooserWidget + gtk_window_set_deletable

2007-12-05 Thread Felix Kater
Hi, could anyone please say if this should be considered a bug -- if so, I'd file an issue at bugzilla: * use win32 (not yet tested on linux) * create toplevel window * gtk_window_set_deletable(window,FALSE) [this is the critical part] * place a FileChooserWidget into window * show window *

Re: gdk_threads_set_lock_functions

2007-06-29 Thread Felix Kater
what does temporarily mean here: gdk_threads_set_lock_functions: [...] When GTK+ unlocks the GTK+ lock when entering a recursive main loop, the application must temporarily release its lock as well. What ever that means... my recursive locks ... had a bug. Thanks Felix

gdk_threads_set_lock_functions

2007-06-28 Thread Felix Kater
hi, what does temporarily mean here: gdk_threads_set_lock_functions: [...] When GTK+ unlocks the GTK+ lock when entering a recursive main loop, the application must temporarily release its lock as well. Does that mean (A) that GTK+ sometimes simply tells me that it has done its tasks and I can

linux vs. win32: gdk_threads_enter behaving different

2007-06-15 Thread Felix Kater
Could anyone please explain this behaviour: Imagine a simple window with 1 box and 2 buttons in it. If you press the first button, the second is destroyed, and a newly created button packed into the box. This *works* on linux and win32 (gtk+-2.10.13). Now, let button 1 start a thread which does

Re: linux vs. win32: gdk_threads_enter behaving different

2007-06-15 Thread Felix Kater
Kevin DeKorte [EMAIL PROTECTED] wrote: - From my limited GTK experience I have found that g_idle_add always seems to work better than using gtk_threads_enter/leave. Yes, the reason why idle functions work in any case is most probably because they are running in the same thread as where gtk was

Re: GtkTreeView: different renderes within one row?

2007-05-31 Thread Felix Kater
Vivien Malerba [EMAIL PROTECTED] wrote: I'd like to create a two column list with simple text display on the left but each row having a different renderer on the right (combo, spin, entry). I suggest you then create a custom cell renderer which will adapt itself to the display you want

GtkTreeView: different renderes within one row?

2007-05-30 Thread Felix Kater
hi, I am new to GtkTreeView: Are cell renderers bound to columns or can they change between rows of the same column? I'd like to create a two column list with simple text display on the left but each row having a different renderer on the right (combo, spin, entry). Thanks Felix

Re: GtkTreeView: different renderes within one row?

2007-05-30 Thread Felix Kater
typo in subject line: GtkTreeView: different renderers within one COLUMN? ___ gtk-app-devel-list mailing list gtk-app-devel-list@gnome.org http://mail.gnome.org/mailman/listinfo/gtk-app-devel-list

Re: my summary on how to use gtk with threads

2007-05-25 Thread Felix Kater
On Thu, 24 May 2007 01:03:25 +1000 Andrew Cowie [EMAIL PROTECTED] wrote: http://research.operationaldynamics.com/blogs/andrew/#gtk-thread-awareness Keep on. :-) I didn't quite agree with this conclusion: do not use gdk_threads_set_lock_functions() to facilitate (a) as that was rather

g_signal_handler_block() for individual signals?

2007-05-25 Thread Felix Kater
Hi, is there a solution for this (please consider the toggle button as an example only for various cases like these I am interested in): For example: The clicked signal handler is connected to a toggle button. Now, different threads call gtk_toggle_button_set_active() to toggle it, however, for

my summary on how to use gtk with threads

2007-05-20 Thread Felix Kater
Hi, here is my short summery of how to use gtk with threads, ordered by the main problems to be worked around. I aimed to find a small set of *general* rules to follow rather than solutions for individual cases. So this guides shall turn gtk's thread awareness into thread safety--for those who

gtk_scrolled_window_set_shadow_type

2007-05-07 Thread Felix Kater
Hi, gtk_scrolled_window_set_shadow_type() works correctly, however, probably not in the way the user expects: The function sets the shadow type of the (outer) window, and leaves the (inner) shadow type of the viewport as is. So, if not created manually, the user never gets the viewport in her

gthread-win32.c: link to html broken

2006-12-22 Thread Felix Kater
In gthread-win32.c, the link to http://www2.awl.com/cseng/titles/0-201-63465-1/csmutx.htm seems to be redirected to a bookstore. I have searched cseng csmutx and found this (which was probably meant): http://world.std.com/~jmhart/csmutx.htm Felix

gspawn(-win32): why helper?

2006-11-24 Thread Felix Kater
Hi, when glib spawns processes it starts a helper process first which itself then starts the wanted process. I've studied the gspawn(-win32).c and the win32 helper code, too, however, I simply don't understand the need of the helper process. :-/ If made some tests with the Windows' _spawn*()

Re: Theme writing guide/tutorial

2006-11-22 Thread Felix Kater
On Wed, 22 Nov 2006 10:38:31 +0100 Gabriele Greco [EMAIL PROTECTED] wrote: There is a guide not aimed to programmers about theme writing for GTK (I'm mostly intrested in pixbuf themes, but also a generic guide could be useful)? I've to explain a graphic artist how to design a theme for a

getting symbols from dynamic modules

2006-09-18 Thread Felix Kater
Hi, g_module_* is a great thing -- I just wonder if there is a way to not create function pointers for each single function I need but just import all of them at once? Felix ___ gtk-app-devel-list mailing list gtk-app-devel-list@gnome.org

documentation: g_slist_remove*, g_slist_delete*

2006-09-18 Thread Felix Kater
Hi, here some remarks about the documentation of some g_slist* functions: g_slist_remove(): It is not explicitly said if the data which the element points to is freed as well. If you read g_slist_remove_link() below then you might understand that, however, indirectly only.

gtk+/gdk and multiple monitors

2006-07-19 Thread Felix Kater
Hi, I am looking for a solution to display gtk+/gdk and other X applications like firefox across 4 monitors connected to one computer. The task is to show different content (e.g. 4 different gtk + apps) on each screen but also perform text marquee effects across all of them (like one big

Re: table widget: expanding

2006-05-05 Thread Felix Kater
On Thu, 4 May 2006 23:33:18 +0200 David Nečas (Yeti) [EMAIL PROTECTED] wrote: On Thu, May 04, 2006 at 11:12:32PM +0200, Felix Kater wrote: To achieve this I assume I need to do two things: tell the table to expand itself to the maximum, and tell it to expand the second row only

table widget: expanding

2006-05-04 Thread Felix Kater
Hi, my table widget simply contains a label (first row) and a scrolled window (second row). I need the scrolled window (with a large drawing area inside) to expand. However, it doesn't. To achieve this I assume I need to do two things: tell the table to expand itself to the maximum, and tell

buffer locking for DMA?

2006-03-09 Thread Felix Kater
Hi, I use glib on windows to allocate memory for a camera. Its DLL then uses the memory and pass it to the kernel and fill it via DMA. I have to be sure that windows doesn't move my buffer(s) later since the kernel has built its allocation table using it. With windows there are functions to

get current time / win32: got UTC instead of local time

2005-12-07 Thread Felix Kater
Hi, to sum up: With g_get_current_time() / win32 it seems that I get UTC instead of the local time. How can I get the local time? Long version: I use g_get_current_time() / win32 to set GTimeVal and calculate the current hour of the day (0-23) like this: hour_of_the_day= my_gtimeval.tv_sec %

get current time / win32: got UTC instead of local time

2005-12-06 Thread Felix Kater
Hi, I use g_get_current_time() / win32 to set GTimeVal and calculate the current hour of the day (0-23) like this: hour_of_the_day= my_gtimeval.tv_sec % (3600*24) / 3600 My windows timezone is set to UTC+1 == GMT+1 == CET, however, this is not respected. What ever I select as the windows

get current time / win32: got UTC instead of local time

2005-12-05 Thread Felix Kater
Hi, I use g_get_current_time() to set GTimeVal get the current hour of the day (0-23) like this: hour_of_the_day= my_gtimeval.tv_sec % (3600*24) / 3600 My windows timezone is set to UTC+1 == GMT+1 == CET, however, this is not respected. What ever I select as the windows timezone the above

Re: widget's signal callback: inside gdk lock?

2005-09-19 Thread Felix Kater
On 9/19/05, Tristan Van Berkom [EMAIL PROTECTED] wrote: Fe Kater wrote: Hi, I wonder if the callback function I connect to a widget's signal (like toggled signal of a checkbutton) is already inside the gdk lock--or if I have to take care of gdk_threads_enter/leave with any code inside

Re: gdk threads enter/leave not enough?

2005-08-15 Thread Felix Kater
First, thanks again for your answer! Tristan Van Berkom [EMAIL PROTECTED] wrote: I never call gtk+ directly but have my own wrappers which take care of gdk_threads_enter/leave. So I am sure I haven't forgotton it somewhere. This could be dangerous, you'll deadlock if you call

nested gdk_threads_enter() hangs: linux/gcc vs. win32/mingw?

2005-05-14 Thread Felix Kater
Hi, I am using the same code on win32/mingw and linux/gcc, however, when I execute the code on linux, the programm hangs at the second (nested) call of gdk_threads_enter(), see below. Am I doing something illegal to use nested calls of gdk_threads_enter()? If not, is there a flag to

Re: nested gdk_threads_enter() hangs: linux/gcc vs. win32/mingw?

2005-05-14 Thread Felix Kater
Hi, first let me thank you! Juergen Dankoweit [EMAIL PROTECTED] wrote: Funny. On FreeBSD I have no problems with nested calls of gdk_threads_enter()/gdk_threads_leave(). [...] This mutex-semaphore is gdk-wide. [...] As you can see, you MUST not call them nested! If you don't have

behaviour of combobox since 2.6...

2005-03-15 Thread Felix Kater
Hi, I switched from gtk+2.4 to gtk+-2.6.4 (using fabulous win32 version by tor). There are at least 2 new things concerning combobox which make life a bit harder: * Having many entries and, a combox near to the screen's edge, the combobox first shows a half empty box, then is slowly

Re: button receives focus but can't be pressed in

2005-03-09 Thread Felix Kater
Felix Kater: To sum up: If the mouse pointer on a button which was insensitive and gets sensitive (by another thread), then the button is never highlighted and doesn't receive the click signal when clicked. Me again. I found out that this issue is known as bug 56070 which is open since

Re: button receives focus but can't be pressed in

2005-03-07 Thread Felix Kater
Hubert Soko__owski: do you synchronize these threads somehow? if it is possible to set sensitive on this button by the main thread then try to do this. I don't get your point. I do it this way: With the button click event all concerned buttons are set insensitive, at the same time a timer is

gdk_window_process_updates() blocks?

2005-03-06 Thread Felix Kater
Hi, gdk_window_process_update() freezes my application (gtk-2.4.13/win32) in case that it is performed on a gdk-window of a button which is created in a gtk-main-window which was never shown. In case that I show the window (and hide it) before gdk_window_process_update() there is no problem. Is

can I pass user data to a button callback?

2005-02-14 Thread Felix Kater
Hi, can I pass (a pointer to) user data to a button's callback? The compiler wants me to create button callbacks like void (*)(void) -- but what I need is void (*)(void*), at least for the pressed and released signals How could I do that? Felix ___