Fix issue #3186: "Combobox text overflow Gtk3"

+ fix a bug that prevent RT from building with gcc6.2
This commit is contained in:
Hombre 2016-09-27 02:08:23 +02:00
parent 9380034b19
commit 3bdf38437c
2 changed files with 3 additions and 1 deletions

View File

@ -59,7 +59,7 @@ std::vector<Glib::ustring> listSubDirs (const Glib::RefPtr<Gio::File>& dir, bool
} catch (const Glib::Exception& exception) {
if (options.rtSettings.verbose) {
std::cerr << "Failed to list subdirectories of \"" << dir << "\": " << exception.what () << std::endl;
std::cerr << "Failed to list subdirectories of \"" << dir->get_parse_name() << "\": " << exception.what () << std::endl;
}
}

View File

@ -50,6 +50,8 @@ private:
profileBox.set_size_request (100, -1);
profileBox.setPreferredWidth (90, 150);
setExpandAlignProperties (&profileBox, false, false, Gtk::ALIGN_CENTER, Gtk::ALIGN_CENTER);
Gtk::CellRendererText* cellRenderer = dynamic_cast<Gtk::CellRendererText*>(profileBox.get_first_cell());
cellRenderer->property_ellipsize() = Pango::ELLIPSIZE_MIDDLE;
profileBox.append (M ("PREFERENCES_PROFILE_NONE"));
#ifdef WIN32