>
> Hi
>
> I'm making an application for sound editing. I will want one
> window for each sample being edited. I guess I could create
> these windows by calling create_editing_window() multiple
> times (I haven't tried yet).
Should work fine, I've done this in the past.
>
> But then I wan't to access the auto created Adjustment of a
> HScrollBar in each of these windows. I'd usually do this with
> (something like):
>
> GtkWidget *adjustment = GTK_RANGE(lookup_widget(window,
> "scrollbar"))->adjustment;
lookup_widget reaches in to the data stashed on the top level widget
(typically a GtkWindow). IIRC it works like this: start at widget, trace it's
family history until you get to a widget with no parent, then extract the
pointer to the scrollbar from the top level widget. The pointers to a
GtkWindow's children are not shared with other GtkWindows.
So, if you know which "window"
you are dealing with then you'll get the "scrollbar" that's a descendent of
that window.
>
> Now all my scrollbars will have the same name (if that's
> possible), so I have a problem.
I'm not sure I see the problem, but I have been known to be dense.
Each scrollbar may have the same name but they would
be in different window-level parents and hence different objects.
+---------------------------------------------------------------------+
To unsubscribe from this list, send a message to [EMAIL PROTECTED]
with the line "unsubscribe glade-devel" in the body of the message.