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 612491 - Does not compile with -DGSEAL_ENABLED
Does not compile with -DGSEAL_ENABLED
Status: RESOLVED FIXED
Product: metacity
Classification: Other
Component: general
trunk
Other Linux
: Normal normal
: ---
Assigned To: Metacity maintainers list
Metacity maintainers list
Depends on: 572332
Blocks: 585391 622285
 
 
Reported: 2010-03-10 20:38 UTC by André Klapper
Modified: 2012-01-12 16:18 UTC
See Also:
GNOME target: ---
GNOME version: 2.29/2.30


Attachments
Patch for METACITY_WINDOW_DEMO (3.92 KB, patch)
2010-05-10 17:58 UTC, André Klapper
committed Details | Review
Partial Patch (13.97 KB, patch)
2010-06-10 10:50 UTC, André Klapper
committed Details | Review
[GSEAL] Build with GSEAL enabled (26.09 KB, patch)
2010-06-14 15:54 UTC, Florian Müllner
none Details | Review
Add compatibility with GTK+ 2.20 (2.63 KB, patch)
2010-06-14 15:55 UTC, Florian Müllner
committed Details | Review
[GSEAL] Build with GSEAL enabled (25.67 KB, patch)
2010-07-15 14:13 UTC, Florian Müllner
none Details | Review
build: Use accessor functions (20.65 KB, patch)
2011-05-24 19:31 UTC, Florian Müllner
committed Details | Review

Description André Klapper 2010-03-10 20:38:28 UTC
This module does not build with -DGSEAL_ENABLED.
See http://live.gnome.org/GnomeGoals/UseGseal .

Note that maybe this report cannot be fixed yet, as GTK+ still misses some accessor functions (see bug 588389, bug 597610) needed for sealing.
Also see http://live.gnome.org/GTK%2B/3.0/PendingSealings for current status.

The jhbuild output posted here of course only lists the very first error when trying to compile.

metacity-window-demo.c: In function ‘on_realize_set_struts’:
metacity-window-demo.c:70: error: ‘GtkObject’ has no member named ‘flags’
metacity-window-demo.c:77: error: ‘GtkWidget’ has no member named ‘window’
metacity-window-demo.c: In function ‘set_gtk_window_struts’:
metacity-window-demo.c:106: error: ‘GtkObject’ has no member named ‘flags’
metacity-window-demo.c:107: error: ‘GtkWidget’ has no member named ‘window’
metacity-window-demo.c: In function ‘on_realize_set_type’:
metacity-window-demo.c:134: error: ‘GtkObject’ has no member named ‘flags’
metacity-window-demo.c:140: error: ‘GtkWidget’ has no member named ‘window’
metacity-window-demo.c: In function ‘set_gtk_window_type’:
metacity-window-demo.c:159: error: ‘GtkObject’ has no member named ‘flags’
metacity-window-demo.c:160: error: ‘GtkWidget’ has no member named ‘window’
metacity-window-demo.c: In function ‘on_realize_set_border_only’:
metacity-window-demo.c:174: error: ‘GtkObject’ has no member named ‘flags’
metacity-window-demo.c:176: error: ‘GtkWidget’ has no member named ‘window’
metacity-window-demo.c: In function ‘set_gtk_window_border_only’:
metacity-window-demo.c:191: error: ‘GtkObject’ has no member named ‘flags’
metacity-window-demo.c:192: error: ‘GtkWidget’ has no member named ‘window’
make[4]: *** [metacity-window-demo.o] Error 1
make[4]: Leaving directory `/home/andre/svn-gnome/metacity/src/tools'
make[3]: *** [all-recursive] Error 1
Comment 1 André Klapper 2010-05-08 19:39:40 UTC
ping - anybody planning to work on this?
Comment 2 André Klapper 2010-05-10 17:58:51 UTC
Created attachment 160749 [details] [review]
Patch for METACITY_WINDOW_DEMO

Bumps gtk+ requirement to 2.19.7 because of gtk_widget_get_realized
Comment 3 André Klapper 2010-05-29 01:48:33 UTC
ping - can I get a patch review?
Comment 4 André Klapper 2010-06-10 10:50:42 UTC
Created attachment 163269 [details] [review]
Partial Patch

Needs gtk 2.20 because of gtk_widget_get_realized, rest is 2.18.
Comment 5 Thomas Thurman 2010-06-11 04:11:34 UTC
Looking good: committed.  Sorry for the delay.
Comment 6 Thomas Thurman 2010-06-11 04:14:14 UTC
Review of attachment 163269 [details] [review]:

Looks good.  Committed.
Comment 7 Thomas Thurman 2010-06-11 04:14:18 UTC
Review of attachment 160749 [details] [review]:

Looks good.  Committed.
Comment 8 André Klapper 2010-06-11 07:58:10 UTC
Thanks!

Reopening as there's more work to do until it compiles.
Comment 9 Florian Müllner 2010-06-14 15:54:15 UTC
Created attachment 163604 [details] [review]
[GSEAL] Build with GSEAL enabled

Add missing parts - patch needs gdk_visual_get_depth() from current development version.
Comment 10 Florian Müllner 2010-06-14 15:55:11 UTC
Created attachment 163605 [details] [review]
Add compatibility with GTK+ 2.20

Add a compatibility macro for gdk_visual_get_depth().
Comment 11 Florian Müllner 2010-06-14 16:04:55 UTC
Last patch also attached to bug 572332 (in case someone wonders why there are two more defines in gdk-compat.h)
Comment 12 Thomas Thurman 2010-07-14 13:05:05 UTC
Review of attachment 163604 [details] [review]:

(Just to say that this is next on my list to review, but it's more than I can fit in the remaining time this morning)
Comment 13 Florian Müllner 2010-07-15 14:13:53 UTC
Created attachment 165963 [details] [review]
[GSEAL] Build with GSEAL enabled

Rebased to master / removed version bump from configure.in
Comment 14 Florian Müllner 2010-07-15 14:15:29 UTC
Comment on attachment 163605 [details] [review]
Add compatibility with GTK+ 2.20

Marking attachment 163605 [details] [review] obsolete in favor of the version attached to bug 572332.
Comment 15 Javier Jardón (IRC: jjardon) 2010-11-16 16:35:15 UTC
I think that we can close this bug as fixed now that nautilus depend on GTK+3, rigth?
Comment 16 Florian Müllner 2010-11-16 16:39:35 UTC
(In reply to comment #15)
> I think that we can close this bug as fixed now that nautilus depend on GTK+3,
> rigth?

Wrong bug? Metacity still depends on GTK+-2 ...
Comment 17 Javier Jardón (IRC: jjardon) 2011-01-31 12:16:56 UTC
Sorry Florian,

Anyway, What is the status of this? Seems that this is the latest GNOME module that still doesnt compile with -DGSEAL_ENABLED
Comment 18 Florian Müllner 2011-01-31 14:12:09 UTC
I didn't update those metacity patches since July, so all deprecations since then are not handled (notably, this was before the Benjamin's drawing stuff landed) - so it's horribly outdated. It should not be too hard to pick out the corresponding mutter patches and port them, but given that UI freeze is approaching in shell land, I won't have time to do it.
Comment 19 André Klapper 2011-03-03 20:51:58 UTC
[Removing GNOME3.0 target as decided in release-team meeting on March 03, 2011. "nice-to-have" categorisation for GNOME3.0]
Comment 20 Florian Müllner 2011-05-24 19:31:17 UTC
Created attachment 188513 [details] [review]
build: Use accessor functions

Direct struct access has been deprecated, so use the appropriate
replacements to build with GSEAL enabled.
Comment 21 Florian Müllner 2011-05-24 19:32:39 UTC
Would be nice to not let it bitrot again ... *hint, hint*
Comment 22 André Klapper 2012-01-12 15:20:03 UTC
Florian: Assuming that Metacity is unmaintained, I vote for just committing this.
Comment 23 Florian Müllner 2012-01-12 16:18:48 UTC
Attachment 188513 [details] pushed as 63834e0 - build: Use accessor functions

(In reply to comment #22)
> Florian: Assuming that Metacity is unmaintained, I vote for just committing
> this.

Sure, though the point of GSEAL (as I understand it) was to prepare for a GTK+-3 port, which is unlikely to happen for metacity at this point ...