Re: [gtk-list] GTK 1.2 questions
- From: Havoc Pennington <rhp zirx pair com>
- To: gtk-list redhat com
- Subject: Re: [gtk-list] GTK 1.2 questions
- Date: Sun, 6 Jun 1999 15:25:34 -0400 (EDT)
On Sun, 6 Jun 1999, Ron Forrester wrote:
>
> 1) I am making use of CList. By default it didn't seem to have any
> scrolling ability, so I embedded it in a scrolled window. This
> works pretty good, but has an undesirable side-effect. When
> scrolling vertically, the CList header scrolls as part of the
> list. Is there any way to keep the header frozen while the contents
> of the CList scroll?
>
Don't use the _with_viewport() add function, just add the CList normally.
> 2) When the application closes, I would like to store off the width of
> each of the columns of the CList so I can restore them on the next
> invocation. I see there is a call to set the width of a column, but
> none to get the width.
>
There's a resize_column signal you could use to track resizes. There may
be a bettter way though.
> 3) In a signal handler for a button, I enter a loop and do some
> possibily time consuming task. I want to provide some feedback to
> the user on the progress. I have tried using both a progress bar
> and a status bar, but I had the same problem with both. In the
> loop, I attempt to update the status, but the widget never updates
> itself, until the signal handler leaves. I tried calling
> gtk_widget_realize(), and all that did was make the loop run much
> slower. I assume I am starving the message pump or something? Is
> there a right way to do this?
>
See the FAQ on www.gtk.org.
Havoc
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]