RE: List Scrolling

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Ok, I got the scrolling window to scroll from my mouse.

But I have another problem now.

I need to set the vadhustment on the window as soon as I create it, so the
window is in the center and not in the beginning.

But when I do :

Gtk_adjustment *adj = gtk_scrolled_window_get_vadjustment
(GTK_SCROLLED_WINDOW (mywindow));

Double value = gtk_adjustment_get_value (adj);

Gtk_adjustment_set_value (adj, value);

Gtk_scrolled_window_set_vadjustment(GTK_SCROLLED_WINDOW (mywindow), adj);

Nothing happends, it doesn't change. But if I put this in a callback for
like "motion-notify-event" this works fine.

The thing is that I don't want it to execute in a callback, but after I
created and added my Widget to the windows' Container.

How can I fix this ?

_______________________________________________
gtk-list mailing list
gtk-list@xxxxxxxxx
http://mail.gnome.org/mailman/listinfo/gtk-list

[Index of Archives]     [Touch Screen Library]     [GIMP Users]     [Gnome]     [KDE]     [Yosemite News]     [Steve's Art]

  Powered by Linux