Mercurial > pidgin.yaz
comparison plugins/spellchk.c @ 6116:de49cfd8fd59
[gaim-migrate @ 6579]
This fixes "perl plugin handling event_buddy_signon called twice"
http://sourceforge.net/tracker/index.php?func=detail&aid=727796&group_id=235&atid=100235
Also cleaned up history.c a tad bit and removed a printf--thanks to SimGuy.
committer: Tailor Script <tailor@pidgin.im>
author | Mark Doliner <mark@kingant.net> |
---|---|
date | Sun, 13 Jul 2003 23:26:06 +0000 |
parents | 5239a3b4ab33 |
children | 1c8caacac1de |
comparison
equal
deleted
inserted
replaced
6115:11bedb793a44 | 6116:de49cfd8fd59 |
---|---|
1 /* | 1 /* |
2 * A lot of this code (especially the config code) was taken directly | 2 * A lot of this code (especially the config code) was taken directly |
3 * or nearly directly from xchat, version 1.4.2 by Peter Zelezny and others. | 3 * or nearly directly from xchat, version 1.4.2 by Peter Zelezny and others. |
4 * | |
5 * TODO: | |
6 * ? I think i did everything i want to with it. | |
7 * | |
8 * BUGS: | |
9 * ? I think i fixed them all. | |
10 */ | 4 */ |
11 #include "internal.h" | 5 #include "internal.h" |
12 | 6 |
13 #include "debug.h" | 7 #include "debug.h" |
14 #include "util.h" | 8 #include "util.h" |
223 static GtkWidget *good_entry; | 217 static GtkWidget *good_entry; |
224 | 218 |
225 static void save_list(); | 219 static void save_list(); |
226 | 220 |
227 static void on_edited(GtkCellRendererText *cellrenderertext, | 221 static void on_edited(GtkCellRendererText *cellrenderertext, |
228 gchar *path, | 222 gchar *path, gchar *arg2, gpointer data) |
229 gchar *arg2, | |
230 gpointer data) | |
231 { | 223 { |
232 GtkTreeIter iter; | 224 GtkTreeIter iter; |
233 GValue val; | 225 GValue val; |
234 if(arg2[0] == '\0') { | 226 if(arg2[0] == '\0') { |
235 gdk_beep(); | 227 gdk_beep(); |
239 g_return_if_fail(gtk_tree_model_get_iter_from_string(GTK_TREE_MODEL(model), &iter, path)); | 231 g_return_if_fail(gtk_tree_model_get_iter_from_string(GTK_TREE_MODEL(model), &iter, path)); |
240 gtk_tree_model_get_value(GTK_TREE_MODEL(model), &iter, GPOINTER_TO_INT(data), &val); | 232 gtk_tree_model_get_value(GTK_TREE_MODEL(model), &iter, GPOINTER_TO_INT(data), &val); |
241 if(strcmp(arg2, g_value_get_string(&val))) { | 233 if(strcmp(arg2, g_value_get_string(&val))) { |
242 gtk_list_store_set(model, &iter, GPOINTER_TO_INT(data), arg2, -1); | 234 gtk_list_store_set(model, &iter, GPOINTER_TO_INT(data), arg2, -1); |
243 save_list(); | 235 save_list(); |
244 printf("Editado! %s, %s\n", path, arg2); | |
245 } | 236 } |
246 g_value_unset(&val); | 237 g_value_unset(&val); |
247 } | 238 } |
248 | 239 |
249 static void list_add_new() | 240 static void list_add_new() |