select point in a graph using keyboard,not clicj event

2007-09-21 Thread ferri_marllo
Hello!! I,ve built an appilcation which plot a graph into a canvas,i'd like to connect two signals to it...one of this is to move a cursor inside(key_press_event),but i'd like too that eaxh time i press c in a graph(on point)it will be seected... how can i do it

Re: Animation with GTK+

2007-09-21 Thread geminitojanus
On 9/12/07, Prokopenko, Konstantyn [EMAIL PROTECTED] wrote: Hello, I'm totally new to the GUI application development in Linux X11. I was mostly involved in embedded non-graphical development. Now I need to create GUI interface application using GTK+. Could you advise me the best way to

add mark to a point in a gtkplot pressing 'c'

2007-09-21 Thread ferri_marllo
hello again... i solve part of my problem(i ask before),but now the problem is that i want to mark a point in my graphic,pressing 'c' key,not clicking on it... how can i do it?? thanks a lot... ___ gtk-app-devel-list mailing list

emit keypress event into event loop

2007-09-21 Thread vano
Hello, Anybody has idea how to emit in GTK (2.11.6) some keypress event into main event loop? I have mouse clickable button and want to send to my text_view a keyboard press. I'm doing this way: in main code: g_signal_connect(G_OBJECT(my_button), button-press-event,

start-editing signal?

2007-09-21 Thread Allin Cottrell
I'm trying to connect a callback to start-editing on a cell renderer, but I must be doing something wrong. My code is basically static void create_cell_renderer (gpointer p) { GtkCellRenderer *r; r = gtk_cell_renderer_text_new(); g_object_set(r, ypad, 1, xalign,

Re: start-editing signal?

2007-09-21 Thread Allin Cottrell
On Fri, 21 Sep 2007, Allin Cottrell wrote: I'm trying to connect a callback to start-editing on a cell renderer, but I must be doing something wrong. Duh, sorry, that should be editing-started, not start-editing. Then it works. Allin Cottrell

Re: start-editing signal?

2007-09-21 Thread Yeti
On Fri, Sep 21, 2007 at 03:11:12PM -0400, Allin Cottrell wrote: I'm trying to connect a callback to start-editing on a cell renderer, but I must be doing something wrong. My code is basically static void create_cell_renderer (gpointer p) { GtkCellRenderer *r; r =

Re: start-editing signal?

2007-09-21 Thread Allin Cottrell
On Fri, 21 Sep 2007, David Ne?as (Yeti) wrote: Start with the correct signal name... Yes, sorry about that. But here's a real question about cell editing in a treeview. I can make the point by reference to gtk-demo: 1. Start gtk-demo and select Editable cells under Tree View. Double-click

RE: start-editing signal?

2007-09-21 Thread Prewitt, Nathan C ERDC-ITL-MS Contractor
On my machine, it did not revert back to bottles of coke. Depending on where I moved the pointer, it either made the change to foo or it left foo and I was still able to edit the cell. ___ gtk-app-devel-list mailing list

Re: Row number in TreeView

2007-09-21 Thread Claudio Saavedra
On Mon, 2007-09-17 at 09:29 +0100, Lukasz Gromotowicz wrote: gint* i = gtk_tree_path_get_indices (path); I think you should use the appropriate gtkmm API to do that. Something like gint *i = path.get_indices(); or so. I only told you about the generic C method, but you should map that to

RE: start-editing signal?

2007-09-21 Thread Allin Cottrell
On Fri, 21 Sep 2007, Prewitt, Nathan C ERDC-ITL-MS Contractor wrote: On my machine, it did not revert back to bottles of coke. Depending on where I moved the pointer, it either made the change to foo or it left foo and I was still able to edit the cell. Interesting. The machine from

RE: start-editing signal?

2007-09-21 Thread Allin Cottrell
On Fri, 21 Sep 2007, Prewitt, Nathan C ERDC-ITL-MS Contractor wrote: On my machine, it did not revert back to bottles of coke. Depending on where I moved the pointer, it either made the change to foo or it left foo and I was still able to edit the cell. A relevant question occurs to

Re: Undo framework

2007-09-21 Thread Ross Burton
On Fri, 2007-09-21 at 17:51 +0100, Iain * wrote: I've had an undo framework in Marlin for years now, but recently people have been using it in other things (notably Ross in Tasks - ok, actually, he's the only one) and we discussed suggesting this for inclusion in GTK at some point in the

Re: Undo framework

2007-09-21 Thread Tristan Van Berkom
On Fri, 2007-09-21 at 17:51 +0100, Iain * wrote: Hi, I've had an undo framework in Marlin for years now, but recently people have been using it in other things (notably Ross in Tasks - ok, actually, he's the only one) and we discussed suggesting this for inclusion in GTK at some point in

Re: Undo framework

2007-09-21 Thread Iain *
On 9/21/07, Tristan Van Berkom [EMAIL PROTECTED] wrote: Should be noted here that from my particular experience, writing code that is undoable (i.e. filling in the execute()/undo() routines for a given undoable command) is far more challenging than writing a framework that supports it - but

Re: Undo framework

2007-09-21 Thread Yevgen Muntyan
David Trowbridge wrote: You might want to look at the undo implementation in Tomboy. It implements the mergeable command idea fairly nicely. Or look at GtkSourceView, or look for it in bugzilla, or look at bunch of other implementations (I am sure there are *plenty*, minimum two in every

Re: Undo framework

2007-09-21 Thread Sven Neumann
Hi, On Fri, 2007-09-21 at 17:51 +0100, Iain * wrote: I've had an undo framework in Marlin for years now, but recently people have been using it in other things (notably Ross in Tasks - ok, actually, he's the only one) and we discussed suggesting this for inclusion in GTK at some point in the

Re: Undo framework

2007-09-21 Thread Sven Neumann
Hi, On Fri, 2007-09-21 at 17:51 +0100, Iain * wrote: The basic concepts are that there is an UndoManager object. When you start an operation that can be undone you call undo_manger_context_begin and this returns a UndoContext. Each part of your operation then creates an Undoable setting the

Re: Undo framework

2007-09-21 Thread Jody Goldberg
On Fri, Sep 21, 2007 at 05:51:26PM +0100, Iain * wrote: Hi, I've had an undo framework in Marlin for years now, but recently people have been using it in other things (notably Ross in Tasks - ok, actually, he's the only one) and we discussed suggesting this for inclusion in GTK at some

Re: Undo framework

2007-09-21 Thread Johan Dahlin
Jody Goldberg wrote: On Fri, Sep 21, 2007 at 05:51:26PM +0100, Iain * wrote: Hi, I've had an undo framework in Marlin for years now, but recently people have been using it in other things (notably Ross in Tasks - ok, actually, he's the only one) and we discussed suggesting this for

Re: Undo framework

2007-09-21 Thread Iain *
Do you allow nested undo groups? This is rather important if you want to compose actions from smaller actions and still allow scripts or other higher levels to combine these into a single undo step. We make heavy use of nested undo groups in GIMP. We allow one level of nesting, I can see your

which level (directfb or gtk++)shoud I use to draw image?

2007-09-21 Thread summer xia
hello all I am developing a media player on Linux. We choose the Gtk+ based on DirectFB is our GUI library. But I wonder to know which level API should be choosed when draw image on LCD, use Gtk+ object such as GdkPixbuf, GdkImage and so on, or use IDirectFB,IDirectFBSurface and so on? If I want