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 632653 - [seek] Don't use deprecated combo box API
[seek] Don't use deprecated combo box API
Status: RESOLVED FIXED
Product: GStreamer
Classification: Platform
Component: gst-plugins-base
unspecified
Other Linux
: Normal blocker
: 0.10.31
Assigned To: GStreamer Maintainers
GStreamer Maintainers
Depends on:
Blocks:
 
 
Reported: 2010-10-20 08:43 UTC by Matthias Clasen
Modified: 2010-10-30 15:11 UTC
See Also:
GNOME target: ---
GNOME version: ---


Attachments
patch (1.68 KB, patch)
2010-10-20 08:43 UTC, Matthias Clasen
committed Details | Review
seek: The new combo box text API is available since 2.23.0 and 2.91.1 (2.38 KB, patch)
2010-10-20 09:02 UTC, Sebastian Dröge (slomo)
committed Details | Review
new patch (6.93 KB, patch)
2010-10-28 00:24 UTC, Matthias Clasen
committed Details | Review
seek: Define the new combobox API to the old functions if using older GTK (3.37 KB, patch)
2010-10-28 13:14 UTC, Sebastian Dröge (slomo)
committed Details | Review

Description Matthias Clasen 2010-10-20 08:43:37 UTC
Created attachment 172809 [details] [review]
patch

it is being replaced by GtkComboBoxText in GTK3
Comment 1 Sebastian Dröge (slomo) 2010-10-20 08:50:43 UTC
As this API was added in 2.24 we can only use it conditionally for now in an #if GTK_CHECK_VERSION() block. Will push the patch with this change after the release.
Comment 2 Sebastian Dröge (slomo) 2010-10-20 08:56:42 UTC
But of course it's not available in 2.91.0...
Comment 3 Sebastian Dröge (slomo) 2010-10-20 09:02:39 UTC
Created attachment 172811 [details] [review]
seek: The new combo box text API is available since 2.23.0 and 2.91.1

Only use it conditionally.
Comment 4 Sebastian Dröge (slomo) 2010-10-21 19:04:51 UTC
commit 10c693c696483b77f188abb06fe635b71c7fd120
Author: Sebastian Dröge <sebastian.droege@collabora.co.uk>
Date:   Wed Oct 20 11:01:59 2010 +0200

    seek: The new combo box text API is available since 2.23.0 and 2.91.1
    
    Only use it conditionally.

commit 95db0704703cfdb2fdb5ad2d1edf7f87a93a5812
Author: Matthias Clasen <mclasen@redhat.com>
Date:   Wed Oct 20 11:01:14 2010 +0200

    seek: Don't use deprecated combo box text API
    
    Fixes bug #632653.
Comment 5 Matthias Clasen 2010-10-28 00:24:14 UTC
The committed patch was incomplete, it seems. 
Here is a followup patch that makes things compile.
I didn't ifdef it up, since that would be a little excessive. It might be more
practical to define the new api for old gtk, like

#define gtk_combo_box_text_new gtk_combo_box_new_text
#define gtk_combo_box_text_append_text gtk_combo_box_append_text
#define GTK_COMBO_BOX_TEXT GTK_COMBO_BOX
Comment 6 Matthias Clasen 2010-10-28 00:24:44 UTC
Created attachment 173371 [details] [review]
new patch
Comment 7 Sebastian Dröge (slomo) 2010-10-28 13:14:23 UTC
Created attachment 173396 [details] [review]
seek: Define the new combobox API to the old functions if using older GTK
Comment 8 Matthias Clasen 2010-10-28 14:03:32 UTC
Looks good to me; of course, you should drop it once you can rely on a new enough gtk
Comment 9 Tim-Philipp Müller 2010-10-30 15:10:59 UTC
Thanks for the patches!

> Looks good to me; of course, you should drop it once you can rely on a new
> enough gtk

That probably won't be before Gtk+ 3.0 has hit the distros, so not before April/May 2011 most likely :)


commit bb7e76e88920269a1a0f8d73882e8161b38b5984
Author: Matthias Clasen <mclasen@redhat.com>
Date:   Sat Oct 30 16:03:18 2010 +0100

    examples: update some more code for new Gtk+ API, with fallback for older Gtk+ versions
    
    Move code to new Gtk+ 3.x / 2.9x API. We have defines in place
    already that make this code work fine on older Gtk+ 2.x.
    
    https://bugzilla.gnome.org/show_bug.cgi?id=632653

commit 9f9e5f80aa15c62b211a31142f7a2f22aa03c0e9
Author: Sebastian Dröge <sebastian.droege@collabora.co.uk>
Date:   Thu Oct 28 15:13:45 2010 +0200

    seek: Define the new combobox API to the old functions if using older GTK
    
    https://bugzilla.gnome.org/show_bug.cgi?id=632653