Skip to content

Instantly share code, notes, and snippets.

@corpulentcoffee
Created February 2, 2019 23:03
Show Gist options
  • Save corpulentcoffee/94eef008e3b7c04b2c94c990920dcf5c to your computer and use it in GitHub Desktop.
Save corpulentcoffee/94eef008e3b7c04b2c94c990920dcf5c to your computer and use it in GitHub Desktop.
Enable arrow key expansion/collapse for tree views in GTK+ 2 applications
binding 'gtk-binding-tree-view' {
bind 'Left' { 'expand-collapse-cursor-row' (0,0,0) } # fold
bind 'Right' { 'expand-collapse-cursor-row' (0,1,0) } # expand
}
class 'GtkTreeView' binding 'gtk-binding-tree-view'
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment