static void normal_size_y_changed (MateConfClient *client, guint cnxn_id, MateConfEntry *entry, MCData *mc) { if (!entry->value || entry->value->type != MATECONF_VALUE_INT) return; mc->preferences.normal_size_y = mateconf_value_get_int (entry->value); mc_applet_draw (mc); /* FIXME: we shouldn't have to redraw the whole applet */ }
/* MateConf notification handlers */ static void show_default_theme_changed (MateConfClient *client, guint cnxn_id, MateConfEntry *entry, MCData *mc) { if (!entry->value || entry->value->type != MATECONF_VALUE_BOOL) return; mc->preferences.show_default_theme = mateconf_value_get_bool (entry->value); mc_applet_draw (mc); /* FIXME: we shouldn't have to redraw the whole applet */ }
static void show_default_theme_changed (GSettings *settings, const gchar *key, MCData *mc) { mc->preferences.show_default_theme = g_settings_get_boolean (mc->settings, key); if (mc->prefs_dialog.dialog) gtk_toggle_button_set_active (GTK_TOGGLE_BUTTON (mc->prefs_dialog.use_default_theme_toggle), mc->preferences.show_default_theme); mc_applet_draw (mc); /* FIXME: we shouldn't have to redraw the whole applet */ }