From b03382f3add6eaa198bcc9eab1fa19d2b37d63e5 Mon Sep 17 00:00:00 2001 From: Ole Christian Eidheim Date: Thu, 12 Nov 2015 14:39:55 +0100 Subject: [PATCH] Fixed selected text on Gtk::MessageDialog using gtkmm instead. --- src/juci.cc | 7 +------ 1 file changed, 1 insertion(+), 6 deletions(-) diff --git a/src/juci.cc b/src/juci.cc index 6f3eb49..98125f1 100644 --- a/src/juci.cc +++ b/src/juci.cc @@ -103,12 +103,7 @@ Application::Application() : Gtk::Application("no.sout.juci", Gio::APPLICATION_N Glib::set_application_name("juCi++"); //Gtk::MessageDialog without buttons caused text to be selected, this prevents that - //Copied from https://mail.gnome.org/archives/gtk-app-devel-list/2007-October/msg00144.html - GtkSettings* settings = gtk_settings_get_default(); - if(settings) { - g_object_set(settings, "gtk-label-select-on-focus", false, NULL); - } - //End copy + Gtk::Settings::get_default()->property_gtk_label_select_on_focus()=false; window=std::unique_ptr(new Window()); }