diff options
author | Milan Crha <mcrha@redhat.com> | 2007-10-11 21:37:20 +0800 |
---|---|---|
committer | Milan Crha <mcrha@src.gnome.org> | 2007-10-11 21:37:20 +0800 |
commit | aa70b15ea030e8c5a42ea9512c522140e6b8f5e7 (patch) | |
tree | 8ad91df0b33c06aa826828f82b5d5f2db261a080 | |
parent | efef62e55e68c9e32a28433f7c64eb0ba0a97bcf (diff) | |
download | gsoc2013-evolution-aa70b15ea030e8c5a42ea9512c522140e6b8f5e7.tar.gz gsoc2013-evolution-aa70b15ea030e8c5a42ea9512c522140e6b8f5e7.tar.zst gsoc2013-evolution-aa70b15ea030e8c5a42ea9512c522140e6b8f5e7.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=/trunk/; revision=34372
-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 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); |