Re: Change the behaviour of a button

2005-12-27 Thread Christian Neumair
Am Montag, den 26.12.2005, 13:15 +0300 schrieb Yury Aliaev: > >> I'm sure there's a "right way" but if you're in a hurry you can do > >> something I've used successfully. Use a table to lay out your objects, > >> and pack two buttons into the same cell. Hide one. When you need to > >> show the S

Re: Change the behaviour of a button

2005-12-26 Thread Yury Aliaev
Hi, David! I'm sure there's a "right way" but if you're in a hurry you can do something I've used successfully. Use a table to lay out your objects, and pack two buttons into the same cell. Hide one. When you need to show the Stop button, hide the Remove button and show the Stop button. It w

Re: Change the behaviour of a button

2005-12-23 Thread David Rosal
Chad Robinson wrote: David Rosal wrote: Ok. Then I wanted to be able to stop the file removing with the same button, so I wanted it to have the label "Stop" and the "Stop" gtk icon inside. I know how to change the callbacks with g_signal_block() and g_signal_unblock(), but I don't know which

Re: Change the behaviour of a button

2005-12-23 Thread Chad Robinson
David Rosal wrote: Ok. Then I wanted to be able to stop the file removing with the same button, so I wanted it to have the label "Stop" and the "Stop" gtk icon inside. I know how to change the callbacks with g_signal_block() and g_signal_unblock(), but I don't know which is the best way to chang

Change the behaviour of a button

2005-12-23 Thread David Rosal
Hi. In my gtk app I have a long list of files that I want to remove. I have a button with the label "Remove" and the icon of a trash bin beside the label. I have put both together in a GtkBox and I've packed the GtkBox into the button with gtk_container_add(). Then I've g_signal_connect()'ed the