geany  1.38
About: Geany is a text editor (using GTK2) with basic features of an integrated development environment (syntax highlighting, code folding, symbol name auto-completion, ...). F: office T: editor programming GTK+ IDE
  Fossies Dox: geany-1.38.tar.bz2  ("unofficial" and yet experimental doxygen-generated source code documentation)  

log.c File Reference
#include "log.h"
#include "app.h"
#include "support.h"
#include "utils.h"
#include "ui_utils.h"
#include <gtk/gtk.h>
Include dependency graph for log.c:

Go to the source code of this file.

Enumerations

enum  { DIALOG_RESPONSE_CLEAR = 1 }
 

Functions

static void update_dialog (void)
 
void geany_debug (gchar const *format,...)
 
static void handler_print (const gchar *msg)
 
static void handler_printerr (const gchar *msg)
 
static const gchar * get_log_prefix (GLogLevelFlags log_level)
 
static void handler_log (const gchar *domain, GLogLevelFlags level, const gchar *msg, gpointer data)
 
void log_handlers_init (void)
 
static void on_dialog_response (GtkDialog *dialog, gint response, gpointer user_data)
 
void log_show_debug_messages_dialog (void)
 
void log_finalize (void)
 

Variables

static GString * log_buffer = NULL
 
static GtkTextBuffer * dialog_textbuffer = NULL
 

Enumeration Type Documentation

◆ anonymous enum

anonymous enum
Enumerator
DIALOG_RESPONSE_CLEAR 

Definition at line 45 of file log.c.

Function Documentation

◆ geany_debug()

◆ get_log_prefix()

static const gchar * get_log_prefix ( GLogLevelFlags  log_level)
static

Definition at line 98 of file log.c.

Referenced by handler_log().

◆ handler_log()

static void handler_log ( const gchar *  domain,
GLogLevelFlags  level,
const gchar *  msg,
gpointer  data 
)
static

◆ handler_print()

static void handler_print ( const gchar *  msg)
static

Definition at line 76 of file log.c.

References log_buffer, NULL, and update_dialog().

Referenced by log_handlers_init().

◆ handler_printerr()

static void handler_printerr ( const gchar *  msg)
static

Definition at line 87 of file log.c.

References log_buffer, NULL, and update_dialog().

Referenced by log_handlers_init().

◆ log_finalize()

void log_finalize ( void  )

Definition at line 218 of file log.c.

References log_buffer, and NULL.

Referenced by do_main_quit().

◆ log_handlers_init()

void log_handlers_init ( void  )

Definition at line 151 of file log.c.

References handler_log(), handler_print(), handler_printerr(), log_buffer, and NULL.

Referenced by main_lib().

◆ log_show_debug_messages_dialog()

◆ on_dialog_response()

static void on_dialog_response ( GtkDialog *  dialog,
gint  response,
gpointer  user_data 
)
static

Definition at line 161 of file log.c.

References dialog, DIALOG_RESPONSE_CLEAR, dialog_textbuffer, log_buffer, and NULL.

Referenced by log_show_debug_messages_dialog().

◆ update_dialog()

static void update_dialog ( void  )
static

Definition at line 51 of file log.c.

References dialog_textbuffer, log_buffer, and NULL.

Referenced by handler_log(), handler_print(), handler_printerr(), and log_show_debug_messages_dialog().

Variable Documentation

◆ dialog_textbuffer

GtkTextBuffer* dialog_textbuffer = NULL
static

Definition at line 43 of file log.c.

Referenced by log_show_debug_messages_dialog(), on_dialog_response(), and update_dialog().

◆ log_buffer

GString* log_buffer = NULL
static