summaryrefslogtreecommitdiff
path: root/plugins
diff options
context:
space:
mode:
authorGravatar Alexey Yakovenko <wakeroid@gmail.com>2010-02-15 22:08:23 +0100
committerGravatar Alexey Yakovenko <wakeroid@gmail.com>2010-02-15 22:08:23 +0100
commit8c48b540e031f2f7784f8317a0e87584505d16bd (patch)
tree085a17a98a0816352c423daafadc737eb5e74c1e /plugins
parent4c2f9863d0c6016d80c1c188c8ac229e21c58c60 (diff)
removed some legacy code
Diffstat (limited to 'plugins')
-rw-r--r--plugins/gtkui/ddblistview.c52
1 files changed, 0 insertions, 52 deletions
diff --git a/plugins/gtkui/ddblistview.c b/plugins/gtkui/ddblistview.c
index f55eed88..34c4c94a 100644
--- a/plugins/gtkui/ddblistview.c
+++ b/plugins/gtkui/ddblistview.c
@@ -1624,7 +1624,6 @@ ddb_listview_header_expose_event (GtkWidget *widget,
gpointer user_data)
{
DdbListview *ps = DDB_LISTVIEW (gtk_object_get_data (GTK_OBJECT (widget), "owner"));
- ddb_listview_header_render (ps); // FIXME
ddb_listview_header_expose (ps, event->area.x, event->area.y, event->area.width, event->area.height);
return FALSE;
}
@@ -1882,57 +1881,6 @@ ddb_listview_header_button_release_event (GtkWidget *widget,
return FALSE;
}
-// FIXME: port (maybe)
-#if 0
-int
-gtkpl_get_idx_of (DdbListview *ps, DdbListviewIter it) {
- DdbListviewIter c = ps->binding->head ();
- int idx = 0;
- while (c && c != it) {
- DdbListviewIter next = PL_NEXT(c);
- UNREF (c);
- c = next;
- idx++;
- }
- if (!c) {
- return -1;
- }
- UNREF (c);
- return idx;
-}
-
-DdbListviewIter
-gtkpl_get_for_idx (DdbListview *ps, int idx) {
- DdbListviewIter it = ps->binding->head ();
- while (idx--) {
- if (!it) {
- return NULL;
- }
- DdbListviewIter next = PL_NEXT(it);
- UNREF (it);
- it = next;
- }
- return it;
-}
-void
-gtk_pl_redraw_item_everywhere (DdbListviewIter it) {
- DdbListview *pl = &search_playlist;
- int idx = gtkpl_get_idx_of (pl, it);
- int minvis = pl->scrollpos;
- int maxvis = pl->scrollpos + pl->nvisiblerows-1;
- if (idx >= minvis && idx <= maxvis) {
- ddb_listview_draw_row (pl, idx, it);
- }
- pl = &main_playlist;
- idx = gtkpl_get_idx_of (pl, it);
- minvis = pl->scrollpos;
- maxvis = pl->scrollpos + pl->nvisiblerows-1;
- if (idx >= minvis && idx <= maxvis) {
- ddb_listview_draw_row (pl, idx, it);
- }
-}
-#endif
-
struct set_cursor_t {
int cursor;
int prev;