where did the _construct functions go?
- From: Oskar Liljeblad <osk hem passagen se>
- To: gtk-devel-list gnome org
- Subject: where did the _construct functions go?
- Date: Wed, 1 Aug 2001 10:05:01 +0200
Some gtk_XYZ_construct functions in gtk 1.2.x have been removed
from gtk 1.3.x. These functions allow classes to be instantiated
by g_type_create_instance and then "constructed" with additional
parameters with gtk_XYZ_construct. (See gtk_plug_construct.)
E.g. if you have subclassed GtkButton, and want to use a stock
image by default, you can't use gtk_button_new_from_stock because
that would create a GtkButton instance. It would be necessary to
do g_type_create_instance(MY_BUTTON_TYPE) then
gtk_button_construct_from_stock. The latter function does not
yet exist.
Would a patch against gtk 1.3/cvs that
1. Added new functions gtk_XYZ_construct[_..] to all
classes with _new functions that do more than just
calling gtk_type_new/g_type_create_instance?
2. Updated those _new functions to use _construct instead.
be accepteped?
Oskar Liljeblad (osk hem passagen se
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]