* Reverts some changes of commit 3159 with is causing some annoying side effects...
authorSergio Villar Senin <svillar@igalia.com>
Fri, 31 Aug 2007 12:19:08 +0000 (12:19 +0000)
committerSergio Villar Senin <svillar@igalia.com>
Fri, 31 Aug 2007 12:19:08 +0000 (12:19 +0000)
pmo-trunk-r3167

src/widgets/modest-header-view.c

index ebca771..d8fcb75 100644 (file)
@@ -874,17 +874,24 @@ modest_header_view_get_style (ModestHeaderView *self)
 }
 
 /* This is used to automatically select the first header if the user
- * has not selected any header yet. Fixes NB#58917.
+ * has not selected any header yet.
  */
-static gboolean modest_header_view_on_expose_event(
-               GtkTreeView *header_view,
-               GdkEventExpose *event,
-               gpointer user_data)
+static gboolean 
+modest_header_view_on_expose_event(GtkTreeView *header_view,
+                                  GdkEventExpose *event,
+                                  gpointer user_data)
 {
        GtkTreeSelection *sel;
        GtkTreeModel *model;
        GtkTreeIter tree_iter;
 
+       /* I'm invalidating this method because it causes an annoying
+          efect, the focus changes to the header view when selecting
+          a folder in the folder view because of this code and it
+          shouldn't. We need to find another way to set the passive
+          focus on it. Sergio. */
+       return FALSE;
+
        model = gtk_tree_view_get_model(header_view);
 
        sel = gtk_tree_view_get_selection(header_view);