Is there a good grid widget for gtk2?

2008-12-08 Thread Magicloud
Hi, I am using treeview with liststore to do things like that. But, as you know, it is a little uncomfortable. Like, how to select a column So, is there a grid widget for gtk2? Or there could be a way for treeview to select a range or cells (not range of rows). Thanks.

Is it possible having different GtkAdjustment values in GtkTreeView

2008-12-08 Thread Keedi Kim
Hi! :-) I have some question about GtkTreeView and GtkCellRenderer. Is it possible to have different GtkAdjustment values for each column(renderer?) in GtkTreeView? I made a GtkTreeView with GtkTreeModel and put GtkCellRenderer which is made by gtk_cell_renderer_spin_new() on that treeview's

GTK on linux framebuffer - disabling the mouse

2008-12-08 Thread Maik Greubel
Hello list, I tried to find a hint of disabling the mouse (cursor handlers) in the gdk gtk reference without luck. Is there a possibility to disable the mouse handling completely? I try to write an application for the framebuffer, where the mouse is not needed and will only be a gap. Thanks in

KeyPress Event on a foreign window?

2008-12-08 Thread Yu Feng
Hi, I am curious: if I set the userdata of a foreign gdk window to my widget, can I receive the KeyPress event on the event_press_event of the widget? I did an experiment, and the result is that key_press_event is not emitted. Yet I also did another experiment by enabling the PropertyNotifyMask

Re: gtk_entry question (example from faq)

2008-12-08 Thread Andrea Zagli
Il giorno dom 07 dic 2008 03:05:12 CET, Vasiliy G Tolstov ha scritto: [...] or you can try with http://gtkmaskedentry.sourceforge.net/ ___ gtk-app-devel-list mailing list gtk-app-devel-list@gnome.org

Re: Is it possible having different GtkAdjustment values in GtkTreeView

2008-12-08 Thread Tristan Van Berkom
On Mon, Dec 8, 2008 at 6:02 AM, Keedi Kim [EMAIL PROTECTED] wrote: Hi! :-) I have some question about GtkTreeView and GtkCellRenderer. Is it possible to have different GtkAdjustment values for each column(renderer?) in GtkTreeView? Is there any reason you cant just store the adjustment in

win32: get notified when gtk+ app gets killed?

2008-12-08 Thread [EMAIL PROTECTED]
Hi all, on win32, in some situations (like logoff, shutdown) my gtk+ app gets killed, so I do not receive the standard gtk+ window close/destroy signals and, in turn, cannot do clean up tasks. For a console (!) app I've found SetConsoleCtrlHandler() which works surprisingly well (one can set up

Re: win32: get notified when gtk+ app gets killed?

2008-12-08 Thread Brian J. Tarricone
Brian J. Tarricone wrote: [EMAIL PROTECTED] wrote: For non-console apps, MSDN says I need to set up a WindowProc callback to catch WM_QUERYENDSESSION messages. But to register it, it seems I need hWnd from the main window which is somewhere hidden by gtk+... That's odd -- on X11, you can

Re: Is it possible having different GtkAdjustment values in GtkTreeView

2008-12-08 Thread Keedi Kim
Tadej, Tristan, Thanks! In fact I misunderstood about attributes and GtkCellRenderSpin, and I thought each column's spin cell renderer could have only one adjustments. but it was not true. :-) As you were mentioned, I use tree model to store adjustment for each row of columns, and connect them