widget question



Hi all,

I'm trying to write a widget that is much like the GtkScale, but it should
have three sliders rather than one. I'm hoping to use the existing GtkScale
as basis and then simply extent it with two more adjustments and two images
of the other two sliders and that should be it.....

But I'm horribly confused. The code of Gtk(H/V)Scale and GtkRange are not
really understandable to a newbie-who-knows-how-tu-use-gtk-but-doesn't-get-it
(me).

As far as I understand, GtkScale (or Gtk[HV]Scale) use a GtkRange as basis.
What exactly is GtkRange supposed to be? Is it something that allows
movement of the slider (in that case, three Range's would be enough to have
three sliders in my enhanced GtkScale)? Or is it much more than that?

Maybe somebody can help me a little in the right direction on how I should
create such a widget? Where exactly, in what class/file, is the code
located that alows the slider to be moved through a GtkAdjustment? That is
really all I need, three references to this code and I'm done (this is of
course a simplified approach but it would be a nice start).

I hope someone can explain this a bit for me hoping that it will become
clear...

Thanks,

Ronald

-- 
---------------------------------------------------.
--   .-.    | Ronald Bultje                        |
--   /V\    | Running: Linux 2.4.4 and OpenBSD 2.8 |
--  // \\   | E-mail : rbultje ronald bitfreak net |
-- /(   )\  | WWW    : http://ronald.bitfreak.net/ |
--  ^^-^^   |    *** Warning: Unix Addicted ***    |
---------------------------------------------------'





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