|
|
|
@ -1,4 +1,5 @@ |
|
|
|
#include "selection_dialog.hpp" |
|
|
|
#include "selection_dialog.hpp" |
|
|
|
|
|
|
|
#include "utility.hpp" |
|
|
|
#include <algorithm> |
|
|
|
#include <algorithm> |
|
|
|
|
|
|
|
|
|
|
|
SelectionDialogBase::ListViewText::ListViewText(bool use_markup) : Gtk::TreeView(), use_markup(use_markup) { |
|
|
|
SelectionDialogBase::ListViewText::ListViewText(bool use_markup) : Gtk::TreeView(), use_markup(use_markup) { |
|
|
|
@ -138,7 +139,7 @@ SelectionDialogBase::SelectionDialogBase(Source::BaseView *view_, const boost::o |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
SelectionDialogBase::~SelectionDialogBase() { |
|
|
|
SelectionDialogBase::~SelectionDialogBase() { |
|
|
|
#if defined(__APPLE__) && GTK_VERSION_GT_MICRO(3, 24, 34) |
|
|
|
#if defined(__APPLE__) && GTK_VERSION_GT_MICRO2(3, 24, 34) |
|
|
|
// Workaround for https://gitlab.gnome.org/GNOME/gtk/-/issues/5593 by keeping window alive slightly longer
|
|
|
|
// Workaround for https://gitlab.gnome.org/GNOME/gtk/-/issues/5593 by keeping window alive slightly longer
|
|
|
|
window.close(); |
|
|
|
window.close(); |
|
|
|
Glib::signal_timeout().connect([window = std::make_shared<Gtk::Window>(std::move(window))] { return false; }, 5000); |
|
|
|
Glib::signal_timeout().connect([window = std::make_shared<Gtk::Window>(std::move(window))] { return false; }, 5000); |
|
|
|
|