Re: a couple questions...



Hi Gary,

On 8 December 2011 01:00, Gary Kline <kline thought org> wrote:
       i'll need a play button and callback that invokes, say,
       espeak -f on that file.

Make a play button with gtk_button_new_from_stock(GTK_STOCK_PLAY):

http://developer.gnome.org/gtk3/stable/GtkButton.html#gtk-button-new-from-stock

To put the button to the right of the label, make an hbox and append to that.

http://developer.gnome.org/gtk3/stable/GtkHBox.html

Attach a callback in the same way as the inc and dec one you have
already and run system("espeak -f %s", myfile) from that.

John



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]