Commit 52006b06 authored by Daniel Elstner's avatar Daniel Elstner
Browse files

:set_file_encoding): Work around the GTK+ bug with right-aligned labels by

* src/statusline.cc (Status::set_file_encoding): Work around the
GTK+ bug with right-aligned labels by calling check_resize(), just
as already done in CounterBox::set_index().  Note that the status
bar is right-aligned only in RTL locales.
parent 85a997b0
2004-05-31 Daniel Elstner <daniel.elstner@gmx.net>
* src/statusline.cc (Status::set_file_encoding): Work around the
GTK+ bug with right-aligned labels by calling check_resize(), just
as already done in CounterBox::set_index(). Note that the status
bar is right-aligned only in RTL locales.
2004-05-31 Daniel Elstner <daniel.elstner@gmx.net>
* src/aboutdialog.cc (AboutDialog::create): If no translation is
......
......@@ -325,6 +325,11 @@ void StatusLine::set_file_encoding(const std::string& file_encoding)
g_return_if_fail(encoding.is_ascii());
statusbar_->push(encoding);
// Work around a bug in GTK+ that causes right-aligned labels (note that
// the status bar text is right-aligned in RTL locales) to be cut off at
// the end. Forcing resize seems to solve the problem.
statusbar_->check_resize();
}
void StatusLine::pulse_start()
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment