GNOME Bugzilla – Bug 600475
Usage of (newly) deprecated GTK+ functions
Last modified: 2011-02-23 19:22:50 UTC
commit da8dde446d8316bbc4e64498ac18bef8985a0ce0 Author: Christian Dywan <christian@twotoasts.de> Date: Tue Oct 27 22:39:30 2009 +0100 Deprecate functions according to deprecated GtkButton signals https://bugzilla.gnome.org/show_bug.cgi?id=599218 Has been commited to GTK+, and Nautilus is now failing with: nautilus-navigation-action.c: In function ‘proxy_button_press_event_cb’: nautilus-navigation-action.c:202: error: implicit declaration of function ‘gtk_button_pressed’ nautilus-navigation-action.c:202: error: nested extern declaration of ‘gtk_button_pressed’ nautilus-navigation-action.c: In function ‘proxy_button_release_event_cb’: nautilus-navigation-action.c:214: error: implicit declaration of function ‘gtk_button_released’ nautilus-navigation-action.c:214: error: nested extern declaration of ‘gtk_button_released’
Created attachment 146779 [details] [review] Replace deprecated gtk_button_pressed and gtk_button_released functions
Hmm, it seems to me that the signals are deprecated as well?
commit 6ff1e3881e070a0a235208cc10dfdc53e8faa0aa Author: Alexander Larsson <alexl@redhat.com> Date: Wed Nov 25 08:59:02 2009 +0100 Avoid deprecated gtk_button_pressed/released We replace these with direct use of deprecated signals, which is not ideal either. However, it makes us not reference depcrecated symbols and makes it works. I don't know how else to solve this.
I've reopened this bug to use non-deprecated signals
Created attachment 148472 [details] [review] Use 'button-press-event' and 'button-release-event'
Could some nautilus developer review this?
Review of attachment 148472 [details] [review]: Isn't it better to pass also the GdkEventButton to the signal?
Javier, any update on this?
@Cosimo: Seems that there is not a proper solution with current non-deprecate api. Take a look to the bug #610515 to track the progress on possible solutions/patches.
This is fixed in master.