| 1711 GtkTreeView *treeview, |
1711 GtkTreeView *treeview, |
| 1712 GtkTreePath *path, |
1712 GtkTreePath *path, |
| 1713 GtkTreeViewColumn *column, |
1713 GtkTreeViewColumn *column, |
| 1714 UiTreeEventData *event) |
1714 UiTreeEventData *event) |
| 1715 { |
1715 { |
| 1716 UiListSelection selection = ui_listview_selection( |
1716 UiListSelection selection = ui_listview_get_selection( |
| 1717 gtk_tree_view_get_selection(treeview), |
1717 gtk_tree_view_get_selection(treeview), |
| 1718 event); |
1718 event); |
| 1719 |
1719 |
| 1720 UiEvent e; |
1720 UiEvent e; |
| 1721 e.obj = event->obj; |
1721 e.obj = event->obj; |
| 1733 |
1733 |
| 1734 void ui_listview_selection_event( |
1734 void ui_listview_selection_event( |
| 1735 GtkTreeSelection *treeselection, |
1735 GtkTreeSelection *treeselection, |
| 1736 UiTreeEventData *event) |
1736 UiTreeEventData *event) |
| 1737 { |
1737 { |
| 1738 UiListSelection selection = ui_listview_selection(treeselection, event); |
1738 UiListSelection selection = ui_listview_get_selection(treeselection, event); |
| 1739 |
1739 |
| 1740 UiEvent e; |
1740 UiEvent e; |
| 1741 e.obj = event->obj; |
1741 e.obj = event->obj; |
| 1742 e.window = event->obj->window; |
1742 e.window = event->obj->window; |
| 1743 e.document = event->obj->ctx->document; |
1743 e.document = event->obj->ctx->document; |
| 1749 if(selection.count > 0) { |
1749 if(selection.count > 0) { |
| 1750 free(selection.rows); |
1750 free(selection.rows); |
| 1751 } |
1751 } |
| 1752 } |
1752 } |
| 1753 |
1753 |
| 1754 UiListSelection ui_listview_selection( |
1754 UiListSelection ui_listview_get_selection( |
| 1755 GtkTreeSelection *selection, |
1755 GtkTreeSelection *selection, |
| 1756 UiTreeEventData *event) |
1756 UiTreeEventData *event) |
| 1757 { |
1757 { |
| 1758 GList *rows = gtk_tree_selection_get_selected_rows(selection, NULL); |
1758 GList *rows = gtk_tree_selection_get_selected_rows(selection, NULL); |
| 1759 |
1759 |