public class Settings extends Object
Gtk.getSettings()
.
settings = Gtk.getSettings(); settings.setButtonImages(true);
Modifier and Type | Method and Description |
---|---|
boolean |
getButtonImages()
Are images (icons) being shown on Buttons by default?
|
boolean |
getMenuImages()
Are images (icons) being shown in menus by default?
|
boolean |
getShowInputMethodMenu()
Do Entry and TextView popup context menus have a menu item allowing you
to change the InputMethod?
|
boolean |
getShowUnicodeMenu()
Are Entry and TextView popup context menus showing a menu item allowing
you to enter Unicode control characters?
|
void |
setButtonImages(boolean setting)
Set whether Buttons should have images (ie stock icons) showing on them
by default.
|
void |
setMenuImages(boolean setting)
Set whether MenuItems should have images (notably stock icons) showing
on them by default.
|
void |
setShowInputMethodMenu(boolean setting)
Should the context menus of TextViews and Entries have a menu item
offering to let you change the InputMethod?
|
void |
setShowUnicodeMenu(boolean setting)
Should the context menus of TextViews and Entries have a menu item
offering to let you input unusual Unicode control sequences?
|
public boolean getButtonImages()
public boolean getMenuImages()
public boolean getShowInputMethodMenu()
public boolean getShowUnicodeMenu()
public void setButtonImages(boolean setting)
settings.setButtonImages(true);
The default was true
before GNOME 2.28, but it
seems to have been changed as a result of changing the default value of
GConf key /desktop/gnome/interface/buttons_have_icons
. This allows you to return that setting to normal for your
application.
The underlying GtkSetting is the "gtk-button-images" property.
public void setMenuImages(boolean setting)
settings.setMenuImages(true);
Somewhat amazingly, GtkSettings properties are dynamic at runtime; this property does not even exist until the underlying GtkImageMenuItem class has initialized and installed the required property. So if wish to call this you need to do so after you've built some menus.
The underlying GtkSetting is the "gtk-menu-images" property.
public void setShowInputMethodMenu(boolean setting)
Normally they do, so true
is the default.
public void setShowUnicodeMenu(boolean setting)
By default they do, so you can expect this to be true
.