summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authormonsta <[email protected]>2017-04-14 11:42:05 +0300
committermonsta <[email protected]>2017-04-14 11:46:10 +0300
commit7d95c467338ecb57c5a6dc0bd08b3fc40c44ed60 (patch)
tree8be23491b27d7ce069d5cf4fc5c512d3f69d1539
parentf04342f59f722635bb8178a3816f07b54a7319f9 (diff)
downloadpluma-7d95c467338ecb57c5a6dc0bd08b3fc40c44ed60.tar.bz2
pluma-7d95c467338ecb57c5a6dc0bd08b3fc40c44ed60.tar.xz
close confirm dialog: enable selection + disable focus in all labels
-rw-r--r--pluma/dialogs/pluma-close-confirmation-dialog.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/pluma/dialogs/pluma-close-confirmation-dialog.c b/pluma/dialogs/pluma-close-confirmation-dialog.c
index 361d5ae6..9eca2c2c 100644
--- a/pluma/dialogs/pluma-close-confirmation-dialog.c
+++ b/pluma/dialogs/pluma-close-confirmation-dialog.c
@@ -712,6 +712,7 @@ build_multiple_docs_dialog (PlumaCloseConfirmationDialog *dlg)
gtk_misc_set_alignment (GTK_MISC (primary_label), 0.0, 0.5);
#endif
gtk_label_set_selectable (GTK_LABEL (primary_label), TRUE);
+ gtk_widget_set_can_focus (GTK_WIDGET (primary_label), FALSE);
gtk_label_set_max_width_chars (GTK_LABEL (primary_label), 72);
if (priv->disable_save_to_disk)
@@ -752,6 +753,8 @@ build_multiple_docs_dialog (PlumaCloseConfirmationDialog *dlg)
#else
gtk_misc_set_alignment (GTK_MISC (select_label), 0.0, 0.5);
#endif
+ gtk_label_set_selectable (GTK_LABEL (select_label), TRUE);
+ gtk_widget_set_can_focus (GTK_WIDGET (select_label), FALSE);
scrolledwindow = gtk_scrolled_window_new (NULL, NULL);
gtk_box_pack_start (GTK_BOX (vbox2), scrolledwindow, TRUE, TRUE, 0);
@@ -779,6 +782,7 @@ build_multiple_docs_dialog (PlumaCloseConfirmationDialog *dlg)
gtk_misc_set_alignment (GTK_MISC (secondary_label), 0.0, 0.5);
#endif
gtk_label_set_selectable (GTK_LABEL (secondary_label), TRUE);
+ gtk_widget_set_can_focus (GTK_WIDGET (secondary_label), FALSE);
gtk_label_set_max_width_chars (GTK_LABEL (secondary_label), 72);
gtk_label_set_mnemonic_widget (GTK_LABEL (select_label), treeview);