diff --git a/src/swfmoz_dialog.c b/src/swfmoz_dialog.c index 9cb4e7f..dea0095 100644 --- a/src/swfmoz_dialog.c +++ b/src/swfmoz_dialog.c @@ -168,6 +168,7 @@ swfmoz_dialog_get_media_page (SwfmozDialog *dialog) GtkWidget *vbox, *align, *widget; GtkCellRenderer *renderer; GtkTreeViewColumn *column; + GtkTreePath *path; vbox = gtk_vbox_new (FALSE, 3); @@ -182,6 +183,8 @@ swfmoz_dialog_get_media_page (SwfmozDialog *dialog) gtk_tree_view_column_set_expand (column, TRUE); gtk_tree_view_column_set_sort_column_id (column, SWFMOZ_LOADER_COLUMN_URL); gtk_tree_view_append_column (GTK_TREE_VIEW (widget), column); + path = gtk_tree_path_new_from_string("0"); + gtk_tree_view_set_cursor (GTK_TREE_VIEW (widget), path, NULL, FALSE); renderer = gtk_cell_renderer_text_new (); column = gtk_tree_view_column_new_with_attributes ("Type", renderer, @@ -215,7 +218,7 @@ swfmoz_dialog_get_media_page (SwfmozDialog *dialog) align = gtk_alignment_new (1.0, 0.5, 0.0, 0.0); gtk_container_add (GTK_CONTAINER (align), widget); gtk_box_pack_end (GTK_BOX (vbox), align, FALSE, TRUE, 0); - + return vbox; }