GtkTextView flickers when inside GtkScrolledWindow and invoking gtk_adjustment_set_value
- From: Saulius Menkevicius <razzmatazz mail lt>
- To: gtk-app-devel-list gnome org
- Subject: GtkTextView flickers when inside GtkScrolledWindow and invoking gtk_adjustment_set_value
- Date: Thu, 17 Oct 2002 12:53:43 +0200
I have GtkTextView widget contained inside GtkScroolView. Normal (manual gui) movements of
scrollbar with mouse doesn't produce any flicker.
But for some reason the following code makes the GtkScrollView flicker:
------------ >8 ------------------------
adj = gtk_scrolled_window_get_vadjustment(
GTK_SCROLLED_WINDOW(p->scroll_w));
switch(scrool)
{
case SCROLL_HOME:
new_value = adj->lower;
break;
case SCROLL_END:
....
}
if(new_value < adj->lower) new_value = adj->lower;
else if(new_value > adj->upper) new_value = adj->upper;
if(new_value != adj->value) {
gtk_adjustment_set_value(adj, new_value);
}
}
------ >8 --------
Thanks,
-- Saulius Menkevicius
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]