#include <gtk/gtk.h>
Go to the source code of this file.
Functions | |
GtkWidget * | create_device_settings_window (GtkWidget *parent) |
void | load_device_settings () |
void | rollback_language_settings () |
void | save_device_settings () |
gboolean | child_win_is_focus () |
gboolean child_win_is_focus | ( | ) |
GtkWidget* create_device_settings_window | ( | GtkWidget * | parent | ) |
Copyright (C) 2008 iRex Technologies B.V. All rights reserved.
void load_device_settings | ( | ) |
void rollback_language_settings | ( | ) |
Definition at line 457 of file languages.c.
References free_string_list(), g_cur_language, g_orig_language, and get_available_locales().
00458 { 00459 GSList* available_locales = NULL; 00460 const char* cur_locale = NULL; 00461 00462 if (g_cur_language == g_orig_language) 00463 { 00464 return; 00465 } 00466 00467 g_cur_language = g_orig_language; 00468 00469 // Set locale back to original. 00470 available_locales = get_available_locales(); 00471 cur_locale = g_slist_nth_data(available_locales, g_orig_language); 00472 setlocale(LC_ALL, cur_locale); 00473 free_string_list(available_locales); 00474 }
void save_device_settings | ( | ) |