Functions |
| int | do_timeout (void) |
| void | client_tick (uint32 tick) |
| void | cleanup_connection (void) |
| void | on_window_destroy_event (GtkObject *object, gpointer user_data) |
| void | do_network (void) |
| void | event_loop (void) |
| int | parse_args (int argc, char **argv) |
| void | error_dialog (char *description, char *information) |
| void | my_log_handler (const gchar *log_domain, GLogLevelFlags log_level, const gchar *message, gpointer user_data) |
| int | main (int argc, char *argv[]) |
| void | get_window_coord (GtkWidget *win, int *x, int *y, int *wx, int *wy, int *w, int *h) |
Variables |
| const char *const | rcsid_gtk2_main_c = "$Id: main.c 14240 2011-01-12 06:31:21Z mwedel $" |
| GtkWidget * | window_root |
| GtkWidget * | magic_map |
| GladeXML * | dialog_xml |
| GladeXML * | window_xml |
| const char *const | colorname [NUM_COLORS] |
| const char *const | usercolorname [NUM_COLORS] |
| char | dialog_xml_file [MAX_BUF] = DIALOG_XML_FILENAME |
| char | dialog_xml_path [MAX_BUF] = "" |
| char | window_xml_file [MAX_BUF] = WINDOW_XML_FILENAME |
| char | window_xml_path [MAX_BUF] = "" |
| GdkColor | root_color [NUM_COLORS] |
| struct timeval | timeout |
| int | maxfd |
| gint | csocket_fd = 0 |
| int | time_map_redraw |
Implements client startup functions. Command-line parameters are parsed and handled. Libglade XML layout files are loaded. Windows and dialogs are initialized. The server connection is managed. The main.c file originally was generated by glade-2, but is now manually maintained.
Definition in file main.c.
| void my_log_handler |
( |
const gchar * |
log_domain, |
|
|
GLogLevelFlags |
log_level, |
|
|
const gchar * |
message, |
|
|
gpointer |
user_data |
|
) |
| |
This goes with the g_log_set_handler below in main(). I leave it here since it may be useful - basically, it can prove handy to try and track down error messages like:
file gtklabel.c: line 1845: assertion `GTK_IS_LABEL (label)' failed
In the debugger, you can set a breakpoint in this function, and then see the stacktrace on what is trying to access a widget that isn't set or otherwise having issues.
Definition at line 674 of file main.c.