# Fwd: GtkRecentChooser API glitch

**URL:** <https://www.ruby-forum.com/t/fwd-gtkrecentchooser-api-glitch/98223>\
**Category:** Ruby-Gnome 2\
**Created:** [July 13, 2006, 9:04am UTC](https://www.ruby-forum.com/t/fwd-gtkrecentchooser-api-glitch/98223 "2006-07-13T09:04:01Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![blueprint](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/b/cc9497/32.png) [@blueprint](https://www.ruby-forum.com/u/blueprint)\
**Post date:** [July 13, 2006, 9:04am UTC](https://www.ruby-forum.com/t/fwd-gtkrecentchooser-api-glitch/98223/1 "2006-07-13T09:04:01Z")

</div>

---------- Forwarded message ----------  
From: Emmanuele B. [removed\_email\_address@domain.invalid](mailto:removed_email_address@domain.invalid)  
Date: Jul 11, 2006 10:47 PM  
Subject: GtkRecentChooser API glitch  
To: GTK Development List [removed\_email\_address@domain.invalid](mailto:removed_email_address@domain.invalid)  
Cc: removed\_email\_address@domain.invalid, removed\_email\_address@domain.invalid

Hi all;

Unfortunately, when importing the GtkRecent API in GTK+ I made a mistake  
and these two functions have been erroneously left inside the  
GtkRecentChooser interface API:

gtk\_recent\_chooser\_set\_show\_numbers()  
gtk\_recent\_chooser\_get\_show\_numbers()

These two functions try to set the “show-numbers” property, which is  
installed only by GtkRecentChooserMenu and it’s not one of the  
properties defined by the GtkRecentChooser interface. Using these  
functions on a GtkRecentChooserMenu (or any other custom  
GtkRecentChooser implementation which defines a boolean “show-numbers”  
property) will yield the expected results, while using them on a  
GtkRecentChooser implementation that do not support the “show-numbers”  
property will result in a warning.

Since we are in a stable release we can’t mark those functions as  
deprecated, and we cannot remove them without breaking the API. You are  
advised not to use these functions: use the GtkRecentChooserMenu  
functions instead:

gtk\_recent\_chooser\_menu\_set\_show\_numbers()  
gtk\_recent\_chooser\_menu\_get\_show\_numbers()

Language binding authors should not bind those functions, but bind the  
GtkRecentChooserMenu functions instead.

These functions will be marked as deprecated as soon as GTK+ will branch  
off for the 2.11/2.12 cycle, so you’ll have to bear with this  
inconsistency for a short period of time.

Again, sorry for the mess.

Ciao,  
Emmanuele.

–  
Emmanuele B., E: removed\_email\_address@domain.invalid  
W: [http://www.emmanuelebassi.net](http://www.emmanuelebassi.net)  
B: [http://log.emmanuelebassi.net](http://log.emmanuelebassi.net)

* * *

gtk-devel-list mailing list  
removed\_email\_address@domain.invalid  
[http://mail.gnome.org/mailman/listinfo/gtk-devel-list](http://mail.gnome.org/mailman/listinfo/gtk-devel-list)

–  
Guillaume C. - [http://zarb.org/~gc/](http://zarb.org/~gc/)

* * *

Using Tomcat but need to do more? Need to support web services,  
security?  
Get stuff done quickly with pre-integrated technology to make your job  
easier  
Download IBM WebSphere Application Server v.1.0.1 based on Apache  
Geronimo  
[http://sel.as-us.falkag.net/sel?cmd=lnk&kid=120709&bid=263057&dat=121642](http://sel.as-us.falkag.net/sel?cmd=lnk&kid=120709&bid=263057&dat=121642)

---

<div class="post-metadata">

**Author:** ![blueprint](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/b/cc9497/32.png) [@blueprint](https://www.ruby-forum.com/u/blueprint)\
**Post date:** [July 13, 2006, 6:33pm UTC](https://www.ruby-forum.com/t/fwd-gtkrecentchooser-api-glitch/98223/2 "2006-07-13T18:33:58Z")

</div>

Hi,

On Thu, 13 Jul 2006 09:01:20 +0200  
“Guillaume C.” [removed\_email\_address@domain.invalid](mailto:removed_email_address@domain.invalid) wrote:

> Unfortunately, when importing the GtkRecent API in GTK+ I made a mistake  
> GtkRecentChooser implementation which defines a boolean “show-numbers”  
> gtk\_recent\_chooser\_menu\_get\_show\_numbers()
> 
> Language binding authors should not bind those functions, but bind the  
> GtkRecentChooserMenu functions instead.
> 
> These functions will be marked as deprecated as soon as GTK+ will branch  
> off for the 2.11/2.12 cycle, so you’ll have to bear with this  
> inconsistency for a short period of time.

rb\_undef\_method ?

–  
.:% Masao M.[removed\_email\_address@domain.invalid](mailto:removed_email_address@domain.invalid)

* * *

Using Tomcat but need to do more? Need to support web services,  
security?  
Get stuff done quickly with pre-integrated technology to make your job  
easier  
Download IBM WebSphere Application Server v.1.0.1 based on Apache  
Geronimo  
[http://sel.as-us.falkag.net/sel?cmd=lnk&kid=120709&bid=263057&dat=121642](http://sel.as-us.falkag.net/sel?cmd=lnk&kid=120709&bid=263057&dat=121642)
