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 119266 - property_widget () is unusable
property_widget () is unusable
Status: RESOLVED FIXED
Product: gnomemm
Classification: Deprecated
Component: libgnomecanvasmm
2.0
Other Linux
: Normal normal
: ---
Assigned To: gtkmm-forge
gtkmm-forge
Depends on:
Blocks:
 
 
Reported: 2003-08-06 14:48 UTC by Ole Laursen
Modified: 2004-12-22 21:47 UTC
See Also:
GNOME target: ---
GNOME version: ---



Description Ole Laursen 2003-08-06 14:48:26 UTC
Since widgets can't just be copied, the member

  Glib::PropertyProxy< Gtk::Widget > property_widget ()

for changing which widget the canvas item contains is unusable. It should
probably receive a pointer (or possibly a reference, I'm not sure what the
precedence for gtkmm dictates).
Comment 1 Ole Laursen 2003-08-06 15:07:51 UTC
Oops, I forgot to mention that the class this is all about is
Gnome::Canvas::Widget.
Comment 2 Murray Cumming 2003-12-19 14:10:30 UTC
It should probably be a Glib::RefPtr<Gtk::Widget> but that is not very
useful either. Would a
  Gtk::Widget* get_widget()
method be useful to you?

Do you think that a set_widget(Gtk::Widget*) is necessary as well?
Comment 3 Murray Cumming 2003-12-19 14:12:18 UTC
Ignore that. The property can be a Gtk::Widget*.
Comment 4 Murray Cumming 2003-12-20 10:45:41 UTC
Fixed on HEAD, for 2.6.