#include <gtk/gtk.h>
Go to the source code of this file.
Data Structures | |
struct | _BrowserWindow |
Typedefs | |
typedef G_BEGIN_DECLS struct _BrowserWindow | BrowserWindow |
Functions | |
void | main_set_locale (const char *locale) |
void | main_quit (void) |
void | main_on_connected (void) |
void | main_on_disconnected (void) |
gboolean | main_request_connection (void) |
void | run_error_dialog (const gchar *msg) |
Variables | |
GtkWidget * | g_main_window |
gchar * | g_mountpoint |
typedef G_BEGIN_DECLS struct _BrowserWindow BrowserWindow |
File Name : main.h
Description: Main module of the application Copyright (C) 2009 iRex Technologies B.V. All rights reserved.
void main_on_connected | ( | void | ) |
void main_on_disconnected | ( | void | ) |
void main_quit | ( | void | ) |
Definition at line 73 of file ctb/src/main.c.
gboolean main_request_connection | ( | void | ) |
Definition at line 134 of file erbrowser/src/main.c.
References g_is_connection_requested, ipc_sys_connect(), LOGPRINTF, and WARNPRINTF.
Referenced by navigation_requested_cb().
00135 { 00136 LOGPRINTF("entry"); 00137 00138 if ( !g_is_connection_requested ) 00139 { 00140 #if MACHINE_IS_DR1000SW || MACHINE_IS_DR800SG || MACHINE_IS_DR800SW 00141 if (ipc_sys_connect()) 00142 { 00143 g_is_connection_requested = TRUE; 00144 return TRUE; 00145 } 00146 #else 00147 WARNPRINTF("Connection requested, but device has no wireless capabilities"); 00148 #endif 00149 } 00150 00151 return FALSE; 00152 }
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 run_error_dialog | ( | const gchar * | msg | ) |
Definition at line 534 of file hello-world/settings/main.c.
Referenced by main().
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_main_window |
Definition at line 84 of file erbrowser/include/main.h.
gchar* g_mountpoint |
Definition at line 85 of file erbrowser/include/main.h.
Referenced by download_requested_cb(), ipc_set_services(), magic_uri(), main(), menu_on_item_activated(), on_mounted(), on_prepare_unmount(), and on_unmounted().