[gedit] Make text in close confirmation dialog unfocusable (fixes bug #517788)
- From: Ignacio Casal Quinteiro <icq src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gedit] Make text in close confirmation dialog unfocusable (fixes bug #517788)
- Date: Tue, 27 Apr 2010 18:20:30 +0000 (UTC)
commit 08f0c2629d0bf4f795a71826526624d96127c23e
Author: Garrett Regier <alias301 gmail com>
Date: Sun Apr 25 10:59:36 2010 -0700
Make text in close confirmation dialog unfocusable (fixes bug #517788)
gedit/dialogs/gedit-close-confirmation-dialog.c | 2 ++
1 files changed, 2 insertions(+), 0 deletions(-)
---
diff --git a/gedit/dialogs/gedit-close-confirmation-dialog.c b/gedit/dialogs/gedit-close-confirmation-dialog.c
index cfba046..aecdd5d 100644
--- a/gedit/dialogs/gedit-close-confirmation-dialog.c
+++ b/gedit/dialogs/gedit-close-confirmation-dialog.c
@@ -508,6 +508,7 @@ build_single_doc_dialog (GeditCloseConfirmationDialog *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_UNSET_FLAGS (primary_label, GTK_CAN_FOCUS);
doc_name = gedit_document_get_short_name_for_display (doc);
@@ -540,6 +541,7 @@ build_single_doc_dialog (GeditCloseConfirmationDialog *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_UNSET_FLAGS (secondary_label, GTK_CAN_FOCUS);
hbox = gtk_hbox_new (FALSE, 12);
gtk_container_set_border_width (GTK_CONTAINER (hbox), 5);
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]