Mercurial > pidgin.yaz
comparison pidgin/gtkdebug.c @ 16427:4999bbc52881
Works for me! Renames prefs: /core to /purple, /gaim/gtk to /pidgin, /gaim/gnt to /finch
author | Sean Egan <seanegan@gmail.com> |
---|---|
date | Wed, 25 Apr 2007 23:55:56 +0000 |
parents | 247e421c4fa6 |
children | 08db93bbd798 |
comparison
equal
deleted
inserted
replaced
16426:0fb719b5dc0e | 16427:4999bbc52881 |
---|---|
262 static void | 262 static void |
263 timestamps_cb(GtkWidget *w, DebugWindow *win) | 263 timestamps_cb(GtkWidget *w, DebugWindow *win) |
264 { | 264 { |
265 win->timestamps = gtk_toggle_button_get_active(GTK_TOGGLE_BUTTON(w)); | 265 win->timestamps = gtk_toggle_button_get_active(GTK_TOGGLE_BUTTON(w)); |
266 | 266 |
267 purple_prefs_set_bool("/core/debug/timestamps", win->timestamps); | 267 purple_prefs_set_bool("/purple/debug/timestamps", win->timestamps); |
268 } | 268 } |
269 | 269 |
270 static void | 270 static void |
271 timestamps_pref_cb(const char *name, PurplePrefType type, | 271 timestamps_pref_cb(const char *name, PurplePrefType type, |
272 gconstpointer value, gpointer data) | 272 gconstpointer value, gpointer data) |
784 _("Timestamps"), NULL, NULL, | 784 _("Timestamps"), NULL, NULL, |
785 G_CALLBACK(timestamps_cb), | 785 G_CALLBACK(timestamps_cb), |
786 win); | 786 win); |
787 | 787 |
788 gtk_toggle_button_set_active(GTK_TOGGLE_BUTTON(button), | 788 gtk_toggle_button_set_active(GTK_TOGGLE_BUTTON(button), |
789 purple_prefs_get_bool("/core/debug/timestamps")); | 789 purple_prefs_get_bool("/purple/debug/timestamps")); |
790 | 790 |
791 purple_prefs_connect_callback(handle, "/core/debug/timestamps", | 791 purple_prefs_connect_callback(handle, "/purple/debug/timestamps", |
792 timestamps_pref_cb, button); | 792 timestamps_pref_cb, button); |
793 | 793 |
794 #ifdef HAVE_REGEX_H | 794 #ifdef HAVE_REGEX_H |
795 /* regex stuff */ | 795 /* regex stuff */ |
796 gtk_toolbar_insert_space(GTK_TOOLBAR(toolbar), -1); | 796 gtk_toolbar_insert_space(GTK_TOOLBAR(toolbar), -1); |
1050 !purple_prefs_get_bool(PIDGIN_PREFS_ROOT "/debug/enabled")) | 1050 !purple_prefs_get_bool(PIDGIN_PREFS_ROOT "/debug/enabled")) |
1051 { | 1051 { |
1052 return; | 1052 return; |
1053 } | 1053 } |
1054 | 1054 |
1055 timestamps = purple_prefs_get_bool("/core/debug/timestamps"); | 1055 timestamps = purple_prefs_get_bool("/purple/debug/timestamps"); |
1056 | 1056 |
1057 /* | 1057 /* |
1058 * For some reason we only print the timestamp if category is | 1058 * For some reason we only print the timestamp if category is |
1059 * not NULL. Why the hell do we do that? --Mark | 1059 * not NULL. Why the hell do we do that? --Mark |
1060 */ | 1060 */ |