Re: Allow a GtkWindow to prevent losing focus

2006-07-26 Thread Atanas Atanasov
I have been trying to do something similar - the behaviour of modal windows under Windows. However this solution seemed too fragile because you never know what window manager will be running beneath. After all most of these functions just pass on hints to the window manager, and the behaviour depen

Label problem under Win32

2006-07-19 Thread Atanas Atanasov
I have a small GTK+ application for Linux and recently ported it for Windows (2000). However I am experiencing one problem - the text in all label is white instead of black. I do not have any fancy themes or appearance tweaks. More interestingly the mnemonics show in black i.e. if I have a button w

Re: More about RADiola

2006-07-18 Thread Atanas Atanasov
Why don't you try to set a mailing list at sourceforge - it should be possible. This way we will keep RADiola specific talk there. I like the idea of XML "code" template. It can be a good option to make the code browser fairly portable languagewise. Though we have to discuss this. I have a couple

Re: RADiola, a GTK RAD tool

2006-07-16 Thread Atanas Atanasov
Maybe I can give some help on RADiola. My suggestion would be to get the bare GUI you have done, compile and release it so that there will be a skeleton. There also is another issue I thought about which is the language support. Excuse me if you wrote something about this already in the documentati

Re: GtkWindow show and move

2006-07-13 Thread Atanas Atanasov
I did the queue purging at a different point - after all widgets are created. This works fine so far. Atanas ___ gtk-app-devel-list mailing list gtk-app-devel-list@gnome.org http://mail.gnome.org/mailman/listinfo/gtk-app-devel-list

Re: Parent window for other GtkWindow-s

2006-07-12 Thread Atanas Atanasov
Thanks for the information - it was very useful. If I have any problems I will write back. Atanas ___ gtk-app-devel-list mailing list gtk-app-devel-list@gnome.org http://mail.gnome.org/mailman/listinfo/gtk-app-devel-list

Re: g_queue_find problems

2006-07-12 Thread Atanas Atanasov
Are you sure that your search key is part of the queue? The issue might be that the your search key is a copy of the string stored in the queue and the pointers won't match. If this is the case try using g_queue_find_custom and wrap strcmp in a simple function. Otherwise you will have to make sure

Re: why button is hidden behind drawing area(win32)

2006-07-12 Thread Atanas Atanasov
> I cant count how many time's I've said this: "widgets do not overlap in gtk+". > > I'm sure that whatever design you want to achieve can be done by > packing widgets into containers normally. > My project is still in an early stage and I have other things to worry about. However I do need overla

Re: why button is hidden behind drawing area(win32)

2006-07-12 Thread Atanas Atanasov
In this case what solution can be used to force the display order? Should one check the code of the respective functions and make a local copy of the code, modifying it as appropriate? I am afraid this will change too quickly and my code might not be compatible with future versions of gtk. Atanas

GtkWindow show and move

2006-07-12 Thread Atanas Atanasov
I have a fragment of code similar to this: gtk_widget_show_all (window); gtk_window_resize (window, ...); The problem is that sometimes the specified window starts with the size I set and sometimes it doesn't. This problem occurs in both debug & release versions, and it seems to be completely ran

Re: why button is hidden behind drawing area(win32)

2006-07-12 Thread Atanas Atanasov
I am trying to avoid libgnome and to stick to the pure gtk. Therefore GnomeCanvas is not really a solution. In reality my project is not yet in the stage where I require specific z-order and the problem is not so apparent yet. However I will have to face it one day, sooner or later. I guess the wor

Parent window for other GtkWindow-s

2006-07-12 Thread Atanas Atanasov
I have a set of GtkWindow-s and I would like to enclose them in a single frame - something very similar to the MDI interface. What widget can I use for the parent frame / window? It is important that the child windows will appear inside the parent window and one will not see them outside its border

Re: RADiola, a GTK RAD tool

2006-07-10 Thread Atanas Atanasov
Hi, I really like the idea. Looks great! The logical editor is a nice idea and it definitely outlines the ease with which the tool can be used. Can I get a sample version to try it? Atanas ___ gtk-app-devel-list mailing list gtk-app-devel-list@gnome.org

Re: why button is hidden behind drawing area(win32)

2006-07-10 Thread Atanas Atanasov
As a more general question: How is the drawing order in a GtkFixed determined? Can I control this since I might need it at a later stage of my project. Atanas ___ gtk-app-devel-list mailing list gtk-app-devel-list@gnome.org http://mail.gnome.org/mailman/

Re: I did not know this leak memory or not (gtk_object_set_data)

2006-07-09 Thread Atanas Atanasov
> > /***/ > guint *p = NULL; > p = g_malloc0(sizeof(guint)): > > gtk_object_set_data(GTK_OBJECT(button),"key",p); > /*/ Why would you allo

Re: About gtk_object_set_data()

2006-07-09 Thread Atanas Atanasov
There are two approaches. The data you set with gtk_object_set_data is simply a gpointer and when the object is destroyed or the data is removed it manages the pointer but not the data (location) it points to. If you eventually would like to perform some freeing when the data is removed use g_obje

Re: How to keep the check button' checked state

2006-07-09 Thread Atanas Atanasov
You can use the button-press-event and button-release-event signals of GtkWidget (http://developer.gnome.org/doc/API/2.0/gtk/GtkWidget.html#GtkWidget-button-press-event and http://developer.gnome.org/doc/API/2.0/gtk/GtkWidget.html#GtkWidget-button-release-event). By returning TRUE you will bypass

Re: Why ? When segmentation fault,there has no "core" file

2006-07-09 Thread Atanas Atanasov
My best advice is to read the GDB Manual - http://www.gnu.org/software/gdb/documentation/. Chapters 4 and 5 should give you a fairly good idea how to perform simple debugging on your program. If you don't feel like get some GUI debugger like Insight (http://sources.redhat.com/insight/). Atanas ___

Re: Three state check button

2006-07-06 Thread Atanas Atanasov
It worked but I would say partially. I tested with a GtkCheckButton and its appearance is a shaded tick. However I cannot see how I can get and set the "third" state. Is the button supposed to change its state automatically as it does with not-inconsistent buttons or I have to receive the pressed

Three state check button

2006-07-06 Thread Atanas Atanasov
Is there an option that would make a check button have a third state. What I am after is similar to BS_3STATE and BS_AUTO3STATE styles of the BUTTON class in Windows. Any suggestions are welcome. Atanas ___ gtk-app-devel-list mailing list gtk-app-devel-

Re: Re: GtkFixed child control resizing

2006-07-05 Thread Atanas Atanasov
Thanks. It worked perfectly. Atanas ___ gtk-app-devel-list mailing list gtk-app-devel-list@gnome.org http://mail.gnome.org/mailman/listinfo/gtk-app-devel-list

Re: GtkFixed child control resizing

2006-07-05 Thread Atanas Atanasov
Thanks. The size request worked. However there is an issue. Say I create my label to cover all the GtkFixed and set its text justification to left. What I expect to see is something like: /--\ | | |line 1 is longer | |line2

GtkFixed child control resizing

2006-07-05 Thread Atanas Atanasov
I have a GtkWindow with a single GtkFixedChild. Then all the rest of the interface goes into the GtkFixed with exact positions which I can set through gtk_fixed_put or gtk_fixed_move. Suppose I have a GtkLabel child. I would like to be able to set its size and apply a text alignment through gtk_lab

Re: Gtk+ Modality Problem

2006-06-23 Thread Atanas Atanasov
I did some experiments with gdk_window_add_filter. First of all there is a GdkWindow associated with every GtkWidget. It can be acquired either by ->window or using gtk_widget_get_parent_window. Then is it not so hard to add an event filter to any particular widget - in my case to the parent window

Re: In gtk+ application,how to parse xml file

2006-06-22 Thread Atanas Atanasov
In such cases always check GLib. This is most probably the most useful library ever written. If you check the GLib Utilities section of http://developer.gnome.org/doc/API/2.0/glib/index.html you will find there is a simple XML (a subset actually) parser (see http://developer.gnome.org/doc/API/2.0/g

Re: Gtk+ Modality Problem

2006-06-22 Thread Atanas Atanasov
The way ti works under windows: The window manager can distinguish between what is called the client (the inside) and non-client (titlebar & borders) areas a window. Subsequently all mouse events are separated in two classes - normal and NC (non-client). Then the default handlers (through DefWindow

Re: Gtk+ Modality Problem

2006-06-22 Thread Atanas Atanasov
I managed to make it partially modal using a combination of functions: set_modal, grab_add and set_transient_for. However I can still say resize the window behind. It seems as you said that this i supposed to be the behaviour since gtk_message_dialow_new creates a dialog with identical functionalit

Re: Gtk+ Modality Problem

2006-06-21 Thread Atanas Atanasov
> Don't forget to set the transient window: > > gtk_window_set_transient_for(GTK_WINDOW(window),GTK_WINDOW(parent_window)); I saw this option, but I would like to make the messagebox work independently of the window from which it is called. Is this possible? What I need is exatcly the behaviour of

Gtk+ Modality Problem

2006-06-21 Thread Atanas Atanasov
anks in advance. Regards, Atanas Atanasov ___ gtk-app-devel-list mailing list gtk-app-devel-list@gnome.org http://mail.gnome.org/mailman/listinfo/gtk-app-devel-list