~ubuntu-branches/ubuntu/trusty/rgtk2/trusty

« back to all changes in this revision

Viewing changes to man/gtkDialogNewWithButtons.Rd

  • Committer: Bazaar Package Importer
  • Author(s): Dirk Eddelbuettel
  • Date: 2010-11-03 11:35:46 UTC
  • mfrom: (1.3.7 upstream)
  • Revision ID: james.westby@ubuntu.com-20101103113546-a7fi7jdxdebp0tw1
Tags: 2.20.1-1
* New upstream release

* debian/control: Set (Build-)Depends: to current R version
* debian/control: Set Standards-Version: to current version 

Show diffs side-by-side

added added

removed removed

Lines of Context:
1
1
\alias{gtkDialogNewWithButtons}
2
2
\name{gtkDialogNewWithButtons}
3
3
\title{gtkDialogNewWithButtons}
4
 
\description{Creates a new \verb{\link{GtkDialog}} with title \code{title} (or \code{NULL} for the default
 
4
\description{Creates a new \code{\link{GtkDialog}} with title \code{title} (or \code{NULL} for the default
5
5
title; see \code{\link{gtkWindowSetTitle}}) and transient parent \code{parent} (or
6
6
\code{NULL} for none; see \code{\link{gtkWindowSetTransientFor}}). The \code{flags}
7
7
argument can be used to make the dialog modal (\verb{GTK_DIALOG_MODAL})
12
12
\verb{GTK_STOCK_OK}, or some arbitrary text. A response ID can be
13
13
any positive number, or one of the values in the \code{\link{GtkResponseType}}
14
14
enumeration. If the user clicks one of these dialog buttons,
15
 
\verb{\link{GtkDialog}} will emit the \code{\link{gtkDialogResponse}} signal with the corresponding
16
 
response ID. If a \verb{\link{GtkDialog}} receives the \verb{"delete-event"} signal, 
 
15
\code{\link{GtkDialog}} will emit the \code{\link{gtkDialogResponse}} signal with the corresponding
 
16
response ID. If a \code{\link{GtkDialog}} receives the \verb{"delete-event"} signal, 
17
17
it will emit ::response with a response ID of \verb{GTK_RESPONSE_DELETE_EVENT}.
18
18
However, destroying a dialog does not emit the ::response signal;
19
19
so be careful relying on ::response when using the 
21
21
so the first button in the list will be the leftmost button in the dialog.}
22
22
\usage{gtkDialogNewWithButtons(title = NULL, parent = NULL, flags = 0, ..., show = TRUE)}
23
23
\arguments{
24
 
\item{\verb{title}}{[character]  Title of the dialog, or \code{NULL}}
25
 
\item{\verb{parent}}{[\verb{\link{GtkWindow}}]  Transient parent of the dialog, or \code{NULL}}
26
 
\item{\verb{flags}}{[\code{\link{GtkDialogFlags}}]  from \code{\link{GtkDialogFlags}}}
27
 
\item{\verb{...}}{ response ID for first button, then additional buttons, ending with \code{NULL}}
 
24
\item{\verb{title}}{ Title of the dialog, or \code{NULL}. \emph{[  \acronym{allow-none}  ]}}
 
25
\item{\verb{parent}}{ Transient parent of the dialog, or \code{NULL}. \emph{[  \acronym{allow-none}  ]}}
 
26
\item{\verb{flags}}{from \code{\link{GtkDialogFlags}}}
 
27
\item{\verb{...}}{response ID for first button, then additional buttons, ending with \code{NULL}}
28
28
}
29
29
\details{Here's a simple example:
30
30
\preformatted{
40
40
                    "gtk-ok", GtkResponseType["accept"], 
41
41
                    "gtk-cancel", GtkResponseType["reject"])
42
42
 
43
 
}  }
44
 
\value{[\verb{\link{GtkWidget}}]  a new \verb{\link{GtkDialog}}}
 
43
}}
 
44
\value{[\code{\link{GtkWidget}}]  a new \code{\link{GtkDialog}}}
45
45
\author{Derived by RGtkGen from GTK+ documentation}
46
46
\keyword{internal}