Re: yes, no & cancel message box
- From: Miguel de Icaza <miguel gnu org>
- To: lukas razorfish com
- CC: gnome-devel-list gnome org, recipient list not shown: ;
- Subject: Re: yes, no & cancel message box
- Date: Wed, 18 Aug 1999 09:46:04 -0500
> Has anybody planned on making an API to included a yes/no/cancel message
> box in libgnomeui ? Much like gnome_app_message_box ?
> Like the message box that gnumeric displays when I try to exit without
> saving my work.
d = gnome_dialog_new (
"Title for the dialog",
GNOME_STOCK_BUTTON_YES,
GNOME_STOCK_BUTTON_NO,
GNOME_STOCK_BUTTON_CANCEL,
NULL);
l = gtk_label_new ("Here goes the message");
gtk_box_pack_start (GTK_BOX (GNOME_DIALOG (d)->vbox), l, TRUE, TRUE, 0);
button = gnome_dialog_run_and_close (GNOME_DIALOG (d));
switch (button){
case -1: /* User closed window with the mouse */
case 0: yes
case 1: no
case 2: cancel
}
best wishes,
Miguel.
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]