fix logging header file and stop throwing exceptions

This commit is contained in:
hippoz 2022-07-30 17:01:59 +03:00
parent c02f286f01
commit d07340217c
Signed by: hippoz
GPG key ID: 7C52899193467641
4 changed files with 4 additions and 2 deletions

View file

@ -38,6 +38,7 @@ raven_source_files = [
]
raven_header_files = [
'./src/Logging.hpp',
'./src/Box.hpp',
'./src/BoxLayout.hpp',
'./src/Button.hpp',

View file

@ -1,5 +1,7 @@
#pragma once
#include <iostream>
#define ERROR std::clog << "[ERROR] (" << __FILE__ << ":" << __LINE__ << "): "
#define INFO std::clog << "[INFO] (" << __FILE__ << ":" << __LINE__ << "): "
#define WARN std::clog << "[WARN] (" << __FILE__ << ":" << __LINE__ << "): "

View file

@ -76,7 +76,6 @@ void Painter::text(Box &geometry, std::string &text, PaintTextAlign align, Pango
pango_cairo_show_layout(m_cairo->cobj(), layout);
g_object_unref(layout);
}
void Painter::source_rgb(RGB source_rgb) {

View file

@ -79,7 +79,7 @@ void Widget::set_layout(std::shared_ptr<Layout> layout) {
void Widget::set_window(Window *window) {
if (!window)
throw std::logic_error{"null window value for set_window"};
return;
m_window = window;