comparison src/gtkdebug.c @ 12816:ff267281e882

[gaim-migrate @ 15164] Get rid of a compile warning by changing the definition of (*GaimPrefCallback) to pass a gconstpointer val instead of gpointer committer: Tailor Script <tailor@pidgin.im>
author Mark Doliner <mark@kingant.net>
date Wed, 11 Jan 2006 04:32:12 +0000
parents c342eb6e8cd3
children 69b3d5cbd2b1
comparison
equal deleted inserted replaced
12815:a8bffa7fb6ac 12816:ff267281e882
265 265
266 gaim_prefs_set_bool("/core/debug/timestamps", win->timestamps); 266 gaim_prefs_set_bool("/core/debug/timestamps", win->timestamps);
267 } 267 }
268 268
269 static void 269 static void
270 timestamps_pref_cb(const char *name, GaimPrefType type, gpointer value, 270 timestamps_pref_cb(const char *name, GaimPrefType type,
271 gpointer data) 271 gconstpointer value, gpointer data)
272 { 272 {
273 gtk_toggle_button_set_active(GTK_TOGGLE_BUTTON(data), GPOINTER_TO_INT(value)); 273 gtk_toggle_button_set_active(GTK_TOGGLE_BUTTON(data), GPOINTER_TO_INT(value));
274 } 274 }
275 275
276 /****************************************************************************** 276 /******************************************************************************
456 regex_filter_all(win); 456 regex_filter_all(win);
457 } 457 }
458 458
459 static void 459 static void
460 regex_pref_filter_cb(const gchar *name, GaimPrefType type, 460 regex_pref_filter_cb(const gchar *name, GaimPrefType type,
461 gpointer val, gpointer data) 461 gconstpointer val, gpointer data)
462 { 462 {
463 DebugWindow *win = (DebugWindow *)data; 463 DebugWindow *win = (DebugWindow *)data;
464 gboolean active = GPOINTER_TO_INT(val), current; 464 gboolean active = GPOINTER_TO_INT(val), current;
465 465
466 if(!win || !win->window) 466 if(!win || !win->window)
471 gtk_toggle_button_set_active(GTK_TOGGLE_BUTTON(win->filter), active); 471 gtk_toggle_button_set_active(GTK_TOGGLE_BUTTON(win->filter), active);
472 } 472 }
473 473
474 static void 474 static void
475 regex_pref_expression_cb(const gchar *name, GaimPrefType type, 475 regex_pref_expression_cb(const gchar *name, GaimPrefType type,
476 gpointer val, gpointer data) 476 gconstpointer val, gpointer data)
477 { 477 {
478 DebugWindow *win = (DebugWindow *)data; 478 DebugWindow *win = (DebugWindow *)data;
479 const gchar *exp = (const gchar *)val; 479 const gchar *exp = (const gchar *)val;
480 480
481 gtk_entry_set_text(GTK_ENTRY(win->expression), exp); 481 gtk_entry_set_text(GTK_ENTRY(win->expression), exp);
482 } 482 }
483 483
484 static void 484 static void
485 regex_pref_invert_cb(const gchar *name, GaimPrefType type, 485 regex_pref_invert_cb(const gchar *name, GaimPrefType type,
486 gpointer val, gpointer data) 486 gconstpointer val, gpointer data)
487 { 487 {
488 DebugWindow *win = (DebugWindow *)data; 488 DebugWindow *win = (DebugWindow *)data;
489 gboolean active = GPOINTER_TO_INT(val); 489 gboolean active = GPOINTER_TO_INT(val);
490 490
491 win->invert = active; 491 win->invert = active;
494 regex_filter_all(win); 494 regex_filter_all(win);
495 } 495 }
496 496
497 static void 497 static void
498 regex_pref_highlight_cb(const gchar *name, GaimPrefType type, 498 regex_pref_highlight_cb(const gchar *name, GaimPrefType type,
499 gpointer val, gpointer data) 499 gconstpointer val, gpointer data)
500 { 500 {
501 DebugWindow *win = (DebugWindow *)data; 501 DebugWindow *win = (DebugWindow *)data;
502 gboolean active = GPOINTER_TO_INT(val); 502 gboolean active = GPOINTER_TO_INT(val);
503 503
504 win->highlight = active; 504 win->highlight = active;
787 787
788 return win; 788 return win;
789 } 789 }
790 790
791 static void 791 static void
792 debug_enabled_cb(const char *name, GaimPrefType type, gpointer value, 792 debug_enabled_cb(const char *name, GaimPrefType type,
793 gpointer data) 793 gconstpointer value, gpointer data)
794 { 794 {
795 if (value) 795 if (value)
796 gaim_gtk_debug_window_show(); 796 gaim_gtk_debug_window_show();
797 else 797 else
798 gaim_gtk_debug_window_hide(); 798 gaim_gtk_debug_window_hide();