Common hardware keys (embedded devices) ... and GTK

2005-02-15 Thread Antonio Gomes
Hello every one ... I'm implementing a simple gtk application that is running on arm ... i'm using the scratchbox to crosscompile ... But i'm needing some advices about the follow situation: ** I wanna to change the internal focus between the widgets on the application main window using hardware

Re: can I pass user data to a button callback?

2005-02-15 Thread Tristan Van Berkom
On Tue, 15 Feb 2005 09:32:46 -0800, Paolo Costabel <[EMAIL PROTECTED]> wrote: [...] > >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 "releas

Re: can I pass user data to a button callback?

2005-02-15 Thread Paolo Costabel
The prototype for the "pressed" and "released" callback is user_function (GtkButton *button, gpointer user_data); gpointer is typedef'd as void *. If you are getting a compiler error, you are probably not including the right headers. Felix Kater wro

Custom Drawables?

2005-02-15 Thread Peter Zhelezniakov
Hi, I'm fairly new to GTK so excuse me for asking potentially lame questions. Did not find anything in the archive, however. My problem is: I want my GTK code (basically calls to gtk_paint_whatever()) to paint on an external drawable rather than GdkWindow. (This external drawable is actually a

Re: Telling a tree_view a model has changed

2005-02-15 Thread Tim Müller
On Tuesday 15 February 2005 13:28, Denis wrote: > I do not see how this can happen since I made my *own* model and do not > do anything which can notify the view. > Is there something I should do in the model to say "Hi everybody, I have > changed" ? You need to call gtk_tree_model_row_changed()

Events

2005-02-15 Thread [ A b h i s h e k ]
hello everyone, I am new to gtk, and was wondering whether anyone could please help me in undetstanding gtk_widget_set_events( ) function. What happens when i pass GDK_EXPOSURE_MASK as a parameter to this function? and also what is the difference between the expose event signal handler and also

Re: Telling a tree_view a model has changed

2005-02-15 Thread Denis
Maulet wrote: Denis wrote: Maulet wrote: You have to do nothing. The tree view does the job for you! When a model is connected to a tree view with gtk_tree_view_set_model() or gtk_tree_view_new_with_model(), the tree view reflects any change in the model automatically. I understand that but my p

Re: Telling a tree_view a model has changed

2005-02-15 Thread Maulet
Denis wrote: Maulet wrote: You have to do nothing. The tree view does the job for you! When a model is connected to a tree view with gtk_tree_view_set_model() or gtk_tree_view_new_with_model(), the tree view reflects any change in the model automatically. I understand that but my problem is that

Re: Telling a tree_view a model has changed

2005-02-15 Thread Denis
Maulet wrote: Denis wrote: Hi, What is the best way to tell a tree_view that its model has changed ? (ie the model must be reread) Currently, I use gtk_tree_view_set_model to set the model to NULL and back to mine but I do not find it very ... pretty ! Denis You have to do nothing. The tree vie

Re: Telling a tree_view a model has changed

2005-02-15 Thread Maulet
Denis wrote: Hi, What is the best way to tell a tree_view that its model has changed ? (ie the model must be reread) Currently, I use gtk_tree_view_set_model to set the model to NULL and back to mine but I do not find it very ... pretty ! Denis You have to do nothing. The tree view does the job

Re: running without a mainlopp for unittests

2005-02-15 Thread Stefan Kost
Another follow up - I managed to get a backtrace after I enabled core-dumps: This is gtk-2.4.9 on SuSe 9.2 on gentoo I use gtk-2.6.x, but will need to disabled -f-omit-frampointer optiomization to get a sensible backtrace. Anyone an idea whats causing this? Stefan #0 0x40b3de85 in XRenderQueryFo

Telling a tree_view a model has changed

2005-02-15 Thread Denis
Hi, What is the best way to tell a tree_view that its model has changed ? (ie the model must be reread) Currently, I use gtk_tree_view_set_model to set the model to NULL and back to mine but I do not find it very ... pretty ! Denis ___ gtk-app-devel-li