aboutsummaryrefslogtreecommitdiffstats
path: root/filter/e-filter-rule.c
diff options
context:
space:
mode:
authorMilan Crha <mcrha@redhat.com>2010-11-30 00:33:01 +0800
committerMilan Crha <mcrha@redhat.com>2010-11-30 00:33:01 +0800
commitd628156ce79f654344592ddcd3359ac986b347f2 (patch)
tree86e89ce9fd1baa539fb5fdaf03875f039de6d413 /filter/e-filter-rule.c
parent30427e119ae1d6b26fb92ee5e3e2abe614c7668e (diff)
downloadgsoc2013-evolution-d628156ce79f654344592ddcd3359ac986b347f2.tar.gz
gsoc2013-evolution-d628156ce79f654344592ddcd3359ac986b347f2.tar.zst
gsoc2013-evolution-d628156ce79f654344592ddcd3359ac986b347f2.zip
Bug #239817 - New criterion should grab focus in a filter editor
Diffstat (limited to 'filter/e-filter-rule.c')
-rw-r--r--filter/e-filter-rule.c6
1 files changed, 4 insertions, 2 deletions
diff --git a/filter/e-filter-rule.c b/filter/e-filter-rule.c
index 9d6fb275e8..c2c70c4695 100644
--- a/filter/e-filter-rule.c
+++ b/filter/e-filter-rule.c
@@ -230,12 +230,14 @@ do_grab_focus_cb (GtkWidget *widget,
{
gboolean *done = (gboolean *) data;
- if (*done)
+ if (*done || !widget)
return;
- if (widget && gtk_widget_get_can_focus (widget)) {
+ if (gtk_widget_get_can_focus (widget) || GTK_IS_COMBO_BOX (widget)) {
*done = TRUE;
gtk_widget_grab_focus (widget);
+ } else if (GTK_IS_CONTAINER (widget)) {
+ gtk_container_foreach (GTK_CONTAINER (widget), do_grab_focus_cb, done);
}
}