GtkScrolledWindow problem

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

 



Hello, i have a problem with the GtkScrolledWindow. I
have a
strange situation: i have two scrolled window packet
in a GtkVBox.
I have disabilated the scrolled window scrollbar
(GTK_POLICY_NEVER)
and i draw my self a hscrollbar and put in the
GtkVBox. I need
this because when the user scroll i have to scrool
both the 
scrolled window. For scroll the window i use:

  // Take from gtkscrolledwindow.c
  new_value = CLAMP (new_value, adj->lower, adj->upper
- adj->page_size);
  gtk_adjustment_set_value (sfl->inte_adj, new_value);
  gtk_adjustment_set_value (sfl->fixed_adj,
new_value);

The value for my hscrollbar adj
(upper,lower,page_size,page_increment)
is taken from the hadjustment of the first scrolled
window 
(the two window have the same dimension).

The problem is that when scroll i obtain that the
scrolled window
became black. What can i do for this situation ? Where
i am wrong ?

thanks, hammer.
  


______________________________________________________________________
Yahoo! Mail: 6MB di spazio gratuito, 30MB per i tuoi allegati, l'antivirus, il filtro Anti-spam
http://it.yahoo.com/mail_it/foot/?http://it.mail.yahoo.com/
_______________________________________________

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