[Glade-users] newbie questions about glade



Ken Huisman wrote:
1.  Is there a reference somewhere for what all the fields are for on
the tabs in the properties window?

The GTK+ documentation for the widget classes.  Each instance of a
widget on screen has a set of properties that they have as a result of
being within their class, including the properties of the inherited
classes.

A lot of them are self-explanitory, but I don't know
what "WM Name" and "WM Class" are for on a window widget.

Window manager name and class name.  They are used for selecting
resources from the resource database kept on the X server (usually
loaded from .Xdefaults) and for the window manager to help group
windows.  The convention is to use lowercase for the WM Name and mixed
case for WM Class, and to either use the application name as started by
the user (e.g. argv[0]) or to adopt a name based on the application name
and the file loaded (if any).

So, for a program called "example", the WM Name would be "example" and
the WM Class would be "Example" .

2. If I want to populate a list box when a window opens, what is the
proper signal I should trigger off to do this?

Many possibilities.  I use a map signal.  Others populate the list after
the create_window() call after using the returned widget pointer to find
(using lookup_widget()) the pointer to the list box.

Is there documentation for this as well?

The GTK+ documentation and tutorial.  Glade sits on top of GTK+, and has
no reason to duplicate the documentation effort.  It is also very common
to read other sources to find out how other people did them.  The use of
tools in isolation using documentation with the tool and without
real-world examples has gone out the window now.

3. How do I attach a gtk popup menu widget to my window?

Pass.  I've not done that yet.

4. After I add a Clist to my window, is there a way to edit the number
of columns it has?

I think this was discussed recently?  I've just checked gtkclist.h for
GTK+ 1.2.  No, you need to delete and recreate it.  If your application
needs to dynamically add or subtract columns, consider other tabular
data widget classes.

-- 
James Cameron                                      (cameron stl dec com)





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