Fix issue #3186: "Combobox text overflow Gtk3"
+ fix a bug that prevent RT from building with gcc6.2
This commit is contained in:
parent
9380034b19
commit
3bdf38437c
@ -59,7 +59,7 @@ std::vector<Glib::ustring> listSubDirs (const Glib::RefPtr<Gio::File>& dir, bool
|
|||||||
} catch (const Glib::Exception& exception) {
|
} catch (const Glib::Exception& exception) {
|
||||||
|
|
||||||
if (options.rtSettings.verbose) {
|
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;
|
||||||
}
|
}
|
||||||
|
|
||||||
}
|
}
|
||||||
|
@ -50,6 +50,8 @@ private:
|
|||||||
profileBox.set_size_request (100, -1);
|
profileBox.set_size_request (100, -1);
|
||||||
profileBox.setPreferredWidth (90, 150);
|
profileBox.setPreferredWidth (90, 150);
|
||||||
setExpandAlignProperties (&profileBox, false, false, Gtk::ALIGN_CENTER, Gtk::ALIGN_CENTER);
|
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"));
|
profileBox.append (M ("PREFERENCES_PROFILE_NONE"));
|
||||||
#ifdef WIN32
|
#ifdef WIN32
|
||||||
|
Loading…
x
Reference in New Issue
Block a user