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 624878 - Remove GTK (>=2.22) deprecated symbols
Remove GTK (>=2.22) deprecated symbols
Status: RESOLVED FIXED
Product: epiphany
Classification: Core
Component: General
2.30.x
Other Linux
: Normal normal
: ---
Assigned To: Epiphany Maintainers
Epiphany Maintainers
Depends on:
Blocks: 624653
 
 
Reported: 2010-07-20 21:45 UTC by Mario Sánchez Prada
Modified: 2010-08-30 20:50 UTC
See Also:
GNOME target: ---
GNOME version: ---


Attachments
Patch proposal (6.29 KB, patch)
2010-07-20 21:52 UTC, Mario Sánchez Prada
none Details | Review
Patch proposal (for master, aka 2.31.x series) (4.27 KB, patch)
2010-07-20 22:13 UTC, Mario Sánchez Prada
none Details | Review
Patch proposal (for 2.30.x branch) (2.27 KB, patch)
2010-07-20 22:48 UTC, Mario Sánchez Prada
none Details | Review

Description Mario Sánchez Prada 2010-07-20 21:45:50 UTC
Currently, in the following files (at least in the gnome-2-30 branch):

 src/bookmarks/ephy-bookmark-action.c
 src/bookmarks/ephy-bookmark-properties.c
 src/bookmarks/ephy-topic-action.c
 src/ephy-link-action.c
 src/ephy-location-action.c
 src/ephy-notebook.c
 src/ephy-window.c
 src/pdm-dialog.c

There are several occurrences of the GtkNotebookPage symbol (which should be replaced by gpointer) and the gtk_button_{press|release}() functions, which are deprecated from GTK 2.22 on.

So it would be needed to replace them for the proper replacement code.
Comment 1 Mario Sánchez Prada 2010-07-20 21:52:29 UTC
Created attachment 166241 [details] [review]
Patch proposal

Attaching a patch proposal to fix this issue. Not 100% sure but I'd bet this patch is also valid for the master branch.
Comment 2 Mario Sánchez Prada 2010-07-20 22:05:09 UTC
(In reply to comment #1)
> Created an attachment (id=166241) [details] [review]
> Patch proposal
> 
> Attaching a patch proposal to fix this issue. Not 100% sure but I'd bet this
> patch is also valid for the master branch.

I need to sleep :-).

Actually, this patch is for code currently in master branch, as ephy 2.30 doesn't require GTK 2.22 so that wouldn't be strictly needed in that version.

Hence, changing version and uploading a new patch compiling against that branch (where there was already part of the work done)
Comment 3 Mario Sánchez Prada 2010-07-20 22:13:09 UTC
Created attachment 166243 [details] [review]
Patch proposal (for master, aka 2.31.x series)

(In reply to comment #2)
> [...]
> Actually, this patch is for code currently in master branch, as ephy 2.30
> doesn't require GTK 2.22 so that wouldn't be strictly needed in that version.
> 
> Hence, changing version and uploading a new patch compiling against that branch
> (where there was already part of the work done)

Here is the new patch, which just replaces the gtk_button_pressed() and gtk_button_released() functions with the equivalent code, as the GtkNotebookPage issue was already fixed in master prior to this (so forget about that part in this bug's description.
Comment 4 Xan Lopez 2010-07-20 22:18:27 UTC
Comment on attachment 166241 [details] [review]
Patch proposal

So... the GtkNotebook stuff was already done by Diego on master (the correct thing to do is change them to GtkWidget AFAIK, not gpointer).

There is no replacement for the other deprecated functions, and the change you are doing is not correct. You are the third person that attemps to do this exact same patch FWIW, after me and Javier Jardón I think :D

See bug 610515 for details on that.
Comment 5 Mario Sánchez Prada 2010-07-20 22:47:27 UTC
(In reply to comment #4)
> (From update of attachment 166241 [details] [review])
> So... the GtkNotebook stuff was already done by Diego on master (the correct
> thing to do is change them to GtkWidget AFAIK, not gpointer).

After talking to Xan by IM we agreed that these changes should be as well in the 2.30.x branch (even though they are already in master branch), as they're backward compatible and therefore wouldn't hurt at all. 

Hence resetting version to 2.30.x once again (ping? pong!), so we can at least get that part in for gnome-2-30 branch.
 
> There is no replacement for the other deprecated functions, and the change you
> are doing is not correct. You are the third person that attemps to do this
> exact same patch FWIW, after me and Javier Jardón I think :D

Damm it, thanks for the info.

> See bug 610515 for details on that.

Thanks for the pointer
Comment 6 Mario Sánchez Prada 2010-07-20 22:48:46 UTC
Created attachment 166245 [details] [review]
Patch proposal (for 2.30.x branch)

Here we come again... good night!
Comment 7 Diego Escalante Urrelo (not reading bugmail) 2010-07-22 14:37:50 UTC
Review of attachment 166245 [details] [review]:

Looks good to me.
Comment 8 Mario Sánchez Prada 2010-08-10 09:10:36 UTC
(In reply to comment #7)
> Review of attachment 166245 [details] [review]:
> 
> Looks good to me.

I don't have commit permission. Could you please commit it for me?

Thanks!
Comment 9 Diego Escalante Urrelo (not reading bugmail) 2010-08-30 20:50:21 UTC
I'll push a gnome-2-30 update that includes this and other fixes. :D