diff options
author | Milan Crha <mcrha@redhat.com> | 2007-10-11 21:38:00 +0800 |
---|---|---|
committer | Milan Crha <mcrha@src.gnome.org> | 2007-10-11 21:38:00 +0800 |
commit | 2c2f4ae4f8fd78e10c47d3a6bf383d41ed78467e (patch) | |
tree | df20851af41d99764ffb4dda2ab5e32b32fbace4 | |
parent | 1cab61b67487774ed20dc14a4a804e7f3a56b4a3 (diff) | |
download | gsoc2013-evolution-2c2f4ae4f8fd78e10c47d3a6bf383d41ed78467e.tar.gz gsoc2013-evolution-2c2f4ae4f8fd78e10c47d3a6bf383d41ed78467e.tar.zst gsoc2013-evolution-2c2f4ae4f8fd78e10c47d3a6bf383d41ed78467e.zip |
** Fix for bug #311179
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.
svn path=/branches/gnome-2-20/; revision=34373
-rw-r--r-- | e-util/ChangeLog | 7 | ||||
-rw-r--r-- | e-util/e-error.c | 2 |
2 files changed, 9 insertions, 0 deletions
diff --git a/e-util/ChangeLog b/e-util/ChangeLog index 124506509e..f4aeecb60a 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-09-10 Srinivasa Ragavan <sragavan@novell.com> ** Fix for bug #471791 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); |