annotate doc/gtkrc-2.0 @ 15136:31603a03cc02

[gaim-migrate @ 17921] Etan had changed the account notify stuff so that the prpl decides if the person is a buddy or not; I totally wiped that out with my authorization stuff. This brings it back. Additionally, I added a googletalk flag to JabberStream which can determine at runtime if you're connected to Google Talk. All of the Google Talk extensions can be detected individually with disco, but this might be used for working with perfectly standard XMPP that's implemented in what might be considered a quirky way in Google Talk. For instance, Google Talk automatically adds buddies to your roster when you authorize them to add you. I was going to use this flag so that the Jabber prpl would never ask me to add a Google Talk buddy who's just been automatically added anyway. I decided to keep it, though, since I may still want to specify what group he's in. This opens the door for more Google Talk customization though >:) committer: Tailor Script <tailor@pidgin.im>
author Sean Egan <seanegan@gmail.com>
date Fri, 08 Dec 2006 02:51:47 +0000
parents dca3779701a7
children 88a93f78b489
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
rev   line source
12390
dca3779701a7 [gaim-migrate @ 14697]
Etan Reisner <pidgin@unreliablesource.net>
parents:
diff changeset
1 # When turned on, this option causes gtk to select the contents of an entry field when it becomes focused.
dca3779701a7 [gaim-migrate @ 14697]
Etan Reisner <pidgin@unreliablesource.net>
parents:
diff changeset
2 gtk-entry-select-on-focus = 1
dca3779701a7 [gaim-migrate @ 14697]
Etan Reisner <pidgin@unreliablesource.net>
parents:
diff changeset
3
dca3779701a7 [gaim-migrate @ 14697]
Etan Reisner <pidgin@unreliablesource.net>
parents:
diff changeset
4 # Sets the font used by gtk
dca3779701a7 [gaim-migrate @ 14697]
Etan Reisner <pidgin@unreliablesource.net>
parents:
diff changeset
5 gtk-font-name = "Verdana 9"
dca3779701a7 [gaim-migrate @ 14697]
Etan Reisner <pidgin@unreliablesource.net>
parents:
diff changeset
6
dca3779701a7 [gaim-migrate @ 14697]
Etan Reisner <pidgin@unreliablesource.net>
parents:
diff changeset
7 # Controls the keybindings that gtk uses for text entry/editing/etc
dca3779701a7 [gaim-migrate @ 14697]
Etan Reisner <pidgin@unreliablesource.net>
parents:
diff changeset
8 # The "emacs" theme turns on things like:
dca3779701a7 [gaim-migrate @ 14697]
Etan Reisner <pidgin@unreliablesource.net>
parents:
diff changeset
9 # ctrl-a == move to beginning of line, ctrl-e == move to end of line, etc.
dca3779701a7 [gaim-migrate @ 14697]
Etan Reisner <pidgin@unreliablesource.net>
parents:
diff changeset
10 gtk-key-theme-name = "Emacs"
dca3779701a7 [gaim-migrate @ 14697]
Etan Reisner <pidgin@unreliablesource.net>
parents:
diff changeset
11
dca3779701a7 [gaim-migrate @ 14697]
Etan Reisner <pidgin@unreliablesource.net>
parents:
diff changeset
12 # The following section allows you to change the style of the conversation
dca3779701a7 [gaim-migrate @ 14697]
Etan Reisner <pidgin@unreliablesource.net>
parents:
diff changeset
13 # window widgets, log viewer widget, and request and notify window widgets.
dca3779701a7 [gaim-migrate @ 14697]
Etan Reisner <pidgin@unreliablesource.net>
parents:
diff changeset
14 # These only work in Gaim 0.78 or higher.
dca3779701a7 [gaim-migrate @ 14697]
Etan Reisner <pidgin@unreliablesource.net>
parents:
diff changeset
15 style "imhtml-fix"
dca3779701a7 [gaim-migrate @ 14697]
Etan Reisner <pidgin@unreliablesource.net>
parents:
diff changeset
16 {
dca3779701a7 [gaim-migrate @ 14697]
Etan Reisner <pidgin@unreliablesource.net>
parents:
diff changeset
17 font_name = "Sans 10"
dca3779701a7 [gaim-migrate @ 14697]
Etan Reisner <pidgin@unreliablesource.net>
parents:
diff changeset
18 }
dca3779701a7 [gaim-migrate @ 14697]
Etan Reisner <pidgin@unreliablesource.net>
parents:
diff changeset
19 # Set the widget style for the conversation entry box
dca3779701a7 [gaim-migrate @ 14697]
Etan Reisner <pidgin@unreliablesource.net>
parents:
diff changeset
20 widget "*gaim_gtkconv_entry" style "imhtml-fix"
dca3779701a7 [gaim-migrate @ 14697]
Etan Reisner <pidgin@unreliablesource.net>
parents:
diff changeset
21 # Set the widget style for the conversation
dca3779701a7 [gaim-migrate @ 14697]
Etan Reisner <pidgin@unreliablesource.net>
parents:
diff changeset
22 widget "*gaim_gtkconv_imhtml" style "imhtml-fix"
dca3779701a7 [gaim-migrate @ 14697]
Etan Reisner <pidgin@unreliablesource.net>
parents:
diff changeset
23
dca3779701a7 [gaim-migrate @ 14697]
Etan Reisner <pidgin@unreliablesource.net>
parents:
diff changeset
24 # Set the widget style for the log viewer
dca3779701a7 [gaim-migrate @ 14697]
Etan Reisner <pidgin@unreliablesource.net>
parents:
diff changeset
25 widget "*gaim_gtklog_imhtml" style "imhtml-fix"
dca3779701a7 [gaim-migrate @ 14697]
Etan Reisner <pidgin@unreliablesource.net>
parents:
diff changeset
26
dca3779701a7 [gaim-migrate @ 14697]
Etan Reisner <pidgin@unreliablesource.net>
parents:
diff changeset
27 # Set the widget style for IMHtml input widgets in request dialogs
dca3779701a7 [gaim-migrate @ 14697]
Etan Reisner <pidgin@unreliablesource.net>
parents:
diff changeset
28 widget "*gaim_gtkrequest_imhtml" style "imhtml-fix"
dca3779701a7 [gaim-migrate @ 14697]
Etan Reisner <pidgin@unreliablesource.net>
parents:
diff changeset
29 # Set the widget style for IMHtml widgets in notify dialogs
dca3779701a7 [gaim-migrate @ 14697]
Etan Reisner <pidgin@unreliablesource.net>
parents:
diff changeset
30 widget "*gaim_gtknotify_imhtml" style "imhtml-fix"
dca3779701a7 [gaim-migrate @ 14697]
Etan Reisner <pidgin@unreliablesource.net>
parents:
diff changeset
31
dca3779701a7 [gaim-migrate @ 14697]
Etan Reisner <pidgin@unreliablesource.net>
parents:
diff changeset
32 # Uncommenting the line below sets all IMHtml widgets in Gaim to the same style
dca3779701a7 [gaim-migrate @ 14697]
Etan Reisner <pidgin@unreliablesource.net>
parents:
diff changeset
33 # and will work in Gaim versions prior to 0.78
dca3779701a7 [gaim-migrate @ 14697]
Etan Reisner <pidgin@unreliablesource.net>
parents:
diff changeset
34 #widget_class "*.GtkScrolledWindow.GtkIMHtml" style "imhtml-fix"
dca3779701a7 [gaim-migrate @ 14697]
Etan Reisner <pidgin@unreliablesource.net>
parents:
diff changeset
35
dca3779701a7 [gaim-migrate @ 14697]
Etan Reisner <pidgin@unreliablesource.net>
parents:
diff changeset
36 # The following lets you customize the color of hyperlinks
dca3779701a7 [gaim-migrate @ 14697]
Etan Reisner <pidgin@unreliablesource.net>
parents:
diff changeset
37 # and also the text cursors. The link color thing is Gaim specific
dca3779701a7 [gaim-migrate @ 14697]
Etan Reisner <pidgin@unreliablesource.net>
parents:
diff changeset
38 # but the rest work for any Gtk2 program. You can search the Gtk2
dca3779701a7 [gaim-migrate @ 14697]
Etan Reisner <pidgin@unreliablesource.net>
parents:
diff changeset
39 # docs for other style properties.
dca3779701a7 [gaim-migrate @ 14697]
Etan Reisner <pidgin@unreliablesource.net>
parents:
diff changeset
40 style "my-style-name" {
dca3779701a7 [gaim-migrate @ 14697]
Etan Reisner <pidgin@unreliablesource.net>
parents:
diff changeset
41 GtkIMHtml::hyperlink-color = "#000080"
dca3779701a7 [gaim-migrate @ 14697]
Etan Reisner <pidgin@unreliablesource.net>
parents:
diff changeset
42 GtkWidget::cursor-color = "#0000FF"
dca3779701a7 [gaim-migrate @ 14697]
Etan Reisner <pidgin@unreliablesource.net>
parents:
diff changeset
43 GtkWidget::secondary-cursor-color = "#00FF00" #for mixed ltr and rtl
dca3779701a7 [gaim-migrate @ 14697]
Etan Reisner <pidgin@unreliablesource.net>
parents:
diff changeset
44 }
dca3779701a7 [gaim-migrate @ 14697]
Etan Reisner <pidgin@unreliablesource.net>
parents:
diff changeset
45 widget_class "*" style "my-style-name"
dca3779701a7 [gaim-migrate @ 14697]
Etan Reisner <pidgin@unreliablesource.net>
parents:
diff changeset
46
dca3779701a7 [gaim-migrate @ 14697]
Etan Reisner <pidgin@unreliablesource.net>
parents:
diff changeset
47 # This style sets the expander size on a treeview to 0, which has the result
dca3779701a7 [gaim-migrate @ 14697]
Etan Reisner <pidgin@unreliablesource.net>
parents:
diff changeset
48 # of reducing the indent for items in the tree. This can be applied to the
dca3779701a7 [gaim-migrate @ 14697]
Etan Reisner <pidgin@unreliablesource.net>
parents:
diff changeset
49 # Gaim buddy list to reduce it's width.
dca3779701a7 [gaim-migrate @ 14697]
Etan Reisner <pidgin@unreliablesource.net>
parents:
diff changeset
50 # This only works in Gaim 0.79 and higher
dca3779701a7 [gaim-migrate @ 14697]
Etan Reisner <pidgin@unreliablesource.net>
parents:
diff changeset
51 style "my-narrow-tree"
dca3779701a7 [gaim-migrate @ 14697]
Etan Reisner <pidgin@unreliablesource.net>
parents:
diff changeset
52 {
dca3779701a7 [gaim-migrate @ 14697]
Etan Reisner <pidgin@unreliablesource.net>
parents:
diff changeset
53 GtkTreeView::expander_size = 0
dca3779701a7 [gaim-migrate @ 14697]
Etan Reisner <pidgin@unreliablesource.net>
parents:
diff changeset
54 }
dca3779701a7 [gaim-migrate @ 14697]
Etan Reisner <pidgin@unreliablesource.net>
parents:
diff changeset
55
dca3779701a7 [gaim-migrate @ 14697]
Etan Reisner <pidgin@unreliablesource.net>
parents:
diff changeset
56 # And apply the style to the buddy list:
dca3779701a7 [gaim-migrate @ 14697]
Etan Reisner <pidgin@unreliablesource.net>
parents:
diff changeset
57 widget "*gaim_gtkblist_treeview" style "my-narrow-tree"
dca3779701a7 [gaim-migrate @ 14697]
Etan Reisner <pidgin@unreliablesource.net>
parents:
diff changeset
58
dca3779701a7 [gaim-migrate @ 14697]
Etan Reisner <pidgin@unreliablesource.net>
parents:
diff changeset
59 # In Gaim 2.0.0 and later, you can set custom keybindings in your theme. Here
dca3779701a7 [gaim-migrate @ 14697]
Etan Reisner <pidgin@unreliablesource.net>
parents:
diff changeset
60 # is an example to follow
dca3779701a7 [gaim-migrate @ 14697]
Etan Reisner <pidgin@unreliablesource.net>
parents:
diff changeset
61
dca3779701a7 [gaim-migrate @ 14697]
Etan Reisner <pidgin@unreliablesource.net>
parents:
diff changeset
62 binding "my-bindings"
dca3779701a7 [gaim-migrate @ 14697]
Etan Reisner <pidgin@unreliablesource.net>
parents:
diff changeset
63 {
dca3779701a7 [gaim-migrate @ 14697]
Etan Reisner <pidgin@unreliablesource.net>
parents:
diff changeset
64 # enter inserts a newline
dca3779701a7 [gaim-migrate @ 14697]
Etan Reisner <pidgin@unreliablesource.net>
parents:
diff changeset
65 bind "Return" { "insert-at-cursor" ("\n") }
dca3779701a7 [gaim-migrate @ 14697]
Etan Reisner <pidgin@unreliablesource.net>
parents:
diff changeset
66 # ctrl-s sends message
dca3779701a7 [gaim-migrate @ 14697]
Etan Reisner <pidgin@unreliablesource.net>
parents:
diff changeset
67 bind "<ctrl>s" { "message_send" () }
dca3779701a7 [gaim-migrate @ 14697]
Etan Reisner <pidgin@unreliablesource.net>
parents:
diff changeset
68 # shift-f1 toggles bold
dca3779701a7 [gaim-migrate @ 14697]
Etan Reisner <pidgin@unreliablesource.net>
parents:
diff changeset
69 bind "<shft>F1" { "format_toggle" (1) }
dca3779701a7 [gaim-migrate @ 14697]
Etan Reisner <pidgin@unreliablesource.net>
parents:
diff changeset
70 # alt-f2 toggles italic
dca3779701a7 [gaim-migrate @ 14697]
Etan Reisner <pidgin@unreliablesource.net>
parents:
diff changeset
71 bind "<alt>F2" { "format_toggle" (2) }
dca3779701a7 [gaim-migrate @ 14697]
Etan Reisner <pidgin@unreliablesource.net>
parents:
diff changeset
72 # Ctrl-alt-shift-f3 toggles underline
dca3779701a7 [gaim-migrate @ 14697]
Etan Reisner <pidgin@unreliablesource.net>
parents:
diff changeset
73 bind "<ctrl><alt><shift>F3" { "format_toggle" (4) }
dca3779701a7 [gaim-migrate @ 14697]
Etan Reisner <pidgin@unreliablesource.net>
parents:
diff changeset
74 }
dca3779701a7 [gaim-migrate @ 14697]
Etan Reisner <pidgin@unreliablesource.net>
parents:
diff changeset
75
dca3779701a7 [gaim-migrate @ 14697]
Etan Reisner <pidgin@unreliablesource.net>
parents:
diff changeset
76 widget "*gaim_gtkconv_entry" binding "my-bindings"
dca3779701a7 [gaim-migrate @ 14697]
Etan Reisner <pidgin@unreliablesource.net>
parents:
diff changeset
77
dca3779701a7 [gaim-migrate @ 14697]
Etan Reisner <pidgin@unreliablesource.net>
parents:
diff changeset
78 #to let you edit your gaim key bindings
dca3779701a7 [gaim-migrate @ 14697]
Etan Reisner <pidgin@unreliablesource.net>
parents:
diff changeset
79 gtk-can-change-accels = 1