Re: [gtk-list] Dial widget tutorial



On Wed, Nov 26, 1997 at 10:08:26PM -0500, Owen Taylor wrote:

> >   dial = gtk_dial_new(NULL);
>                         ^^^^
> Try giving the dial an explicit adjustment. (See the example pointed
> to above.) Although the dial does create an adjustment if you pass
> NULL, it has an empty range causing the problems you are seeing.

Thanks for the prompt reply, Owen.  That NULL looked suspicious, but
being unfamiliar with Gtk_Adjustment types I tried the easy approach
of passing NULL.  In my obviously non-expert opinion, an empty range
is probably not the best choice for a default here.

With this addition, my dial program displays a pointer, but I couldn't
get the pointer to move.  At this point, I pulled the three dial
related source files from your tutorial page and tried compiling them.  

Here too the pointer would not update.  I was able to get the numeric
value in the box to update by grabbing and dragging the dial location
where the tip of the pointer would be if it were being updated, but
the pointer itself remained stuck straight up at 12 o'clock.

Could something have changed with the Gtk+-971109 release that would
require some additional connection be established between the dial
pointer and the value adjustment?

-- John Kodis.



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