close confirmation dialog: make text unfocusable
adapted from https://git.gnome.org/browse/gedit/commit?id=08f0c2629d0bf4f795a71826526624d96127c23e
This commit is contained in:
parent
4fd8549850
commit
e75584f2e6
|
@ -507,6 +507,7 @@ build_single_doc_dialog (PlumaCloseConfirmationDialog *dlg)
|
||||||
gtk_label_set_use_markup (GTK_LABEL (primary_label), TRUE);
|
gtk_label_set_use_markup (GTK_LABEL (primary_label), TRUE);
|
||||||
gtk_misc_set_alignment (GTK_MISC (primary_label), 0.0, 0.5);
|
gtk_misc_set_alignment (GTK_MISC (primary_label), 0.0, 0.5);
|
||||||
gtk_label_set_selectable (GTK_LABEL (primary_label), TRUE);
|
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);
|
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_label_set_line_wrap (GTK_LABEL (secondary_label), TRUE);
|
||||||
gtk_misc_set_alignment (GTK_MISC (secondary_label), 0.0, 0.5);
|
gtk_misc_set_alignment (GTK_MISC (secondary_label), 0.0, 0.5);
|
||||||
gtk_label_set_selectable (GTK_LABEL (secondary_label), TRUE);
|
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);
|
hbox = gtk_hbox_new (FALSE, 12);
|
||||||
gtk_container_set_border_width (GTK_CONTAINER (hbox), 5);
|
gtk_container_set_border_width (GTK_CONTAINER (hbox), 5);
|
||||||
|
|
Loading…
Reference in New Issue