timmmay
timmmay

Reputation: 135

How to spawn windows from other windows in GTK? (using C)

I was reading about GTK+-2.0, and everthing seemed cool enough. Then when I actually got to programming, I realized I had now idea how to make a new window pop up with a button press. I suppose I could make the button "clicked" event fork/exec another GTK program, but come on, there's gotta be an easier way to do something this simple, right? If you know how to do this, or can direct me to a source which does, I would certainly appreciate it. Thanks in advance! :)

Upvotes: 0

Views: 271

Answers (1)

Dhaivat Pandya
Dhaivat Pandya

Reputation: 6536

Just another GTKWidget *window, display it once the signal for your button is called.

Upvotes: 1

Related Questions