aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--e-util/ChangeLog7
-rw-r--r--e-util/e-error.c2
2 files changed, 9 insertions, 0 deletions
diff --git a/e-util/ChangeLog b/e-util/ChangeLog
index 6bde75b351..b1d1bdce34 100644
--- a/e-util/ChangeLog
+++ b/e-util/ChangeLog
@@ -1,3 +1,10 @@
+2007-10-11 Milan Crha <mcrha@redhat.com>
+
+ ** Fix for bug #311179
+
+ * e-error.c: (e_error_newv): Unset GTK_CAN_FOCUS on label to prevent
+ gaining focus by Tab, still can select and copy text by mouse.
+
2007-10-09 Matthew Barnes <mbarnes@redhat.com>
** Fixes part of bug #437579
diff --git a/e-util/e-error.c b/e-util/e-error.c
index e971b95882..9f2a768c9b 100644
--- a/e-util/e-error.c
+++ b/e-util/e-error.c
@@ -458,6 +458,7 @@ e_error_newv(GtkWindow *parent, const char *tag, const char *arg0, va_list ap)
gtk_label_set_selectable((GtkLabel *)w, TRUE);
gtk_label_set_line_wrap((GtkLabel *)w, TRUE);
gtk_label_set_markup((GtkLabel *)w, tmp);
+ GTK_WIDGET_UNSET_FLAGS (w, GTK_CAN_FOCUS);
gtk_widget_show(w);
gtk_box_pack_start((GtkBox *)dialog->vbox, w, TRUE, TRUE, 12);
@@ -543,6 +544,7 @@ e_error_newv(GtkWindow *parent, const char *tag, const char *arg0, va_list ap)
gtk_label_set_selectable((GtkLabel *)w, TRUE);
gtk_label_set_line_wrap((GtkLabel *)w, TRUE);
gtk_label_set_markup((GtkLabel *)w, out->str);
+ GTK_WIDGET_UNSET_FLAGS (w, GTK_CAN_FOCUS);
g_string_free(out, TRUE);
if (e->scroll) {
gtk_scrolled_window_add_with_viewport ((GtkScrolledWindow *)scroll, w);