This commit is contained in:
pavlov%pavlov.net 1999-03-18 02:47:48 +00:00
Родитель 00c96d37e7
Коммит 473c00b28e
1 изменённых файлов: 5 добавлений и 0 удалений

Просмотреть файл

@ -701,9 +701,14 @@ void handle_scrollbar_value_changed(GtkAdjustment *adj, gpointer p)
{ {
nsScrollbar *widget = (nsScrollbar*) p; nsScrollbar *widget = (nsScrollbar*) p;
nsScrollbarEvent sevent; nsScrollbarEvent sevent;
sevent.message = NS_SCROLLBAR_POS; sevent.message = NS_SCROLLBAR_POS;
sevent.widget = (nsWidget *) p; sevent.widget = (nsWidget *) p;
sevent.eventStructType = NS_SCROLLBAR_EVENT; sevent.eventStructType = NS_SCROLLBAR_EVENT;
GdkWindow *win = (GdkWindow *)widget->GetNativeData(NS_NATIVE_WINDOW);
gdk_window_get_pointer(win, &sevent.point.x, &sevent.point.y, nsnull);
widget->OnScroll(sevent, adj->value); widget->OnScroll(sevent, adj->value);
/* FIXME we need to set point.* from the event stuff. */ /* FIXME we need to set point.* from the event stuff. */