static void prefs_themes_btn_use_clicked_cb(GtkWidget *widget, gpointer data) { ThemesData *tdata = prefs_themes_data; gchar *theme_str; theme_str = tdata->displayed; g_free(prefs_common.pixmap_theme_path); prefs_common.pixmap_theme_path = g_strdup(theme_str); main_window_reflect_prefs_all_real(TRUE); compose_reflect_prefs_pixmap_theme(); addrcompl_reflect_prefs_pixmap_theme(); prefs_themes_update_buttons(tdata); }
static void prefs_themes_save(PrefsPage *page) { ThemesData *tdata = prefs_themes_data; gchar *theme_str = tdata->displayed; if (!IS_CURRENT_THEME(theme_str)) { debug_print("Changing theme to %s\n", theme_str); g_free(prefs_common.pixmap_theme_path); prefs_common.pixmap_theme_path = g_strdup(theme_str); main_window_reflect_prefs_all_real(TRUE); compose_reflect_prefs_pixmap_theme(); addrcompl_reflect_prefs_pixmap_theme(); prefs_themes_update_buttons(tdata); } }