Logo Search packages:      
Sourcecode: inkscape version File versions  Download package

void Inkscape::UI::Dialogs::DebugDialogImpl::captureLogMessages (  )  [virtual]

Redirect g_log() messages to this widget

Implements Inkscape::UI::Dialogs::DebugDialog.

Definition at line 260 of file debugdialog.cpp.

References message().

Referenced by DebugDialogImpl().

{
    /*
    This might likely need more code, to capture Gtkmm
    and Glibmm warnings, or maybe just simply grab stdout/stderr
    */
   GLogLevelFlags flags = (GLogLevelFlags) (G_LOG_LEVEL_ERROR   | G_LOG_LEVEL_CRITICAL |
                             G_LOG_LEVEL_WARNING | G_LOG_LEVEL_MESSAGE  |
                             G_LOG_LEVEL_INFO    | G_LOG_LEVEL_DEBUG);
    if ( !handlerDefault )
        {
        handlerDefault = g_log_set_handler(NULL, flags,
              dialogLoggingFunction, (gpointer)this);
        }
    if ( !handlerGlibmm )
        {
        handlerGlibmm = g_log_set_handler("glibmm", flags,
              dialogLoggingFunction, (gpointer)this);
        }
    if ( !handlerAtkmm )
        {
        handlerAtkmm = g_log_set_handler("atkmm", flags,
              dialogLoggingFunction, (gpointer)this);
        }
    if ( !handlerPangomm )
        {
        handlerPangomm = g_log_set_handler("pangomm", flags,
              dialogLoggingFunction, (gpointer)this);
        }
    if ( !handlerGdkmm )
        {
        handlerGdkmm = g_log_set_handler("gdkmm", flags,
              dialogLoggingFunction, (gpointer)this);
        }
    if ( !handlerGtkmm )
        {
        handlerGtkmm = g_log_set_handler("gtkmm", flags,
              dialogLoggingFunction, (gpointer)this);
        }
    message("log capture started");
}


Generated by  Doxygen 1.6.0   Back to index