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 615348 - Does not compile with -DGSEAL_ENABLE
Does not compile with -DGSEAL_ENABLE
Status: RESOLVED FIXED
Product: libegg
Classification: Other
Component: other
unspecified
Other Linux
: Normal normal
: ---
Assigned To: Libegg maintenance
Libegg maintenance
Depends on: 609763
Blocks: 585391
 
 
Reported: 2010-04-10 11:51 UTC by André Klapper
Modified: 2010-10-29 10:15 UTC
See Also:
GNOME target: ---
GNOME version: 2.29/2.30


Attachments
Build ToolbarEditor with GSEAL (10.79 KB, patch)
2010-08-14 13:21 UTC, Jonh Wendell
none Details | Review
Build ToolbarEditor with GSEAL #2nd try (10.94 KB, patch)
2010-08-14 14:23 UTC, Jonh Wendell
committed Details | Review

Description André Klapper 2010-04-10 11:51:16 UTC
This module does not build with -DGSEAL_ENABLE.
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.
Comment 1 Jonh Wendell 2010-08-14 13:21:08 UTC
Created attachment 167866 [details] [review]
Build ToolbarEditor with GSEAL
Comment 2 Christian Persch 2010-08-14 13:37:05 UTC
+  pos = gtk_toolbar_get_item_index (GTK_TOOLBAR (gtk_widget_get_parent (widget)),
 				    GTK_TOOL_ITEM (widget));
-  toolbar_pos = get_toolbar_position (etoolbar, widget->parent);
+  toolbar_pos = get_toolbar_position (etoolbar, gtk_widget_get_parent (widget));

Don't use the same getter repeatedly in the same function; if there's more than one call to it, create a temp variable to hold the result.

Is this patch a straight port from the gseal fixes from evince's copy of toolbar-editor, or an independent effort?
Comment 3 Jonh Wendell 2010-08-14 14:22:37 UTC
> Don't use the same getter repeatedly in the same function; if there's more than
> one call to it, create a temp variable to hold the result.

True, fixed in this new patch.
 
> Is this patch a straight port from the gseal fixes from evince's copy of
> toolbar-editor, or an independent effort?

Actually I was trying to build gtranslator with GSEAL enabled. Its copy of toolbareditor was blocking the build. So, instead of fix it there, I looked at "upstream" egg and as it's not fixed yet, I came up with this patch.
Comment 4 Jonh Wendell 2010-08-14 14:23:06 UTC
Created attachment 167868 [details] [review]
Build ToolbarEditor with GSEAL #2nd try
Comment 5 Jonh Wendell 2010-08-16 13:11:47 UTC
Comment on attachment 167868 [details] [review]
Build ToolbarEditor with GSEAL #2nd try

pushed to master, thanks.
Comment 6 Murray Cumming 2010-10-29 10:15:41 UTC
Closing then.