* add mug_msg_list_view_move_first, move to first item after running query

This commit is contained in:
Dirk-Jan C. Binnema
2010-11-02 22:45:11 +02:00
parent 34b997ad3c
commit 6bfa535e6a
4 changed files with 30 additions and 5 deletions

View File

@ -205,6 +205,20 @@ mug_msg_list_view_finalize (GObject *obj)
G_OBJECT_CLASS(parent_class)->finalize (obj);
}
void
mug_msg_list_view_move_first (MugMsgListView *self)
{
GtkTreePath *path;
g_return_val_if_fail (MUG_IS_MSG_LIST_VIEW(self), FALSE);
path = gtk_tree_path_new_first ();
gtk_tree_view_set_cursor (GTK_TREE_VIEW(self), path,
NULL, FALSE);
gtk_tree_path_free (path);
}
static gboolean
msg_list_view_move (MugMsgListView *self, gboolean next)