Mercurial > pidgin.yaz
comparison src/gtkutils.c @ 7420:53c86d59f20b
[gaim-migrate @ 8022]
(19:08:24) deryni: Paco-Paco can stop wanting to kill Sean for using ctrl-f
in conversations, and all the rest of you can have fun making offline
buddies take priority over online ones (I'm sure you'll figure it out =)
and a change from free() to g_free() in yahoo from zuperdee, since g_free
is theoretically doing more error checking
committer: Tailor Script <tailor@pidgin.im>
author | Luke Schierer <lschiere@pidgin.im> |
---|---|
date | Tue, 04 Nov 2003 00:10:29 +0000 |
parents | 2737c287f84d |
children | 357eb1c39b72 |
comparison
equal
deleted
inserted
replaced
7419:82dfe392a773 | 7420:53c86d59f20b |
---|---|
47 | 47 |
48 #ifdef _WIN32 | 48 #ifdef _WIN32 |
49 #include "wspell.h" | 49 #include "wspell.h" |
50 #endif | 50 #endif |
51 | 51 |
52 guint accels_save_timer = 0; | |
53 | |
52 static void | 54 static void |
53 url_clicked_cb(GtkWidget *w, const char *uri) | 55 url_clicked_cb(GtkWidget *w, const char *uri) |
54 { | 56 { |
55 gaim_notify_uri(NULL, uri); | 57 gaim_notify_uri(NULL, uri); |
56 } | 58 } |
1075 } | 1077 } |
1076 | 1078 |
1077 gdk_pixbuf_loader_close(loader, NULL); | 1079 gdk_pixbuf_loader_close(loader, NULL); |
1078 } | 1080 } |
1079 } | 1081 } |
1082 | |
1083 void | |
1084 gaim_gtk_save_accels_cb(GtkAccelGroup *accel_group, guint arg1, | |
1085 GdkModifierType arg2, GClosure *arg3, | |
1086 gpointer data) | |
1087 { | |
1088 gaim_debug(GAIM_DEBUG_MISC, "accels", "accel changed, scheduling save.\n"); | |
1089 | |
1090 if (!accels_save_timer) | |
1091 accels_save_timer = g_timeout_add(5000, gaim_gtk_save_accels, NULL); | |
1092 } | |
1093 | |
1094 gboolean | |
1095 gaim_gtk_save_accels(gpointer data) | |
1096 { | |
1097 char *filename = NULL; | |
1098 | |
1099 filename = g_build_filename(gaim_user_dir(), G_DIR_SEPARATOR_S, | |
1100 "accels", NULL); | |
1101 gaim_debug(GAIM_DEBUG_MISC, "accels", "saving accels to %s\n", filename); | |
1102 gtk_accel_map_save(filename); | |
1103 g_free(filename); | |
1104 | |
1105 accels_save_timer = 0; | |
1106 return FALSE; | |
1107 } | |
1108 | |
1109 void | |
1110 gaim_gtk_load_accels(gpointer data) | |
1111 { | |
1112 char *filename = NULL; | |
1113 | |
1114 filename = g_build_filename(gaim_user_dir(), G_DIR_SEPARATOR_S, | |
1115 "accels", NULL); | |
1116 gtk_accel_map_load(filename); | |
1117 g_free(filename); | |
1118 } |