Re: CAD like app.

2011-03-01 Thread John Matthewman
On 3/1/11, Maximilian Schneider wrote: > Hello, > > I'm working on a CAD like gtk app. > a cairo Drawing area surounded by toolbar icons, controllable through > the mouse+keyboard. > > I'm stuck trying to figure out how to create keyboard shortcuts. > > How is it supposed to be done? > > I've hear

CAD like app.

2011-03-01 Thread Maximilian Schneider
Hello, I'm working on a CAD like gtk app. a cairo Drawing area surounded by toolbar icons, controllable through the mouse+keyboard. I'm stuck trying to figure out how to create keyboard shortcuts. How is it supposed to be done? I've heard that this subject isn't the most well baked part of gtk.

Re: How to make the toolbar button flashing

2011-03-01 Thread Miroslav Rajcic
Hi James, your example uses ordinary GtkButton, not the GtkToolItem and I couldn't make it work in my example (although I did try to fetch underlying GtkButton). I've now figured how to change the icon, the key is to use gtk_tool_button_set_icon_widget method: img1 = gtk_image_new_from_stock(

Re: How to make the toolbar button flashing

2011-03-01 Thread James Morris
On 1 March 2011 08:20, Miroslav Rajcic wrote: > I am trying to make the "Pause" button flash (or show any similar behaviour > similar to that) when the pause state is active. > So far I tried many things, but none of these seem to work: > - changing the button background color > - changing the but

How to make the toolbar button flashing

2011-03-01 Thread Miroslav Rajcic
I am trying to make the "Pause" button flash (or show any similar behaviour similar to that) when the pause state is active. So far I tried many things, but none of these seem to work: - changing the button background color - changing the button stock icon - changing the button relief style Rele