We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 6ae0434 commit 62b1a15Copy full SHA for 62b1a15
gtk/src/Utils.cc
@@ -94,6 +94,8 @@ Utils::Button::Type Utils::messageBox(Gtk::MessageType type,
94
95
96
Gtk::Label label(text);
97
+ label.set_line_wrap(true);
98
+ label.set_max_width_chars(80);
99
label.set_xalign(0);
100
grid.attach(label, 1, 0);
101
grid.set_column_spacing(6);
@@ -110,6 +112,7 @@ Utils::Button::Type Utils::messageBox(Gtk::MessageType type,
110
112
if (!body.empty()) {
111
113
textView.set_editable(false);
114
textView.set_cursor_visible(false);
115
+ textView.set_wrap_mode(Gtk::WRAP_WORD);
116
Glib::RefPtr<Gtk::TextBuffer> buffer = Gtk::TextBuffer::create();
117
buffer->set_text(body);
118
textView.set_buffer(buffer);
0 commit comments