summaryrefslogtreecommitdiff
path: root/plugins/gtkui/ddblistview.c
diff options
context:
space:
mode:
authorGravatar waker <wakeroid@gmail.com>2011-10-08 17:27:39 +0200
committerGravatar waker <wakeroid@gmail.com>2011-10-08 17:27:39 +0200
commit106af524dc03ebebca8602a5df5d5c75ed93c99d (patch)
tree9d617828bc20b549263b1e935e8dffb9ac496ede /plugins/gtkui/ddblistview.c
parentcfe2e9caded2c1ac12e8416c2204f681a9d5ee01 (diff)
removed some deprecated code
Diffstat (limited to 'plugins/gtkui/ddblistview.c')
-rw-r--r--plugins/gtkui/ddblistview.c46
1 files changed, 2 insertions, 44 deletions
diff --git a/plugins/gtkui/ddblistview.c b/plugins/gtkui/ddblistview.c
index f81333f4..88dab3cc 100644
--- a/plugins/gtkui/ddblistview.c
+++ b/plugins/gtkui/ddblistview.c
@@ -282,8 +282,7 @@ ddb_listview_class_init(DdbListviewClass *class)
{
GtkTableClass *widget_class = (GtkTableClass *) class;
GObjectClass *object_class = (GObjectClass *) class;
- // FIXME!!!
- //object_class->destroy = ddb_listview_destroy;
+ object_class->finalize = ddb_listview_destroy;
}
static void
@@ -831,48 +830,8 @@ ddb_listview_vscroll_value_changed (GtkRange *widget,
return;
}
if (newscroll != ps->scrollpos) {
- GtkWidget *widget = ps->list;
- int di = newscroll - ps->scrollpos;
- int d = abs (di);
- GtkAllocation a;
- gtk_widget_get_allocation (ps->list, &a);
- int height = a.height;
- if (d < height) {
- if (di > 0) {
- // scroll down
- // copy scrolled part of buffer
-#if !GTK_CHECK_VERSION(3,0,0)
- // FIXME
- gdk_draw_drawable (ps->list->window, widget->style->black_gc, ps->list->window, 0, d, 0, 0, a.width, a.height-d);
-#else
-// cairo_region_copy ();
-#endif
- // redraw other part
- int start = height-d-1;
- ps->scrollpos = newscroll;
- // FIXME gtk_widget_queue_draw_area (ps->list, 0, start, ps->list->allocation.width, widget->allocation.height-start);
- }
- else {
- // scroll up
- // copy scrolled part of buffer
-#if !GTK_CHECK_VERSION(3,0,0)
- // FIXME
- gdk_draw_drawable (ps->list->window, widget->style->black_gc, ps->list->window, 0, 0, 0, d, widget->allocation.width, widget->allocation.height-d);
-#else
-// cairo_region_copy ();
-#endif
- // redraw other part
- ps->scrollpos = newscroll;
- // FIXME gtk_widget_queue_draw_area (ps->list, 0, 0, ps->list->allocation.width, d+1);
- }
- }
- else {
- // scrolled more than view height, redraw everything
- ps->scrollpos = newscroll;
- // FIXME gtk_widget_queue_draw (ps->list);
- }
+ ps->scrollpos = newscroll;
gtk_widget_queue_draw (ps->list);
-// draw_drawable (widget->window, widget->style->black_gc, ps->list->window, 0, 0, 0, 0, widget->allocation.width, widget->allocation.height);
}
}
@@ -1289,7 +1248,6 @@ ddb_listview_list_render_row_background (DdbListview *ps, cairo_t *cr, DdbListvi
if (theming) {
#if !GTK_CHECK_VERSION(3,0,0)
- // FIXME
if (gtk_widget_get_style (treeview)->depth == -1) {
return; // drawing was called too early
}