summaryrefslogtreecommitdiff
path: root/gtk/testgtkrc
blob: 36bb12464292137e1742d8b7e4bdb4328b9f3a36 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
# pixmap_path "<dir 1>:<dir 2>:<dir 3>:..."
#
# include "rc-file"
#
# style <name> [= <name>]
# {
#   <option>
# }
#
# widget <widget_set> style <style_name>
# widget_class <widget_class_set> style <style_name>

include "/opt/themes/share/themes/Metal/gtk/gtkrc"
#include "/home/otaylor/.themes/Ignorant/gtk/gtkrc"

style "defaultfont" {
#  font = "-adobe-helvetica-medium-r-normal--*-120-*-*-*-*-*-*,*"
#  fontset = "-adobe-helvetica-medium-r-normal--*-120-*-*-*-*-*-*,*"
}

class "GtkWidget" style "defaultfont"

binding "test1"
{
  bind "<ctrl>1" {
    "debug-msg" ("hallo and") 
    "debug-msg" ("huhu")
  }
}

binding "test2"
{
  bind "<ctrl>1" {
    "debug-msg" ("jup!") 
  }
}

# possible priorities are (in ascending order):
# lowest
# gtk         (used by gtk for internal class bindings)
# application (for hard coded bindings on application basis)
# rc          (used implicitly by rc files)
# highest
class "GtkButton" binding "test1"           # implicit : rc
class "GtkButton" binding : highest "test2" # override "rc" priority

binding "clist-test"
{
  bind "j" {
    "scroll-vertical" (step-backward, 0.0)
  }
  bind "k" {
    "scroll-vertical" (step-forward, 0.0)
  }
}

class "GtkCList" binding "clist-test"