| 44 } |
44 } |
| 45 |
45 |
| 46 static void |
46 static void |
| 47 pref_update(GtkWidget *widget, char *pref) |
47 pref_update(GtkWidget *widget, char *pref) |
| 48 { |
48 { |
| 49 if (purple_prefs_get_type(pref) == PURPLE_PREF_INT) |
49 if (purple_prefs_get_pref_type(pref) == PURPLE_PREF_INT) |
| 50 purple_prefs_set_int(pref, gtk_spin_button_get_value_as_int(GTK_SPIN_BUTTON(widget))); |
50 purple_prefs_set_int(pref, gtk_spin_button_get_value_as_int(GTK_SPIN_BUTTON(widget))); |
| 51 if (purple_prefs_get_type(pref) == PURPLE_PREF_BOOLEAN) |
51 if (purple_prefs_get_pref_type(pref) == PURPLE_PREF_BOOLEAN) |
| 52 purple_prefs_set_bool(pref, gtk_toggle_button_get_active(GTK_TOGGLE_BUTTON(widget))); |
52 purple_prefs_set_bool(pref, gtk_toggle_button_get_active(GTK_TOGGLE_BUTTON(widget))); |
| 53 } |
53 } |
| 54 |
54 |
| 55 static struct PurpleContactPriorityStatuses |
55 static struct PurpleContactPriorityStatuses |
| 56 { |
56 { |