Mercurial > pidgin
annotate plugins/gestures/gestures.c @ 5782:087b4b5abe35
[gaim-migrate @ 6207]
Fixed the weird bug where the table got wacko (that's the official term)
when clicking the Auto-Login box.
committer: Tailor Script <tailor@pidgin.im>
author | Christian Hammond <chipx86@chipx86.com> |
---|---|
date | Sat, 07 Jun 2003 02:14:40 +0000 |
parents | c97d9ca044a7 |
children | 059d95c67cda |
rev | line source |
---|---|
4390 | 1 /* |
2 * Mouse gestures plugin for Gaim | |
3 * | |
4 * Copyright (C) 2003 Christian Hammond. | |
5 * | |
6 * This program is free software; you can redistribute it and/or | |
7 * modify it under the terms of the GNU General Public License as | |
8 * published by the Free Software Foundation; either version 2 of the | |
9 * License, or (at your option) any later version. | |
10 * | |
11 * This program is distributed in the hope that it will be useful, but | |
12 * WITHOUT ANY WARRANTY; without even the implied warranty of | |
13 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU | |
14 * General Public License for more details. | |
15 * | |
16 * You should have received a copy of the GNU General Public License | |
17 * along with this program; if not, write to the Free Software | |
18 * Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA | |
19 * 02111-1307, USA. | |
20 */ | |
21 #include "config.h" | |
22 | |
23 #include "gaim.h" | |
5767
c97d9ca044a7
[gaim-migrate @ 6192]
Christian Hammond <chipx86@chipx86.com>
parents:
5676
diff
changeset
|
24 #include "prefs.h" |
4390 | 25 #include "gstroke.h" |
5205
fefad67de2c7
[gaim-migrate @ 5573]
Christian Hammond <chipx86@chipx86.com>
parents:
5016
diff
changeset
|
26 #include "gtkconv.h" |
fefad67de2c7
[gaim-migrate @ 5573]
Christian Hammond <chipx86@chipx86.com>
parents:
5016
diff
changeset
|
27 #include "gtkplugin.h" |
4390 | 28 |
5205
fefad67de2c7
[gaim-migrate @ 5573]
Christian Hammond <chipx86@chipx86.com>
parents:
5016
diff
changeset
|
29 #define GESTURES_PLUGIN_ID "gtk-gestures" |
4390 | 30 |
31 static void | |
32 stroke_close(GtkWidget *widget, void *data) | |
33 { | |
5676
dae79aefac8d
[gaim-migrate @ 6094]
Christian Hammond <chipx86@chipx86.com>
parents:
5530
diff
changeset
|
34 GaimConversation *conv; |
dae79aefac8d
[gaim-migrate @ 6094]
Christian Hammond <chipx86@chipx86.com>
parents:
5530
diff
changeset
|
35 GaimGtkConversation *gtkconv; |
4390 | 36 |
5676
dae79aefac8d
[gaim-migrate @ 6094]
Christian Hammond <chipx86@chipx86.com>
parents:
5530
diff
changeset
|
37 conv = (GaimConversation *)data; |
4390 | 38 |
39 /* Double-check */ | |
40 if (!GAIM_IS_GTK_CONVERSATION(conv)) | |
41 return; | |
42 | |
43 gtkconv = GAIM_GTK_CONVERSATION(conv); | |
44 | |
45 gstroke_cleanup(gtkconv->imhtml); | |
46 gaim_conversation_destroy(conv); | |
47 } | |
48 | |
49 static void | |
50 stroke_prev_tab(GtkWidget *widget, void *data) | |
51 { | |
5676
dae79aefac8d
[gaim-migrate @ 6094]
Christian Hammond <chipx86@chipx86.com>
parents:
5530
diff
changeset
|
52 GaimConversation *conv; |
dae79aefac8d
[gaim-migrate @ 6094]
Christian Hammond <chipx86@chipx86.com>
parents:
5530
diff
changeset
|
53 GaimWindow *win; |
4390 | 54 unsigned int index; |
55 | |
5676
dae79aefac8d
[gaim-migrate @ 6094]
Christian Hammond <chipx86@chipx86.com>
parents:
5530
diff
changeset
|
56 conv = (GaimConversation *)data; |
4390 | 57 win = gaim_conversation_get_window(conv); |
58 index = gaim_conversation_get_index(conv); | |
59 | |
60 if (index == 0) | |
61 index = gaim_window_get_conversation_count(win) - 1; | |
62 else | |
63 index--; | |
64 | |
65 gaim_window_switch_conversation(win, index); | |
66 } | |
67 | |
68 static void | |
69 stroke_next_tab(GtkWidget *widget, void *data) | |
70 { | |
5676
dae79aefac8d
[gaim-migrate @ 6094]
Christian Hammond <chipx86@chipx86.com>
parents:
5530
diff
changeset
|
71 GaimConversation *conv; |
dae79aefac8d
[gaim-migrate @ 6094]
Christian Hammond <chipx86@chipx86.com>
parents:
5530
diff
changeset
|
72 GaimWindow *win; |
4390 | 73 unsigned int index; |
74 | |
5676
dae79aefac8d
[gaim-migrate @ 6094]
Christian Hammond <chipx86@chipx86.com>
parents:
5530
diff
changeset
|
75 conv = (GaimConversation *)data; |
4390 | 76 win = gaim_conversation_get_window(conv); |
77 index = gaim_conversation_get_index(conv); | |
78 | |
79 if (index == gaim_window_get_conversation_count(win) - 1) | |
80 index = 0; | |
81 else | |
82 index++; | |
83 | |
84 gaim_window_switch_conversation(win, index); | |
85 } | |
86 | |
87 void | |
88 stroke_new_win(GtkWidget *widget, void *data) | |
89 { | |
5676
dae79aefac8d
[gaim-migrate @ 6094]
Christian Hammond <chipx86@chipx86.com>
parents:
5530
diff
changeset
|
90 GaimWindow *new_win, *old_win; |
dae79aefac8d
[gaim-migrate @ 6094]
Christian Hammond <chipx86@chipx86.com>
parents:
5530
diff
changeset
|
91 GaimConversation *conv; |
4390 | 92 |
5676
dae79aefac8d
[gaim-migrate @ 6094]
Christian Hammond <chipx86@chipx86.com>
parents:
5530
diff
changeset
|
93 conv = (GaimConversation *)data; |
4390 | 94 old_win = gaim_conversation_get_window(conv); |
95 | |
96 if (gaim_window_get_conversation_count(old_win) <= 1) | |
97 return; | |
98 | |
99 new_win = gaim_window_new(); | |
100 | |
101 gaim_window_remove_conversation(old_win, gaim_conversation_get_index(conv)); | |
102 gaim_window_add_conversation(new_win, conv); | |
103 | |
104 gaim_window_show(new_win); | |
105 } | |
106 | |
107 static void | |
5676
dae79aefac8d
[gaim-migrate @ 6094]
Christian Hammond <chipx86@chipx86.com>
parents:
5530
diff
changeset
|
108 attach_signals(GaimConversation *conv) |
4390 | 109 { |
5676
dae79aefac8d
[gaim-migrate @ 6094]
Christian Hammond <chipx86@chipx86.com>
parents:
5530
diff
changeset
|
110 GaimGtkConversation *gtkconv; |
4390 | 111 |
112 gtkconv = GAIM_GTK_CONVERSATION(conv); | |
113 | |
114 gstroke_enable(gtkconv->imhtml); | |
115 gstroke_signal_connect(gtkconv->imhtml, "14789", stroke_close, conv); | |
116 gstroke_signal_connect(gtkconv->imhtml, "1456", stroke_close, conv); | |
5016
ae7760945ef2
[gaim-migrate @ 5352]
Christian Hammond <chipx86@chipx86.com>
parents:
4843
diff
changeset
|
117 gstroke_signal_connect(gtkconv->imhtml, "1489", stroke_close, conv); |
4390 | 118 gstroke_signal_connect(gtkconv->imhtml, "74123", stroke_next_tab, conv); |
119 gstroke_signal_connect(gtkconv->imhtml, "7456", stroke_next_tab, conv); | |
120 gstroke_signal_connect(gtkconv->imhtml, "96321", stroke_prev_tab, conv); | |
121 gstroke_signal_connect(gtkconv->imhtml, "9654", stroke_prev_tab, conv); | |
122 gstroke_signal_connect(gtkconv->imhtml, "25852", stroke_new_win, conv); | |
123 } | |
124 | |
125 static void | |
126 new_conv_cb(char *who) | |
127 { | |
5676
dae79aefac8d
[gaim-migrate @ 6094]
Christian Hammond <chipx86@chipx86.com>
parents:
5530
diff
changeset
|
128 GaimConversation *conv; |
4390 | 129 |
130 conv = gaim_find_conversation(who); | |
131 | |
132 if (conv == NULL || !GAIM_IS_GTK_CONVERSATION(conv)) | |
133 return; | |
134 | |
135 attach_signals(conv); | |
136 } | |
137 | |
138 #if 0 | |
139 static void | |
140 mouse_button_menu_cb(GtkMenuItem *item, gpointer data) | |
141 { | |
142 int button = (int)data; | |
143 | |
144 gstroke_set_mouse_button(button + 2); | |
145 } | |
146 #endif | |
147 | |
148 static void | |
149 toggle_draw_cb(GtkToggleButton *toggle, gpointer data) | |
150 { | |
5767
c97d9ca044a7
[gaim-migrate @ 6192]
Christian Hammond <chipx86@chipx86.com>
parents:
5676
diff
changeset
|
151 gaim_prefs_set_bool("/plugins/gtk/X11/gestures/visual", |
c97d9ca044a7
[gaim-migrate @ 6192]
Christian Hammond <chipx86@chipx86.com>
parents:
5676
diff
changeset
|
152 gtk_toggle_button_get_active(toggle)); |
c97d9ca044a7
[gaim-migrate @ 6192]
Christian Hammond <chipx86@chipx86.com>
parents:
5676
diff
changeset
|
153 } |
c97d9ca044a7
[gaim-migrate @ 6192]
Christian Hammond <chipx86@chipx86.com>
parents:
5676
diff
changeset
|
154 |
c97d9ca044a7
[gaim-migrate @ 6192]
Christian Hammond <chipx86@chipx86.com>
parents:
5676
diff
changeset
|
155 static void |
c97d9ca044a7
[gaim-migrate @ 6192]
Christian Hammond <chipx86@chipx86.com>
parents:
5676
diff
changeset
|
156 visual_pref_cb(const char *name, GaimPrefType type, gpointer value, |
c97d9ca044a7
[gaim-migrate @ 6192]
Christian Hammond <chipx86@chipx86.com>
parents:
5676
diff
changeset
|
157 gpointer data) |
c97d9ca044a7
[gaim-migrate @ 6192]
Christian Hammond <chipx86@chipx86.com>
parents:
5676
diff
changeset
|
158 { |
c97d9ca044a7
[gaim-migrate @ 6192]
Christian Hammond <chipx86@chipx86.com>
parents:
5676
diff
changeset
|
159 gstroke_set_draw_strokes((gboolean)value); |
4390 | 160 } |
161 | |
5205
fefad67de2c7
[gaim-migrate @ 5573]
Christian Hammond <chipx86@chipx86.com>
parents:
5016
diff
changeset
|
162 static gboolean |
fefad67de2c7
[gaim-migrate @ 5573]
Christian Hammond <chipx86@chipx86.com>
parents:
5016
diff
changeset
|
163 plugin_load(GaimPlugin *plugin) |
4390 | 164 { |
5676
dae79aefac8d
[gaim-migrate @ 6094]
Christian Hammond <chipx86@chipx86.com>
parents:
5530
diff
changeset
|
165 GaimConversation *conv; |
4390 | 166 GList *l; |
167 | |
168 for (l = gaim_get_conversations(); l != NULL; l = l->next) { | |
5676
dae79aefac8d
[gaim-migrate @ 6094]
Christian Hammond <chipx86@chipx86.com>
parents:
5530
diff
changeset
|
169 conv = (GaimConversation *)l->data; |
4390 | 170 |
171 if (!GAIM_IS_GTK_CONVERSATION(conv)) | |
172 continue; | |
173 | |
174 attach_signals(conv); | |
175 } | |
176 | |
5205
fefad67de2c7
[gaim-migrate @ 5573]
Christian Hammond <chipx86@chipx86.com>
parents:
5016
diff
changeset
|
177 gaim_signal_connect(plugin, event_new_conversation, new_conv_cb, NULL); |
4390 | 178 |
5205
fefad67de2c7
[gaim-migrate @ 5573]
Christian Hammond <chipx86@chipx86.com>
parents:
5016
diff
changeset
|
179 return TRUE; |
4390 | 180 } |
181 | |
5205
fefad67de2c7
[gaim-migrate @ 5573]
Christian Hammond <chipx86@chipx86.com>
parents:
5016
diff
changeset
|
182 static gboolean |
fefad67de2c7
[gaim-migrate @ 5573]
Christian Hammond <chipx86@chipx86.com>
parents:
5016
diff
changeset
|
183 plugin_unload(GaimPlugin *plugin) |
4390 | 184 { |
5676
dae79aefac8d
[gaim-migrate @ 6094]
Christian Hammond <chipx86@chipx86.com>
parents:
5530
diff
changeset
|
185 GaimConversation *conv; |
dae79aefac8d
[gaim-migrate @ 6094]
Christian Hammond <chipx86@chipx86.com>
parents:
5530
diff
changeset
|
186 GaimGtkConversation *gtkconv; |
4390 | 187 GList *l; |
188 | |
189 for (l = gaim_get_conversations(); l != NULL; l = l->next) { | |
5676
dae79aefac8d
[gaim-migrate @ 6094]
Christian Hammond <chipx86@chipx86.com>
parents:
5530
diff
changeset
|
190 conv = (GaimConversation *)l->data; |
4390 | 191 |
192 if (!GAIM_IS_GTK_CONVERSATION(conv)) | |
193 continue; | |
194 | |
195 gtkconv = GAIM_GTK_CONVERSATION(conv); | |
196 | |
197 gstroke_cleanup(gtkconv->imhtml); | |
198 } | |
5205
fefad67de2c7
[gaim-migrate @ 5573]
Christian Hammond <chipx86@chipx86.com>
parents:
5016
diff
changeset
|
199 |
fefad67de2c7
[gaim-migrate @ 5573]
Christian Hammond <chipx86@chipx86.com>
parents:
5016
diff
changeset
|
200 return TRUE; |
4390 | 201 } |
202 | |
5205
fefad67de2c7
[gaim-migrate @ 5573]
Christian Hammond <chipx86@chipx86.com>
parents:
5016
diff
changeset
|
203 static GtkWidget * |
fefad67de2c7
[gaim-migrate @ 5573]
Christian Hammond <chipx86@chipx86.com>
parents:
5016
diff
changeset
|
204 get_config_frame(GaimPlugin *plugin) |
4390 | 205 { |
206 GtkWidget *ret; | |
207 GtkWidget *vbox; | |
208 GtkWidget *toggle; | |
209 #if 0 | |
210 GtkWidget *opt; | |
211 GtkWidget *menu, *item; | |
212 #endif | |
213 | |
214 /* Outside container */ | |
215 ret = gtk_vbox_new(FALSE, 18); | |
216 gtk_container_set_border_width(GTK_CONTAINER(ret), 12); | |
217 | |
218 /* Configuration frame */ | |
5530
2c4c975620f0
[gaim-migrate @ 5930]
Christian Hammond <chipx86@chipx86.com>
parents:
5205
diff
changeset
|
219 vbox = gaim_gtk_make_frame(ret, _("Mouse Gestures Configuration")); |
4390 | 220 |
221 #if 0 | |
222 /* Mouse button drop-down menu */ | |
223 menu = gtk_menu_new(); | |
224 opt = gtk_option_menu_new(); | |
225 | |
226 item = gtk_menu_item_new_with_label(_("Middle mouse button")); | |
227 g_signal_connect(G_OBJECT(item), "activate", | |
228 G_CALLBACK(mouse_button_menu_cb), opt); | |
229 gtk_menu_append(menu, item); | |
230 | |
231 item = gtk_menu_item_new_with_label(_("Right mouse button")); | |
232 g_signal_connect(G_OBJECT(item), "activate", | |
233 G_CALLBACK(mouse_button_menu_cb), opt); | |
234 gtk_menu_append(menu, item); | |
235 | |
236 gtk_box_pack_start(GTK_BOX(vbox), opt, FALSE, FALSE, 0); | |
237 gtk_option_menu_set_menu(GTK_OPTION_MENU(opt), menu); | |
238 gtk_option_menu_set_history(GTK_OPTION_MENU(opt), | |
239 gstroke_get_mouse_button() - 2); | |
240 #endif | |
241 | |
242 /* "Visual gesture display" checkbox */ | |
243 toggle = gtk_check_button_new_with_mnemonic(_("_Visual gesture display")); | |
244 gtk_box_pack_start(GTK_BOX(vbox), toggle, FALSE, FALSE, 0); | |
245 gtk_toggle_button_set_active(GTK_TOGGLE_BUTTON(toggle), | |
5767
c97d9ca044a7
[gaim-migrate @ 6192]
Christian Hammond <chipx86@chipx86.com>
parents:
5676
diff
changeset
|
246 gaim_prefs_get_bool("/plugins/gtk/X11/gestures/visual")); |
4390 | 247 g_signal_connect(G_OBJECT(toggle), "toggled", |
248 G_CALLBACK(toggle_draw_cb), NULL); | |
249 | |
250 gtk_widget_show_all(ret); | |
251 | |
252 return ret; | |
253 } | |
254 | |
5205
fefad67de2c7
[gaim-migrate @ 5573]
Christian Hammond <chipx86@chipx86.com>
parents:
5016
diff
changeset
|
255 static GaimGtkPluginUiInfo ui_info = |
fefad67de2c7
[gaim-migrate @ 5573]
Christian Hammond <chipx86@chipx86.com>
parents:
5016
diff
changeset
|
256 { |
fefad67de2c7
[gaim-migrate @ 5573]
Christian Hammond <chipx86@chipx86.com>
parents:
5016
diff
changeset
|
257 get_config_frame |
fefad67de2c7
[gaim-migrate @ 5573]
Christian Hammond <chipx86@chipx86.com>
parents:
5016
diff
changeset
|
258 }; |
fefad67de2c7
[gaim-migrate @ 5573]
Christian Hammond <chipx86@chipx86.com>
parents:
5016
diff
changeset
|
259 |
fefad67de2c7
[gaim-migrate @ 5573]
Christian Hammond <chipx86@chipx86.com>
parents:
5016
diff
changeset
|
260 static GaimPluginInfo info = |
4390 | 261 { |
5205
fefad67de2c7
[gaim-migrate @ 5573]
Christian Hammond <chipx86@chipx86.com>
parents:
5016
diff
changeset
|
262 2, /**< api_version */ |
fefad67de2c7
[gaim-migrate @ 5573]
Christian Hammond <chipx86@chipx86.com>
parents:
5016
diff
changeset
|
263 GAIM_PLUGIN_STANDARD, /**< type */ |
fefad67de2c7
[gaim-migrate @ 5573]
Christian Hammond <chipx86@chipx86.com>
parents:
5016
diff
changeset
|
264 GAIM_GTK_PLUGIN_TYPE, /**< ui_requirement */ |
fefad67de2c7
[gaim-migrate @ 5573]
Christian Hammond <chipx86@chipx86.com>
parents:
5016
diff
changeset
|
265 0, /**< flags */ |
fefad67de2c7
[gaim-migrate @ 5573]
Christian Hammond <chipx86@chipx86.com>
parents:
5016
diff
changeset
|
266 NULL, /**< dependencies */ |
fefad67de2c7
[gaim-migrate @ 5573]
Christian Hammond <chipx86@chipx86.com>
parents:
5016
diff
changeset
|
267 GAIM_PRIORITY_DEFAULT, /**< priority */ |
4390 | 268 |
5205
fefad67de2c7
[gaim-migrate @ 5573]
Christian Hammond <chipx86@chipx86.com>
parents:
5016
diff
changeset
|
269 GESTURES_PLUGIN_ID, /**< id */ |
fefad67de2c7
[gaim-migrate @ 5573]
Christian Hammond <chipx86@chipx86.com>
parents:
5016
diff
changeset
|
270 N_("Mouse Gestures"), /**< name */ |
fefad67de2c7
[gaim-migrate @ 5573]
Christian Hammond <chipx86@chipx86.com>
parents:
5016
diff
changeset
|
271 VERSION, /**< version */ |
fefad67de2c7
[gaim-migrate @ 5573]
Christian Hammond <chipx86@chipx86.com>
parents:
5016
diff
changeset
|
272 /** summary */ |
fefad67de2c7
[gaim-migrate @ 5573]
Christian Hammond <chipx86@chipx86.com>
parents:
5016
diff
changeset
|
273 N_("Provides support for mouse gestures"), |
fefad67de2c7
[gaim-migrate @ 5573]
Christian Hammond <chipx86@chipx86.com>
parents:
5016
diff
changeset
|
274 /** description */ |
fefad67de2c7
[gaim-migrate @ 5573]
Christian Hammond <chipx86@chipx86.com>
parents:
5016
diff
changeset
|
275 N_("Allows support for mouse gestures in conversation windows.\n" |
fefad67de2c7
[gaim-migrate @ 5573]
Christian Hammond <chipx86@chipx86.com>
parents:
5016
diff
changeset
|
276 "Drag the middle mouse button to perform certain actions:\n\n" |
fefad67de2c7
[gaim-migrate @ 5573]
Christian Hammond <chipx86@chipx86.com>
parents:
5016
diff
changeset
|
277 "Drag down and then to the right to close a conversation.\n" |
fefad67de2c7
[gaim-migrate @ 5573]
Christian Hammond <chipx86@chipx86.com>
parents:
5016
diff
changeset
|
278 "Drag up and then to the left to switch to the previous " |
fefad67de2c7
[gaim-migrate @ 5573]
Christian Hammond <chipx86@chipx86.com>
parents:
5016
diff
changeset
|
279 "conversation.\n" |
fefad67de2c7
[gaim-migrate @ 5573]
Christian Hammond <chipx86@chipx86.com>
parents:
5016
diff
changeset
|
280 "Drag up and then to the right to switch to the next " |
fefad67de2c7
[gaim-migrate @ 5573]
Christian Hammond <chipx86@chipx86.com>
parents:
5016
diff
changeset
|
281 "conversation."), |
fefad67de2c7
[gaim-migrate @ 5573]
Christian Hammond <chipx86@chipx86.com>
parents:
5016
diff
changeset
|
282 "Christian Hammond <chipx86@gnupdate.org>", /**< author */ |
fefad67de2c7
[gaim-migrate @ 5573]
Christian Hammond <chipx86@chipx86.com>
parents:
5016
diff
changeset
|
283 WEBSITE, /**< homepage */ |
fefad67de2c7
[gaim-migrate @ 5573]
Christian Hammond <chipx86@chipx86.com>
parents:
5016
diff
changeset
|
284 |
fefad67de2c7
[gaim-migrate @ 5573]
Christian Hammond <chipx86@chipx86.com>
parents:
5016
diff
changeset
|
285 plugin_load, /**< load */ |
fefad67de2c7
[gaim-migrate @ 5573]
Christian Hammond <chipx86@chipx86.com>
parents:
5016
diff
changeset
|
286 plugin_unload, /**< unload */ |
fefad67de2c7
[gaim-migrate @ 5573]
Christian Hammond <chipx86@chipx86.com>
parents:
5016
diff
changeset
|
287 NULL, /**< destroy */ |
fefad67de2c7
[gaim-migrate @ 5573]
Christian Hammond <chipx86@chipx86.com>
parents:
5016
diff
changeset
|
288 |
fefad67de2c7
[gaim-migrate @ 5573]
Christian Hammond <chipx86@chipx86.com>
parents:
5016
diff
changeset
|
289 &ui_info, /**< ui_info */ |
fefad67de2c7
[gaim-migrate @ 5573]
Christian Hammond <chipx86@chipx86.com>
parents:
5016
diff
changeset
|
290 NULL /**< extra_info */ |
fefad67de2c7
[gaim-migrate @ 5573]
Christian Hammond <chipx86@chipx86.com>
parents:
5016
diff
changeset
|
291 }; |
fefad67de2c7
[gaim-migrate @ 5573]
Christian Hammond <chipx86@chipx86.com>
parents:
5016
diff
changeset
|
292 |
fefad67de2c7
[gaim-migrate @ 5573]
Christian Hammond <chipx86@chipx86.com>
parents:
5016
diff
changeset
|
293 static void |
fefad67de2c7
[gaim-migrate @ 5573]
Christian Hammond <chipx86@chipx86.com>
parents:
5016
diff
changeset
|
294 __init_plugin(GaimPlugin *plugin) |
fefad67de2c7
[gaim-migrate @ 5573]
Christian Hammond <chipx86@chipx86.com>
parents:
5016
diff
changeset
|
295 { |
5767
c97d9ca044a7
[gaim-migrate @ 6192]
Christian Hammond <chipx86@chipx86.com>
parents:
5676
diff
changeset
|
296 gaim_prefs_add_none("/plugins/gtk"); |
c97d9ca044a7
[gaim-migrate @ 6192]
Christian Hammond <chipx86@chipx86.com>
parents:
5676
diff
changeset
|
297 gaim_prefs_add_none("/plugins/gtk/X11"); |
c97d9ca044a7
[gaim-migrate @ 6192]
Christian Hammond <chipx86@chipx86.com>
parents:
5676
diff
changeset
|
298 gaim_prefs_add_none("/plugins/gtk/X11/gestures"); |
c97d9ca044a7
[gaim-migrate @ 6192]
Christian Hammond <chipx86@chipx86.com>
parents:
5676
diff
changeset
|
299 gaim_prefs_add_bool("/plugins/gtk/X11/gestures/visual", FALSE); |
c97d9ca044a7
[gaim-migrate @ 6192]
Christian Hammond <chipx86@chipx86.com>
parents:
5676
diff
changeset
|
300 |
c97d9ca044a7
[gaim-migrate @ 6192]
Christian Hammond <chipx86@chipx86.com>
parents:
5676
diff
changeset
|
301 gaim_prefs_connect_callback("/plugins/gtk/X11/gestures/visual", |
c97d9ca044a7
[gaim-migrate @ 6192]
Christian Hammond <chipx86@chipx86.com>
parents:
5676
diff
changeset
|
302 visual_pref_cb, NULL); |
4390 | 303 } |
304 | |
5205
fefad67de2c7
[gaim-migrate @ 5573]
Christian Hammond <chipx86@chipx86.com>
parents:
5016
diff
changeset
|
305 GAIM_INIT_PLUGIN(gestures, __init_plugin, info); |