diff options
author | monsta <[email protected]> | 2015-07-14 13:00:39 +0300 |
---|---|---|
committer | monsta <[email protected]> | 2015-07-14 13:00:39 +0300 |
commit | e75584f2e6169bbae2282b6ea7f18c0ad4072fb9 (patch) | |
tree | 1b1cab4db89636640f32425d5e81fe8330481397 | |
parent | 4fd854985045f9a661b3b4767907bde80a993c63 (diff) | |
download | pluma-e75584f2e6169bbae2282b6ea7f18c0ad4072fb9.tar.bz2 pluma-e75584f2e6169bbae2282b6ea7f18c0ad4072fb9.tar.xz |
close confirmation dialog: make text unfocusable
adapted from
https://git.gnome.org/browse/gedit/commit?id=08f0c2629d0bf4f795a71826526624d96127c23e
-rwxr-xr-x | pluma/dialogs/pluma-close-confirmation-dialog.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/pluma/dialogs/pluma-close-confirmation-dialog.c b/pluma/dialogs/pluma-close-confirmation-dialog.c index f8e87f7e..155fe499 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); |