heraia/trunk/src/log.c File Reference

#include "heraia_types.h"

Include dependency graph for log.c:

Go to the source code of this file.

Functions

static void my_log (heraia_window_t *main_window, gchar *log_domain, GLogLevelFlags log_level, const char *format,...)
static void log_window_connect_signals (heraia_window_t *main_window)
static gboolean delete_log_window_event (GtkWidget *widget, GdkEvent *event, gpointer data)
static void destroy_log_window (GtkWidget *widget, GdkEvent *event, gpointer data)
static void logw_close_clicked (GtkWidget *widget, gpointer data)
void print_message (const char *format,...)
void log_message (heraia_window_t *main_window, GLogLevelFlags log_level, const char *format,...)
void show_hide_log_window (heraia_window_t *main_window, gboolean show, GtkCheckMenuItem *cmi)
void mw_cmi_affiche_logw_toggle (GtkWidget *widget, gpointer data)
void log_window_init_interface (heraia_window_t *main_window)


Function Documentation

static gboolean delete_log_window_event ( GtkWidget *  widget,
GdkEvent *  event,
gpointer  data 
) [static]

Closing the window

Definition at line 243 of file log.c.

References logw_close_clicked().

Referenced by log_window_connect_signals().

Here is the call graph for this function:

static void destroy_log_window ( GtkWidget *  widget,
GdkEvent *  event,
gpointer  data 
) [static]

Definition at line 250 of file log.c.

References logw_close_clicked().

Referenced by log_window_connect_signals().

Here is the call graph for this function:

void log_message ( heraia_window_t main_window,
GLogLevelFlags  log_level,
const char *  format,
  ... 
)

static void log_window_connect_signals ( heraia_window_t main_window  )  [static]

Connecting the window signals to the right functions

Definition at line 270 of file log.c.

References delete_log_window_event(), destroy_log_window(), heraia_get_widget(), logw_close_clicked(), xml_t::main, mw_cmi_affiche_logw_toggle(), and heraia_window_t::xmls.

Referenced by log_window_init_interface().

Here is the call graph for this function:

void log_window_init_interface ( heraia_window_t main_window  ) 

Inits the log window interface

Definition at line 296 of file log.c.

References log_window_connect_signals().

Referenced by load_heraia_ui().

Here is the call graph for this function:

static void logw_close_clicked ( GtkWidget *  widget,
gpointer  data 
) [static]

Close button is clicked

Definition at line 258 of file log.c.

References heraia_get_widget(), xml_t::main, show_hide_log_window(), and heraia_window_t::xmls.

Referenced by delete_log_window_event(), destroy_log_window(), and log_window_connect_signals().

Here is the call graph for this function:

void mw_cmi_affiche_logw_toggle ( GtkWidget *  widget,
gpointer  data 
)

The Check menu item for the Log window

Definition at line 228 of file log.c.

References show_hide_log_window().

Referenced by log_window_connect_signals().

Here is the call graph for this function:

static void my_log ( heraia_window_t main_window,
gchar *  log_domain,
GLogLevelFlags  log_level,
const char *  format,
  ... 
) [static]

A function that allow me to printy things on stdout and in th log window

The log function

Definition at line 74 of file log.c.

References heraia_get_widget(), xml_t::main, and heraia_window_t::xmls.

Referenced by log_message().

Here is the call graph for this function:

void print_message ( const char *  format,
  ... 
)

Prints a message to stdout

Definition at line 40 of file log.c.

void show_hide_log_window ( heraia_window_t main_window,
gboolean  show,
GtkCheckMenuItem *  cmi 
)


Generated on Mon Oct 20 21:23:24 2008 for Heraia by  doxygen 1.5.6