Re: GTK+ Windows: how to catch WM_HOTKEY

2008-05-09 Thread myasar
> Yes. Instead of creating a separatw window and a GIOChannel watching > for messages for it you should just register a filter function for the > window using gdk_window_add_filter(). It works now. Do you think I'm allowed to display a GdkDialog (with another main loop : gtk_dialog_run) inside th

GTK+ Windows: how to catch WM_HOTKEY

2008-05-09 Thread myasar
Hi, I'm trying binding a Hotkey to my GTK application with RegisterHotkey. I have created an hidden window (with CreateWindow) and a GIOChannel with g_io_channel_win32_new_messages and used g_io_add_watch to watch it. My callback function is called each time I press the hotkey but I can't get th

Re: scrolledview

2007-02-10 Thread myasar
Selon James Scott Jr <[EMAIL PROTECTED]>: > An idle handler would be a good fit here. I assumed that you are > creating and filling textviews during the startup of your program and > possibly before you enter the main_loop or gtk_main. Or possibly in a > routine that does everything at once. He

Re: scrolledview

2007-02-07 Thread myasar
Selon James Scott Jr <[EMAIL PROTECTED]>: > If you have caused the GtkVBox to be Realized, meaning all the widget > have done their size negotiations OK, so I just need to catch the "realized" signal. Another question : suppose I'm adding gtktextviews to a GtkVbox which is already visible (reali

RE: best way to cutomize gtktextview

2006-06-14 Thread myasar
I have almost what I want using non-breaking spaces (U+00A0) except that I forgot an important detail: I'm using negative indentation (gtk_text_view_set_indent) inside my gtktextview ;-) So, the following blocks : _AAA_ A AA A AA A A A_BBB_ B B BB B _CCC_ C C C CC are displayed like : _AAA_ A AA