After an evaluation, GNOME has moved from Bugzilla to GitLab. Learn more about GitLab.
No new issues can be reported in GNOME Bugzilla anymore.
To report an issue in a GNOME project, go to GNOME GitLab.
Do not go to GNOME Gitlab for: Bluefish, Doxygen, GnuCash, GStreamer, java-gnome, LDTP, NetworkManager, Tomboy.
Bug 77225 - BonoboWindow can not be instantiated with g_object_new()
BonoboWindow can not be instantiated with g_object_new()
Status: RESOLVED FIXED
Product: bonobo
Classification: Deprecated
Component: libbonoboui
unspecified
Other Linux
: Normal normal
: ---
Assigned To: Michael Meeks
Luis Villa
Depends on:
Blocks: 79491 79551
 
 
Reported: 2002-04-01 17:05 UTC by Murray Cumming
Modified: 2004-12-22 21:47 UTC
See Also:
GNOME target: ---
GNOME version: ---


Attachments
corrects bonobo_window_new() by using properties. (5.72 KB, patch)
2002-04-13 20:04 UTC, Murray Cumming
none Details | Review
moves DockBand code from _new to _instance_init(). (1.97 KB, patch)
2002-04-14 12:20 UTC, Murray Cumming
none Details | Review
Makes _new() a wrapper for g_object_new(). Not tested - see ChangeLog (8.34 KB, patch)
2002-04-14 20:21 UTC, Murray Cumming
none Details | Review
selector patch 2 (882 bytes, patch)
2002-04-22 23:16 UTC, Murray Cumming
none Details | Review
BonoboWindow patch 2 (4.35 KB, patch)
2002-04-22 23:16 UTC, Murray Cumming
none Details | Review
BonoboSelectro patch 2.1 - the last one was mostly empty. (8.80 KB, patch)
2002-04-23 16:24 UTC, Murray Cumming
none Details | Review

Description Murray Cumming 2002-04-01 17:05:21 UTC
*_new() functions should be just convenience wrappers, but there doesn't
seem to be a way to instantiate a BonoboWindow with only g_object_new() as
there are no construct-time properties to correspond to the win_name and
title. Also, the UIContainer is instantiated in the _new() function.

At the least the _construct() function should contain the
bonobo_ui_container_new() line.
Comment 1 Murray Cumming 2002-04-11 15:34:01 UTC
Ditto for BonoboDockBand.
Comment 2 Michael Meeks 2002-04-12 12:45:10 UTC
help me Murray, tell me what code you need / how to re-order this to
make it work for you; I can't really see what you want. Why not submit
a patch ? :-)
Comment 3 Murray Cumming 2002-04-12 13:27:34 UTC
Damn, I hate writing that properties code. I'll try. But I might end
up just fixing the _construct() functions because that's easier. It's
not the official Right Way, but it seems to be good enough for
libgnomeuimm.
Comment 4 Murray Cumming 2002-04-13 20:04:10 UTC
Created attachment 7697 [details] [review]
corrects bonobo_window_new() by using properties.
Comment 5 Murray Cumming 2002-04-13 20:05:22 UTC
OK. Here's a patch for BonoboWindow. I've removed
bonobo_window_construct() because it's only for glade and language
bindings, and we'd much rather be using g_object_new() anyway.
Comment 6 Murray Cumming 2002-04-14 12:20:01 UTC
Created attachment 7704 [details] [review]
moves DockBand code from _new to _instance_init().
Comment 7 Murray Cumming 2002-04-14 20:21:29 UTC
Created attachment 7706 [details] [review]
Makes _new() a wrapper for g_object_new(). Not tested - see ChangeLog
Comment 8 Murray Cumming 2002-04-14 20:22:18 UTC
That last patch is for BonoboSelector, by the way.
Comment 9 Murray Cumming 2002-04-15 14:32:32 UTC
Applied DockBand patch. Waiting for gnome2-release-team approval
before applying the other patches, because they remove the old-style
*_construct() functions.
Comment 10 Murray Cumming 2002-04-22 11:40:04 UTC
Applied BonoboWindow and BonoboSelector patches, adding back the
public_construct() methods because gnome2-release-team doesn't
understand their utter uselessness.
Comment 11 Jody Goldberg 2002-04-22 20:09:01 UTC
'Thou shalt not sling mud'
It does not make life easier.

I reccomended against this because it makes our libararies
incompatible between beta4 and rc1.  We need the damn api to stay
stable so that we can release.  Sure these routines are mostly
useless, but every change you make means another package that might
break.  Mark them deprecated and remove them in the next round.   The
cosmetic benefit of removing them is outweighed by the instability.
Comment 12 Murray Cumming 2002-04-22 23:16:08 UTC
Created attachment 7874 [details] [review]
selector patch 2
Comment 13 Murray Cumming 2002-04-22 23:16:57 UTC
Created attachment 7875 [details] [review]
BonoboWindow patch 2
Comment 14 Murray Cumming 2002-04-22 23:35:04 UTC
Here are the 2 revised patches, with the _construct() functions as
requested by Michael and the release team.

They were applied already but reverted because the BonoboWindow patch
broke some hacky code in Nautilus. I have created patch 79551 for
Nautilus to fix that.

 
Comment 15 Murray Cumming 2002-04-23 16:24:57 UTC
Created attachment 7891 [details] [review]
BonoboSelectro patch 2.1 - the last one was mostly empty.
Comment 16 Murray Cumming 2002-04-24 00:39:21 UTC
Both patches applied.