[Pidgin] #840: gtkrc key bindings don't work

Pidgin trac at pidgin.im
Wed May 9 17:22:07 EDT 2007


#840: gtkrc key bindings don't work
------------------------------------------+---------------------------------
 Reporter:  sdm                           |       Type:  defect
   Status:  new                           |   Priority:  minor 
Component:  pidgin (gtk)                  |    Version:  2.0   
 Keywords:  GTK,GTKRC,keyboard shortcuts  |    Pending:  0     
------------------------------------------+---------------------------------
 I just upgraded from Gaim 2.0 beta to Pidgin 2.0, and I can't get my
 custom keyboard shortcuts to work. Also the link on planet.pidgin.im to
 the example GTKRC is broken; there's no page at http://pidgin.im/gtkrc-2.0

 Here's my gtkrc-2.0 file from the .purple folder; note that on a (wrong)
 hunch, I changed all occurrences of *gaim to *purple, but the file is
 otherwise identical to the one that worked in Gaim 2.0 beta.

 # Sets the font used by all gtk applications.
 gtk-font-name = "Arial 11"

 # Conversation widgets style
 style "imhtml-fix"
 {
 font_name = "Arial 11"
 }
 # Conversation entry box
 widget "*purple_gtkconv_entry" style "imhtml-fix"
 # Conversation
 widget "*purple_gtkconv_imhtml" style "imhtml-fix"
 # Log viewer
 widget "*purple_gtklog_imhtml" style "imhtml-fix"

 # IMHtml input widgets in request dialogs
 widget "*purple_gtkrequest_imhtml" style "imhtml-fix"
 # IMHtml widgets in notify dialogs
 widget "*purple_gtknotify_imhtml" style "imhtml-fix"

 #############################
 #key bindings
 #############################

 # Controls the keybindings that gtk uses for text entry/editing/etc
 # The "emacs" theme turns on things like:
 # ctrl-a == move to beginning of line, ctrl-e == move to end of line, etc.
 #gtk-key-theme-name = "Emacs"

 #to let you edit your gaim key bindings
 gtk-can-change-accels = 1

 # In Gaim 2.0.0 and later, you can set custom keybindings in your theme.
 Here
 # is an example to follow

 binding "sdm"
 {
 # enter inserts a newline
         bind "Return" { "insert-at-cursor" ("\n") }
 #CTRL + ENTER sends the message
         bind "<ctrl>Return" { "message_send" () }
 #CTRL-F1 resets the formatting
         bind "<ctrl>F1" { "format_function_clear" () }
 #CTRL + 1 inserts smile
         bind "<ctrl>1" { "insert-at-cursor" (":)") }
 #CTRL + 2 inserts frown
         bind "<ctrl>2" { "insert-at-cursor" (":(") }
 #CTRL + 3 inserts wink
         bind "<ctrl>3" { "insert-at-cursor" (";)") }
 #CTRL + 4 inserts dopey
         bind "<ctrl>4" { "insert-at-cursor" (":-P") }
 #CTRL + 5 inserts shock
         bind "<ctrl>5" { "insert-at-cursor" ("=-O") }
 #CTRL + 6 inserts kissy
         bind "<ctrl>6" { "insert-at-cursor" (":-*") }
 #CTRL + 7 inserts angry
         bind "<ctrl>7" { "insert-at-cursor" (">:o") }
 #CTRL + 8 inserts cool
         bind "<ctrl>8" { "insert-at-cursor" ("8-)") }
 #CTRL + ALT + 1 inserts embarrassed
         bind "<ctrl><alt>1" { "insert-at-cursor" (":-[") }
 #CTRL + ALT + 2 inserts smile
         bind "<ctrl><alt>2" { "insert-at-cursor" (":'(") }
 #CTRL + ALT + 3 inserts chagrin
         bind "<ctrl><alt>3" { "insert-at-cursor" (":-/") }
 #CTRL + ALT + 4 inserts shit-eating grin
         bind "<ctrl><alt>4" { "insert-at-cursor" (":-D") }
 #CTRL + ALT + 5 inserts angel
         bind "<ctrl><alt>5" { "insert-at-cursor" ("O:-)") }
 }

 widget "*purple_gtkconv_entry" binding "sdm"

-- 
Ticket URL: <http://developer.pidgin.im/ticket/840>
Pidgin <http://pidgin.im>
Pidgin


More information about the Tracker mailing list