From e75584f2e6169bbae2282b6ea7f18c0ad4072fb9 Mon Sep 17 00:00:00 2001 From: monsta Date: Tue, 14 Jul 2015 13:00:39 +0300 Subject: [PATCH] close confirmation dialog: make text unfocusable adapted from https://git.gnome.org/browse/gedit/commit?id=08f0c2629d0bf4f795a71826526624d96127c23e --- pluma/dialogs/pluma-close-confirmation-dialog.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/pluma/dialogs/pluma-close-confirmation-dialog.c b/pluma/dialogs/pluma-close-confirmation-dialog.c index f8e87f7..155fe49 100755 --- a/pluma/dialogs/pluma-close-confirmation-dialog.c +++ b/pluma/dialogs/pluma-close-confirmation-dialog.c @@ -507,6 +507,7 @@ build_single_doc_dialog (PlumaCloseConfirmationDialog *dlg) gtk_label_set_use_markup (GTK_LABEL (primary_label), TRUE); gtk_misc_set_alignment (GTK_MISC (primary_label), 0.0, 0.5); gtk_label_set_selectable (GTK_LABEL (primary_label), TRUE); + gtk_widget_set_can_focus (GTK_WIDGET (primary_label), FALSE); doc_name = pluma_document_get_short_name_for_display (doc); @@ -539,6 +540,7 @@ build_single_doc_dialog (PlumaCloseConfirmationDialog *dlg) gtk_label_set_line_wrap (GTK_LABEL (secondary_label), TRUE); gtk_misc_set_alignment (GTK_MISC (secondary_label), 0.0, 0.5); gtk_label_set_selectable (GTK_LABEL (secondary_label), TRUE); + gtk_widget_set_can_focus (GTK_WIDGET (secondary_label), FALSE); hbox = gtk_hbox_new (FALSE, 12); gtk_container_set_border_width (GTK_CONTAINER (hbox), 5);