Become an expert in R — Interactive courses, Cheat Sheets, certificates and more!
Get Started for Free

gtkDialogSetAlternativeButtonOrder

gtkDialogSetAlternativeButtonOrder


Description

Sets an alternative button order. If the "gtk-alternative-button-order" setting is set to TRUE, the dialog buttons are reordered according to the order of the response ids passed to this function.

Usage

gtkDialogSetAlternativeButtonOrder(object, ...)

Arguments

object

a GtkDialog

...

undocumented

Details

By default, GTK+ dialogs use the button order advocated by the Gnome Human Interface Guidelines (https://developer.gnome.org/hig/stable/) with the affirmative button at the far right, and the cancel button left of it. But the builtin GTK+ dialogs and GtkMessageDialogs do provide an alternative button order, which is more suitable on some platforms, e.g. Windows.

Use this function after adding all the buttons to your dialog, as the following example shows:

cancel_button <- dialog$addButton("gtk-cancel", "cancel")
 
ok_button <- dialog$addButton("gtk-ok", "ok")
ok_button$grabDefault()
  
help_button <- dialog$addButton("gtk-help", "help")

dialog$setAlternativeButtonOrder("ok", "cancel", "help")

Since 2.6

Author(s)

Derived by RGtkGen from GTK+ documentation


RGtk2

R Bindings for Gtk 2.8.0 and Above

v2.20.36
GPL
Authors
Michael Lawrence <michafla@gene.com> and Duncan Temple Lang <duncan@wald.ucdavis.edu>
Initial release

We don't support your browser anymore

Please choose more modern alternatives, such as Google Chrome or Mozilla Firefox.