Re: [evolution-patches] auto-focus message list after selecting a folder



Em Ter, 2004-11-16 às 16:02 -0200, Gustavo Noronha Silva escreveu:
> > grabbing focus like this below will interfere badly with some
> > behaviour, particularly since it will be invoked in a relatively async
> > manner in some instances.
> 
> Indeed. What about only grabing the focus when the user presses enter on
> that list? Currently, pressing enter will just reload the folder, it
> seems.

Ok, what about the attached patch? I would just like to have a way of
going back to the folders list with the keyboard now. I'll take a look
at how to implement that, too.

Thanks,

-- 
kov debian org: Gustavo Noronha <http://people.debian.org/~kov>
Debian:  <http://www.debian.org>  *  <http://www.debian-br.org>

--- mail-component.c~	2004-11-20 12:33:39 -0200
+++ mail-component.c	2004-11-20 12:34:04 -0200
@@ -371,6 +371,12 @@
 	}
 }
 
+static void
+folder_activated_cb (EMFolderTree *emft, const char *path, const char *uri, EMFolderView *view)
+{
+	gtk_widget_grab_focus (GTK_WIDGET(view->list->tree));
+}
+
 static int
 check_autosave(void *data)
 {
@@ -613,6 +619,7 @@
 
 	g_signal_connect (view_control, "activate", G_CALLBACK (view_control_activate_cb), view_widget);
 	g_signal_connect (tree_widget, "folder-selected", G_CALLBACK (folder_selected_cb), view_widget);
+	g_signal_connect (tree_widget, "folder-activated", G_CALLBACK (folder_activated_cb), view_widget);
 
 	g_signal_connect(view_widget, "changed", G_CALLBACK(view_changed_cb), info);
 	g_signal_connect(view_widget, "loaded", G_CALLBACK(view_changed_cb), info);


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]