30 Glib::RefPtr<Gtk::TextBuffer> buffer =
messageText.get_buffer();
31 buffer->erase(buffer->begin(), buffer->end());
42 , buttonClear(_(
"_Clear"), _(
"Clear log messages"))
43 , checkCapture(_(
"Capture log messages"), _(
"Capture log messages"))
49 textScroll.set_policy(Gtk::PolicyType::ALWAYS, Gtk::PolicyType::ALWAYS);
70 Glib::RefPtr<Gtk::TextBuffer> buffer =
messageText.get_buffer();
71 Glib::ustring uMsg =
msg;
72 if (uMsg[uMsg.length() - 1] !=
'\n') {
75 buffer->insert(buffer->end(), uMsg);
81 char const *messageText,
103 GLogLevelFlags flags = (GLogLevelFlags) (G_LOG_LEVEL_ERROR | G_LOG_LEVEL_CRITICAL |
104 G_LOG_LEVEL_WARNING | G_LOG_LEVEL_MESSAGE |
105 G_LOG_LEVEL_INFO | G_LOG_LEVEL_DEBUG);
124 message(_(
"Log capture started."));
153 message(_(
"Log capture stopped."));
void pack_end(Gtk::Box &box, Gtk::Widget &child, bool const expand, bool const fill, unsigned const padding)
Adds child to box, packed with reference to the end of box.
void pack_start(Gtk::Box &box, Gtk::Widget &child, bool const expand, bool const fill, unsigned const padding)
Adds child to box, packed with reference to the start of box.
Helpers for using Gtk::Boxes, encapsulating large changes between GTK3 & GTK4.