Bug 734605

Summary: some header files in anjuta-devel contain deprecated GTK symbols
Product: [Fedora] Fedora Reporter: Christian Krause <chkr>
Component: anjutaAssignee: Cosimo Cecchi <ccecchi>
Status: CLOSED CURRENTRELEASE QA Contact: Fedora Extras Quality Assurance <extras-qa>
Severity: unspecified Docs Contact:
Priority: unspecified    
Version: rawhideCC: ccecchi, gwync, jhs, mclasen, p.g.richardson, rpandit
Target Milestone: ---   
Target Release: ---   
Hardware: Unspecified   
OS: Unspecified   
Whiteboard:
Fixed In Version: Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2012-03-28 15:08:23 UTC Type: ---
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Embargoed:

Description Christian Krause 2011-08-30 21:42:20 UTC
Description of problem:
Some header files in anjuta-devel contain deprecated GTK symbols, at least:
/usr/include/libanjuta-3.0/libanjuta/anjuta-status.h contains
'GtkHBox' and 'GtkHBoxClass'.

Version-Release number of selected component (if applicable):
anjuta-devel-3.1.4-1.fc16.x86_64
gtk3-devel-3.1.12-1.fc16.x86_64

How reproducible:
100%

Steps to Reproduce:
- compile a project which uses the e.g. anjuta-status.h with disabled deprecated symbols (-DGTK_DISABLE_DEPRECATED)
  
Actual results:
compilation fails with something like this:

In file included from /usr/include/libanjuta-3.0/libanjuta/anjuta-plugin-manager.h:25:0,
                 from anjuta-about.c:28:
/usr/include/libanjuta-3.0/libanjuta/anjuta-status.h:40:2: error: unknown type name 'GtkHBox'
/usr/include/libanjuta-3.0/libanjuta/anjuta-status.h:46:2: error: unknown type name 'GtkHBoxClass'

Expected results:
no error messages, anjuta should avoid using deprecated GTK types

Additional info:
I have found the issue when trying to compile gtkpod in RAWHIDE. Temporarily I have now removed -DGTK_DISABLE_DEPRECATED from the CFLAGS.

Comment 1 Johannes Schmid 2011-08-31 04:32:10 UTC
Note that this is fixed in anjuta master (and at least in 3.1.90) and that the change was only introduced with gtk+ 3.2. In general compiling a release with GTK_DISABLE_DEPRECATED is flawed - use it when building from git if you like but please disable it in releases as you never know what will be deprecated next and the release is set in stone for the time being.

Comment 2 Paul Richardson 2011-09-04 22:27:28 UTC
Johannes,

Seems reasonable.

Can certainly make a note to do that, unless there are major objections.

Cheers

phantomjinx

(gtkpod dev)

Comment 3 Gwyn Ciesla 2012-03-28 15:08:23 UTC
This seems to be fixed as of anjuta 3.2.0, with gtkpod 2.1.1., gtk3 3.4, in fc16.  Re-open if not.