#include <gtk/gtk.h>
Go to the source code of this file.
Enumerations | |
enum | viewtypes_t { ICONVIEW = 0, LISTVIEW, N_VIEWTYPES } |
Functions | |
void | main_set_locale (const char *locale) |
void | main_set_view_type (viewtypes_t view_type) |
void | main_quit (void) |
void | run_error_dialog (const gchar *msg) |
Variables | |
GtkWidget * | g_main_window |
GtkWidget * | g_volume |
GtkWidget * | g_action |
gchar * | g_mountpoint |
enum viewtypes_t |
File Name : main.h
Description: Main module of the application Copyright (C) 2009 iRex Technologies B.V. All rights reserved.
Definition at line 56 of file hello-world/include/main.h.
00057 { 00058 ICONVIEW = 0, 00059 LISTVIEW, 00060 N_VIEWTYPES 00061 } viewtypes_t;
void main_quit | ( | void | ) |
Definition at line 73 of file ctb/src/main.c.
void main_set_locale | ( | const char * | locale | ) |
Definition at line 52 of file ctb/src/main.c.
00053 { 00054 LOGPRINTF("entry: locale [%s]", locale); 00055 00056 const char *old_locale = g_getenv("LANG"); 00057 00058 if (!old_locale || (strcmp(old_locale, locale) != 0)) 00059 { 00060 LOGPRINTF("Locale has changed to %s", locale); 00061 00062 // set locale in environment 00063 g_setenv("LANG", locale, TRUE); 00064 setlocale(LC_ALL, ""); 00065 00066 // update text and refresh 00067 menu_set_text(); 00068 fileview_update_screen_texts(); 00069 } 00070 }
void main_set_view_type | ( | viewtypes_t | view_type | ) |
Definition at line 245 of file hello-world/src/main.c.
References display_flipbar_portrait(), display_view_type(), g_viewtype, LOGPRINTF, menu_select_view_type(), and N_VIEWTYPES.
Referenced by main(), and menu_on_item_activated().
00246 { 00247 LOGPRINTF("entry: view_type [%d]", view_type); 00248 g_return_if_fail(view_type < N_VIEWTYPES); 00249 00250 g_viewtype = view_type; 00251 display_view_type(); 00252 display_flipbar_portrait(); 00253 menu_select_view_type(view_type); 00254 }
void run_error_dialog | ( | const gchar * | msg | ) |
Definition at line 534 of file hello-world/settings/main.c.
00535 { 00536 GtkWidget *dialog = NULL; 00537 00538 ERRORPRINTF("entry: msg [%s]", msg); 00539 00540 dialog = gtk_message_dialog_new( GTK_WINDOW(g_main_window), 00541 GTK_DIALOG_DESTROY_WITH_PARENT, 00542 GTK_MESSAGE_ERROR, 00543 GTK_BUTTONS_OK, 00544 msg ); 00545 00546 gtk_dialog_run( GTK_DIALOG(dialog) ); 00547 gtk_widget_destroy( dialog ); 00548 }
GtkWidget* g_action |
Definition at line 75 of file hello-world/include/main.h.
Referenced by create_screen_layout(), main(), menu_on_item_activated(), on_changed_orientation(), on_file_close(), on_file_open(), on_page_change(), on_sys_changed_pageturn_inverted(), on_window_activated(), and on_window_deactivated().
GtkWidget* g_main_window |
Definition at line 73 of file hello-world/include/main.h.
gchar* g_mountpoint |
Definition at line 76 of file hello-world/include/main.h.
GtkWidget* g_volume |
Definition at line 74 of file hello-world/include/main.h.
Referenced by create_screen_layout(), on_mounted(), on_prepare_unmount(), and on_unmounted().