|
java-gnome version 4.0.19 | ||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES All Classes | ||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
Objectorg.freedesktop.bindings.Pointer
org.freedesktop.bindings.Proxy
org.gnome.glib.Object
org.gnome.gtk.Settings
public class Settings
Global settings for a GTK application. Get this object by calling the
factory function Gtk.getSettings()
.
settings = Gtk.getSettings(); settings.setButtonImages(true);
Method Summary | |
---|---|
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? |
Methods inherited from class org.freedesktop.bindings.Pointer |
---|
toString |
Methods inherited from class Object |
---|
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Method Detail |
---|
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
.
|
![]() java-gnome |
||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES All Classes | ||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |