22 lines
745 B
Text
22 lines
745 B
Text
$NetBSD: patch-ad,v 1.1.1.1 2008/05/25 15:29:19 joerg Exp $
|
|
|
|
--- src/Browser.cxx.orig 2008-05-16 18:09:01.000000000 +0200
|
|
+++ src/Browser.cxx
|
|
@@ -1676,7 +1676,7 @@ RETURN:
|
|
|
|
void Browser::column_click_cb_(Widget *ww, void *d) {
|
|
Browser *w = (Browser*)(ww->parent());
|
|
- w->selected_column_ = *(int*)&d;
|
|
+ w->selected_column_ = *(int *)d;
|
|
w->do_callback();
|
|
w->selected_column_ = NO_COLUMN_SELECTED;
|
|
}
|
|
@@ -1774,7 +1774,7 @@ void Browser::column_labels(const char *
|
|
if (i<nHeader) sides |= 2;
|
|
header_[i] = new BButton(sides, column_labels_[i]);
|
|
header_[i]->parent(this);
|
|
- header_[i]->callback(column_click_cb_, (void*)i);
|
|
+ header_[i]->callback(column_click_cb_, &i);
|
|
}
|
|
Group::current(g);
|
|
}
|