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 569485 - [PATCH] Remove sexy-icon-entry
[PATCH] Remove sexy-icon-entry
Status: RESOLVED FIXED
Product: gedit
Classification: Applications
Component: general
git master
Other Linux
: Normal normal
: ---
Assigned To: Gedit maintainers
Gedit maintainers
Depends on:
Blocks: 585385
 
 
Reported: 2009-01-28 17:43 UTC by Ignacio Casal Quinteiro (nacho)
Modified: 2009-06-10 21:25 UTC
See Also:
GNOME target: ---
GNOME version: ---


Attachments
sexy-entry (2.59 KB, patch)
2009-01-28 17:45 UTC, Ignacio Casal Quinteiro (nacho)
none Details | Review
sexy-entry v2 (3.46 KB, patch)
2009-01-28 21:03 UTC, Ignacio Casal Quinteiro (nacho)
none Details | Review
sexy-entry v3 (3.48 KB, patch)
2009-01-28 21:10 UTC, Ignacio Casal Quinteiro (nacho)
none Details | Review
sexy-entry v4 (3.48 KB, patch)
2009-01-29 10:42 UTC, Ignacio Casal Quinteiro (nacho)
none Details | Review
sexy-entry v5 (3.60 KB, patch)
2009-01-30 11:43 UTC, Ignacio Casal Quinteiro (nacho)
none Details | Review
sexy-entry v5.2 (3.43 KB, patch)
2009-01-30 11:47 UTC, Ignacio Casal Quinteiro (nacho)
none Details | Review
sexy-entry v6 (3.49 KB, patch)
2009-01-30 14:22 UTC, Ignacio Casal Quinteiro (nacho)
committed Details | Review

Description Ignacio Casal Quinteiro (nacho) 2009-01-28 17:43:49 UTC
Patch in the next comment.
Comment 1 Ignacio Casal Quinteiro (nacho) 2009-01-28 17:45:15 UTC
Created attachment 127411 [details] [review]
sexy-entry

This patch is for gtk+ 2.15.0 not sure if the func names changed in 2.15.1. BTW after applying the patch you have to remove the sexy-icon-entry.[ch]
Comment 2 Paolo Borelli 2009-01-28 18:09:02 UTC
Thanks nacho looks good from a quick look... maybe for 2.24 we should use some #ifdefs since it seems a bit silly to require the latest gtk just for this.

What do you think?
Comment 3 Ignacio Casal Quinteiro (nacho) 2009-01-28 20:03:41 UTC
You're right, I'll do it now.
Comment 4 Ignacio Casal Quinteiro (nacho) 2009-01-28 21:03:57 UTC
Created attachment 127417 [details] [review]
sexy-entry v2

This check for gtk+ 2.15.0 in every places. Not sure if you want to check it too in configure.ac but I added it, it can be removed in a future or if you prefer I can do it building sexy-icon-entry.[ch] even if it is not neccessary.
Comment 5 Ignacio Casal Quinteiro (nacho) 2009-01-28 21:10:38 UTC
Created attachment 127418 [details] [review]
sexy-entry v3

Sorry, in the previous I forgot the icon creation. Now should be ok.
Comment 6 Ignacio Casal Quinteiro (nacho) 2009-01-29 10:42:26 UTC
Created attachment 127443 [details] [review]
sexy-entry v4

Fixed detection.
Comment 7 Ignacio Casal Quinteiro (nacho) 2009-01-30 11:43:11 UTC
Created attachment 127529 [details] [review]
sexy-entry v5

This one is more clear but it duplicates some code.
Comment 8 Ignacio Casal Quinteiro (nacho) 2009-01-30 11:47:04 UTC
Created attachment 127531 [details] [review]
sexy-entry v5.2

Same as the previous one with a little fix.
Comment 9 jessevdk@gmail.com 2009-01-30 12:12:32 UTC
The condition in configure.ac doesn't seem to work. If I change it on the other hand to something like this:

----
dnl FIXME: Remove this when removing sexy-icon-entry
if $PKG_CONFIG --atleast-version 2.15.0 gtk+-2.0; then
        gtkatleast=
else
        gtkatleast=no
fi

AM_CONDITIONAL(BUILD_SEXY, test "$gtkatleast" = "no")
---

It does work (e.g. compiles fine on my non gtk 2.14.x machine)
Comment 10 Ignacio Casal Quinteiro (nacho) 2009-01-30 14:22:02 UTC
Created attachment 127541 [details] [review]
sexy-entry v6

This uses the fix from jesse
Comment 11 Ignacio Casal Quinteiro (nacho) 2009-01-30 14:31:17 UTC
2009-01-30  Ignacio Casal Quinteiro  <nacho.resa@gmail.com>

        * gedit/gedit-view.c:
        * gedit/Makefile.am:
        * configure.ac:
        Don't use sexy-icon-entry when gtk+ >= 2.15.0. (Fixes bug #569485)