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 450574 - New tooltips API
New tooltips API
Status: RESOLVED FIXED
Product: gtkmm
Classification: Bindings
Component: general
2.11.x
Other Linux
: Normal enhancement
: ---
Assigned To: gtkmm-forge
gtkmm-forge
Depends on:
Blocks:
 
 
Reported: 2007-06-24 10:21 UTC by Marko Anastasov
Modified: 2007-08-31 09:42 UTC
See Also:
GNOME target: ---
GNOME version: 2.19/2.20


Attachments
New files and patch (5.47 KB, application/x-compressed-tar)
2007-06-24 10:22 UTC, Marko Anastasov
Details

Description Marko Anastasov 2007-06-24 10:21:59 UTC
Wrapped the Tooltip class and Widget's functions and signal.
Comment 1 Marko Anastasov 2007-06-24 10:22:52 UTC
Created attachment 90543 [details]
New files and patch
Comment 2 Murray Cumming 2007-06-29 07:54:12 UTC
Well done. Please commit. It looks quite straightforward.

I wonder if 
set_icon_from_stock(const Glib::ustring& stock_id, IconSize size)
should use a StockID. I forget when we use a string and when we use a StockID.

Are there no signals or properties or implemented interfaces?
Comment 3 Marko Anastasov 2007-06-29 23:00:51 UTC
(In reply to comment #2)
> I wonder if 
> set_icon_from_stock(const Glib::ustring& stock_id, IconSize size)
> should use a StockID. I forget when we use a string and when we use a StockID.

Right, should be StockID. It's used in most cases, except that ToolButton::get_stock_id() return a string. StockID has constructors for strings and BuiltInStockID, which can perform implicit conversion, and are very convenient.

Btw for properties (there is not stock_id property here, just for the sake of the discussion) it is a bit diverse:

action.hg:99:  _WRAP_PROPERTY("stock_id", StockID)
cellrendererpixbuf.hg:51:  _WRAP_PROPERTY("stock_id", Glib::ustring)
image.hg:111:  _WRAP_PROPERTY("stock", Glib::ustring)
statusicon.hg:152:  _WRAP_PROPERTY("stock", StockID)
toolbutton.hg:93:  _WRAP_PROPERTY("stock_id", Glib::ustring)

> Are there no signals or properties or implemented interfaces?

There is one signal, for Widget, query_tooltip. But (oops) I forgot to check the properties - there are three for Widget.

Committed, with these modifications included. I'll get to making an example soon.
Comment 4 Murray Cumming 2007-08-31 09:42:05 UTC
Closed because this was committed. An example would still be nice, but can be a separate patch.