Re: Newbie from Hell
- From: Keith Sharp <kms passback co uk>
- To: gtk-app-devel-list gnome org
- Subject: Re: Newbie from Hell
- Date: Fri, 30 Jul 2004 12:05:05 +0100
On Fri, 2004-07-30 at 08:25 +0900, Peter Dennis wrote:
Hi all,
I am trying to create a simple window that uses a dialog to confirm exit
from the window.
Ok, my previous two answers were both slightly wrong! So I just went
ahead an wrote an example myself, and this time I tested that it
actually works :-)
Attached is a short C program that creates a window with two buttons.
If you click the hello button you should get a message on STDOUT. If
you click the quit button a dialog should popup asking you to confirm
that you want to quit.
To compile the program:
gcc -o confirm-quit confirm-quit.c `pkg-config --cflags --libs gtk+-2.0`
Keith.
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]