Message-ID: <4226747F.6080607 at rftp.com> Date: Wed, 02 Mar 2005 18:20:47 -0800 From: Robert Roessler Organization: Robert's High-performance Software MIME-Version: 1.0 To: lablgtk at math.nagoya-u.ac.jp Subject: Which widget to use Content-Type: text/plain; charset=us-ascii; format=flowed Content-Transfer-Encoding: 7bit I have seen suggestions both on and off the list to use GObj.widget for inheritance purposes when creating OCaml-level [new] widgets... but there are other choices, and any insights into which of the widget classes is intended to be used under which circumstances would be helpful. :) So, we have GObj.widget, GObj.widget_impl, and GObj.widget_full. I note that all three are related, with the two others deriving from widget. I see widget_impl is a parameterized class (similar to a C++ templated class?), while widget_full is not. So, using widget_impl, you get to nail down the constructor parameter type more explicitly? But widget_full has the whole "connect" grouping of signals, while widget_impl does not... In addition, a number of existing LablGTK widgets use widget_impl. Presumably, the three different classes exist for a reason - unless they just represent historical artifact? Robert Roessler robertr@rftp.com http://www.rftp.com