naive questions
- From: nelson-gtk crynwr com
- To: gtk-list redhat com
- Subject: naive questions
- Date: 10 Mar 1998 20:32:30 -0000
Hi. I'm trying to make sense of gtk. I have a few questions:
1) the label widget has a size_request method, but no size_allocate.
I guess that means that there's no one-time change needed when its
size changes unlike e.g. a button.
2) gtk_widget_size_request() increases the ref count while it signals
the widget to resize itself. Why? Isn't the ref count already going
to be non-zero?
3) Looks to me like a menu consists of three pieces:
a) a menu bar container whose function is to send popup signals and
locations to a menu.
b) a menu container whose function is to hold menuitems.
c) menuitems, a container which holds an item.
I'm trying to figure out how to add pie menus to gtk. Looks to me
like I'm going to make something like a menu. It's going to request
sizes of its children, position them as needed, then communicate the
positions by calling size_allocate.
--
-russ <nelson@crynwr.com> http://web.crynwr.com/~nelson
Crynwr supports Open Source(tm) Software| PGPok | Freedom is the primary
521 Pleasant Valley Rd. | +1 315 268 1925 voice | cause of Peace, Love,
Potsdam, NY 13676-3213 | +1 315 268 9201 FAX | Truth and Justice.
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]