diff options
author | Kristian Rietveld <kris@gtk.org> | 2006-12-27 19:52:25 +0000 |
---|---|---|
committer | Kristian Rietveld <kristian@src.gnome.org> | 2006-12-27 19:52:25 +0000 |
commit | 0677ad8e5967586ba0583340f92d9a5a616618e9 (patch) | |
tree | 43fb49601e38d49221f9ddecfa1b8d760b9eb2e2 /gtk/gtksettings.c | |
parent | cc89cf541f90ff2497dfbb4c3193a6ea87817b67 (diff) | |
download | gtk+-0677ad8e5967586ba0583340f92d9a5a616618e9.tar.gz |
Support inverting arrows via XSetting. (#377979, Yevgen Muntyan).
2006-12-27 Kristian Rietveld <kris@gtk.org>
Support inverting arrows via XSetting. (#377979, Yevgen Muntyan).
* gtk/gtksettings.c (gtk_settings_class_init): add new setting
gtk-alternative-sort-arrows.
* gdk/win32/gdkproperty-win32.c (gdk_screen_get_setting): add
new setting.
* modules/engines/ms-windows/Theme/gtk-2.0/gtkrc: set new
gtk-alternative-sort-arrows setting to true.
* gtk/gtktreeviewcolumn.c (gtk_tree_view_column_update_button):
invert direction if gtk-alternative-sort-arrows is TRUE.
Diffstat (limited to 'gtk/gtksettings.c')
-rw-r--r-- | gtk/gtksettings.c | 19 |
1 files changed, 19 insertions, 0 deletions
diff --git a/gtk/gtksettings.c b/gtk/gtksettings.c index bd969c64b6..707139af68 100644 --- a/gtk/gtksettings.c +++ b/gtk/gtksettings.c @@ -85,6 +85,7 @@ enum { PROP_CURSOR_THEME_SIZE, #endif PROP_ALTERNATIVE_BUTTON_ORDER, + PROP_ALTERNATIVE_SORT_ARROWS, PROP_SHOW_INPUT_METHOD_MENU, PROP_SHOW_UNICODE_MENU, PROP_TIMEOUT_INITIAL, @@ -419,6 +420,24 @@ gtk_settings_class_init (GtkSettingsClass *class) NULL); g_assert (result == PROP_ALTERNATIVE_BUTTON_ORDER); + /** + * GtkSettings:gtk-alternative-sort-arrows: + * + * Controls the direction of the sort indicators in sorted list and tree + * views. By default an arrow pointing down means the column is sorted + * in ascending order. When set to %TRUE, this order will be inverted. + * + * Since: 2.12 + */ + result = settings_install_property_parser (class, + g_param_spec_boolean ("gtk-alternative-sort-arrows", + P_("Alternative sort indicator direction"), + P_("Whether the direction of the sort indicators in list and tree views is inverted compared to the default (where down means ascending)"), + FALSE, + GTK_PARAM_READWRITE), + NULL); + g_assert (result == PROP_ALTERNATIVE_SORT_ARROWS); + result = settings_install_property_parser (class, g_param_spec_boolean ("gtk-show-input-method-menu", P_("Show the 'Input Methods' menu"), |