fix logging header file and stop throwing exceptions
This commit is contained in:
parent
c02f286f01
commit
d07340217c
4 changed files with 4 additions and 2 deletions
|
@ -38,6 +38,7 @@ raven_source_files = [
|
||||||
]
|
]
|
||||||
|
|
||||||
raven_header_files = [
|
raven_header_files = [
|
||||||
|
'./src/Logging.hpp',
|
||||||
'./src/Box.hpp',
|
'./src/Box.hpp',
|
||||||
'./src/BoxLayout.hpp',
|
'./src/BoxLayout.hpp',
|
||||||
'./src/Button.hpp',
|
'./src/Button.hpp',
|
||||||
|
|
|
@ -1,5 +1,7 @@
|
||||||
#pragma once
|
#pragma once
|
||||||
|
|
||||||
|
#include <iostream>
|
||||||
|
|
||||||
#define ERROR std::clog << "[ERROR] (" << __FILE__ << ":" << __LINE__ << "): "
|
#define ERROR std::clog << "[ERROR] (" << __FILE__ << ":" << __LINE__ << "): "
|
||||||
#define INFO std::clog << "[INFO] (" << __FILE__ << ":" << __LINE__ << "): "
|
#define INFO std::clog << "[INFO] (" << __FILE__ << ":" << __LINE__ << "): "
|
||||||
#define WARN std::clog << "[WARN] (" << __FILE__ << ":" << __LINE__ << "): "
|
#define WARN std::clog << "[WARN] (" << __FILE__ << ":" << __LINE__ << "): "
|
||||||
|
|
|
@ -76,7 +76,6 @@ void Painter::text(Box &geometry, std::string &text, PaintTextAlign align, Pango
|
||||||
pango_cairo_show_layout(m_cairo->cobj(), layout);
|
pango_cairo_show_layout(m_cairo->cobj(), layout);
|
||||||
|
|
||||||
g_object_unref(layout);
|
g_object_unref(layout);
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
void Painter::source_rgb(RGB source_rgb) {
|
void Painter::source_rgb(RGB source_rgb) {
|
||||||
|
|
|
@ -79,7 +79,7 @@ void Widget::set_layout(std::shared_ptr<Layout> layout) {
|
||||||
|
|
||||||
void Widget::set_window(Window *window) {
|
void Widget::set_window(Window *window) {
|
||||||
if (!window)
|
if (!window)
|
||||||
throw std::logic_error{"null window value for set_window"};
|
return;
|
||||||
|
|
||||||
m_window = window;
|
m_window = window;
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue