gtkUIManagerEnsureUpdate: gtkUIManagerEnsureUpdate

Description Usage Arguments Details Author(s)

View source: R/gtkFuncs.R

Description

Makes sure that all pending updates to the UI have been completed.

Usage

1

Arguments

object

a GtkUIManager

Details

This may occasionally be necessary, since GtkUIManager updates the UI in an idle function. A typical example where this function is useful is to enforce that the menubar and toolbar have been added to the main window before showing it:

1
2
3
4
5
6
window$add(vbox, show = F)
gSignalConnect(merge, "add_widget", add_widget, vbox)
merge$addUiFromFile("my-menus")
merge$addUiFromFile("my-toolbars")
merge$ensureUpdate() 
window$showAll()

Since 2.4

Author(s)

Derived by RGtkGen from GTK+ documentation


RGtk2 documentation built on Oct. 14, 2021, 5:08 p.m.