#gtk-toolbar-icon-size = small-toolbar
#gtk-toolbar-icon-size = large-toolbar


# Description below is just an example.

style "ochusha-default-style"
{
  font_name="Mona 10"
#  font_name="MS UI Gothic 10"

  ThreadlistView::fg_normal = ""
  ThreadlistView::fg_emph = "red"
  ThreadlistView::fg_strong = ""
  ThreadlistView::fg_hidden = "gray75"
  ThreadlistView::bg_normal = ""
  ThreadlistView::bg_emph = "lavender"
  ThreadlistView::bg_strong = "#ffe0e0"
  ThreadlistView::bg_hidden = ""

  BoardlistView::fg_normal = ""
  BoardlistView::fg_hidden = "gray75"
  BoardlistView::bg_normal = ""
  BoardlistView::bg_hidden = ""
}


style "ochusha-text-style"
{
  font_name="Mona 12"
#  font_name="MS PGothic 12"
}

#Ƥɽ˴ؤ륹λ
#ɽǻȤեȤϤǻꤷƤΤ
#ǻꤷΤȤ롣
#Ƭ#ȥơޤˤ㤨ХեȤξ硢GNOME
#˥塼饢ץꥱ/ǥȥåפ/եȤ򤹤ȳ
#եȤΥץѥƥΡ֥ץΥեȡפǻꤵ줿եȡˤ
#롣
#class "GtkWidget" style "ochusha-default-style"

#񤭹ߥɥǻȤ륹λ
#Ƭ#ȥơޤˤ꤬񤭤롣꤬ͭˤʤ
#Ƥ硢򹹤˾񤭤롣
#class "GtkTextView" style "ochusha-text-style"

#ѤǻȤ륹λ
#Ƭ#ȥơޤˤ꤬񤭤롣꤬ͭˤʤ
#Ƥ硢򹹤˾񤭤롣
#widget "*.mybookmark.GtkLabel" style "ochusha-text-style"


binding "ochusha-text-binding"
{
  bind "<ctrl>b" { "move-cursor" (logical-positions, -1, 0) }
  bind "<shift><ctrl>b" { "move-cursor" (logical-positions, -1, 1) }
  bind "<ctrl>f" { "move-cursor" (logical-positions, 1, 0) }
  bind "<shift><ctrl>f" { "move-cursor" (logical-positions, 1, 1) }

  bind "<alt>b"  { "move-cursor" (words, -1, 0) }
  bind "<shift><alt>b"  { "move-cursor" (words, -1, 1) }
  bind "<alt>f"  { "move-cursor" (words, 1, 0) }
  bind "<shift><alt>f"  { "move-cursor" (words, 1, 1) }

  bind "<ctrl>a" { "move-cursor" (paragraph-ends, -1, 0) }
  bind "<shift><ctrl>a" { "move-cursor" (paragraph-ends, -1, 1) }
  bind "<ctrl>e" { "move-cursor" (paragraph-ends, 1, 0) }
  bind "<shift><ctrl>e" { "move-cursor" (paragraph-ends, 1, 1) }

  bind "<ctrl>w" { "cut-clipboard" () }
  bind "<ctrl>y" { "paste-clipboard" () }

  bind "<ctrl>d" { "delete-from-cursor" (chars, 1) }
  bind "<ctrl>h" { "delete-from-cursor" (chars, -1) }
  bind "<alt>d"  { "delete-from-cursor" (word-ends, 1) }
  bind "<ctrl>k" { "delete-from-cursor" (paragraph-ends, 1) }
  bind "<alt>backslash"  { "delete-from-cursor" (whitespace, 1) }

  bind "<alt>space" { "delete-from-cursor" (whitespace, 1)
                      "insert-at-cursor" (" ") }
  bind "<alt>KP_Space" { "delete-from-cursor" (whitespace, 1)
                         "insert-at-cursor" (" ") }

  bind "<ctrl>p" { "move-cursor" (display-lines, -1, 0) }
  bind "<ctrl>n" { "move-cursor" (display-lines, 1, 0) }
  bind "<alt>v"  { "move-cursor" (pages, -1, 0) }
  bind "<mod4>v"  { "move-cursor" (pages, -1, 0) }
  bind "<ctrl>v" { "move-cursor" (pages, 1, 0) }
}


binding "ochusha-thread-view-binding"
{
  bind "<ctrl>p" { "scroll_view" (step-backward) }
  bind "<ctrl>n" { "scroll_view" (step-forward) }
  bind "<alt>v"  { "scroll_view" (page-backward) }
  bind "<ctrl>v" { "scroll_view" (page-forward) }
}


#Ƭ#Ƚ񤭹ߥǥEmacsʥХǥ󥰤ˤʤ
#class "GtkTextView" binding "ochusha-text-binding"
#class "BBSThreadView" binding "ochusha-thread-view-binding"


binding "ochusha-response-editor-binding"
{
  bind "Escape" { "nop" () }
}


#Ƭ#Ƚ񤭹ߥǥEscape̵뤹褦ˤʤ롣
#class "ResponseEditor" binding "ochusha-response-editor-binding"
