Keys Do Not Emit Key Press Event for Treeview Widget

2012-01-15 Thread Rob Thornton
My application contains a treeview widget. The delete and insert keys
insert and delete rows as expected but I need to trap their events so I can
modify their behaviour. I also need to modify the Escape key. I tried
connecting to key-press-event but does not seem to work nor via the
generic event signal and testing for a GDK_KEY_PRESS event type. What
signal is emitted when they are pressed? How do I respond to these key
presses?
___
gtk-app-devel-list mailing list
gtk-app-devel-list@gnome.org
http://mail.gnome.org/mailman/listinfo/gtk-app-devel-list


Re: how to have a dialog ask user if he want to type AGAIN?

2012-01-15 Thread David Nečas
On Sat, Jan 14, 2012 at 07:50:15PM -0800, Gary Kline wrote:
 ok, one function runs in a recursive loop, endlessly.  i could do this
 differently, say from main.  that is my question:  how do i get the
 value 1 or TRUE back from a dialogue that asks simply: Talk again?

Use the return value of gtk_dialog_run(); it returns
GTK_RESPONSE_something depending on how the user responded.

Yeti

___
gtk-app-devel-list mailing list
gtk-app-devel-list@gnome.org
http://mail.gnome.org/mailman/listinfo/gtk-app-devel-list


any easy way of having a YES/NO dialog return a 1 or 0?

2012-01-15 Thread Gary Kline
is there a way of having a YES/NO dialog [that asks a qauestion]
return a truth value? i'm looking for something like the macro
eprint(...) that James Steward sent in late december.

if i eventually figured out a similar marcro that included:

GTK_STOCK_YES,1,
GTK_STOCK_NO, 0...

would the macro pop-up a dialog with [YES] OR [NO] such that
clicking the [NO] would return a 0?  [YES] would obv'ly   return 1.

i've run into a function that calls itself recursively and i would
like do have this dialog appear before the recursive call or after
10 or 15 times.  

thanks in advance,

gary



-- 
 Gary Kline  kl...@thought.org  http://www.thought.org  Public Service Unix
   Journey Toward the Dawn, E-Book: http://www.thought.org
  The 8.57a release of Jottings: http://jottings.thought.org
 Twenty-five years of service to the Unix community.

___
gtk-app-devel-list mailing list
gtk-app-devel-list@gnome.org
http://mail.gnome.org/mailman/listinfo/gtk-app-devel-list


Re: any easy way of having a YES/NO dialog return a 1 or 0?

2012-01-15 Thread David Nečas
On Sun, Jan 15, 2012 at 01:26:53PM -0800, Gary Kline wrote:
 is there a way of having a YES/NO dialog [that asks a qauestion]
 return a truth value? i'm looking for something like the macro
 eprint(...) that James Steward sent in late december.

Use gtk_message_dialog_new() with GTK_BUTTONS_YES_NO buttons type.
Your boolean is then equal to

gtk_dialog_run(dialog) == GTK_RESPONSE_YES

(which also runs the dialog but you can, of course, separate the
execution and comparison).

 if i eventually figured out a similar marcro that included:
 
   GTK_STOCK_YES,1,
   GTK_STOCK_NO, 0...

I don't understand what stock item names have to do with this.

Yeti

___
gtk-app-devel-list mailing list
gtk-app-devel-list@gnome.org
http://mail.gnome.org/mailman/listinfo/gtk-app-devel-list