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 671402 - Doesn't compile with -Werror=deprecated-declarations
Doesn't compile with -Werror=deprecated-declarations
Status: RESOLVED FIXED
Product: eog
Classification: Core
Component: general
git master
Other Linux
: Normal normal
: GNOME3.4
Assigned To: EOG Maintainers
EOG Maintainers
Depends on:
Blocks:
 
 
Reported: 2012-03-05 18:29 UTC by Adrian Zgorzałek
Modified: 2012-03-10 15:27 UTC
See Also:
GNOME target: ---
GNOME version: ---


Attachments
Partial fix (1.89 KB, patch)
2012-03-05 18:29 UTC, Adrian Zgorzałek
needs-work Details | Review

Description Adrian Zgorzałek 2012-03-05 18:29:58 UTC
Created attachment 209020 [details] [review]
Partial fix

Eog doesn't compile with this flag. One issue remaining: GtkStyle should be changed to GtkStyleContext, however I have no idea how to do it.
Comment 1 Felix Riemann 2012-03-07 18:18:25 UTC
Review of attachment 209020 [details] [review]:

I guess the GtkStyle issue is the style override in EogWindow when entering fullscreen mode.

It appears the problem this code solved (bug #425613) went away when we removed EogScrollView's parent-GtkFrame (bug 614807) in 2.32.
The GtkPaned which is now the parent of the ScrollView doesn't react to the padding style properties (contrary to GtkFrame) which are apparently the replacement for [xy]thickness.
So, that code can likely go away, considering it does nothing right now as gtk_widget_set_style is a NOOP in gtk3.

::: src/eog-scroll-view.c
@@ +1683,3 @@
+		device_manager = gdk_display_get_device_manager (gtk_widget_get_display (widget));
+		device = gdk_device_manager_get_client_pointer (device_manager);
+		gdk_window_get_device_position (gtk_widget_get_window (GTK_WIDGET (priv->display)), device, &x, &y, &mods);

This one could probably use the device from the motion event and thus save the detour through GdkDeviceManager.
Also, we don't seem to need the modifiers there.
Comment 2 Felix Riemann 2012-03-10 14:29:11 UTC
Pushed with modifications, taking the blame for the GtkStyle-matter if it breaks. :)

I am getting no deprecation warnings anymore during building now, so I hope it's fixed for you too (my GCC doesn't support that flag yet it seems).
Please re-open this bug if it does for eog-3.3.x/3.4.x. Thanks!


commit f9a5ec6522b616421f1f2d5d41f77c3c6ab788bd
Author: Felix Riemann <>
Date:   Sat Mar 10 15:14:33 2012 +0100

    Remove deprecated, unneeded and now effect-less GtkStyle-usage
    
    This stuff wasn't needed anymore since we dropped the GtkFrame as
    parent for the EogScrollView widget. Also it didn't have any effect
    at all in GTK+-3. Fixes more build warnings because of deprecations.
    
    https://bugzilla.gnome.org/show_bug.cgi?id=671402

commit c87818df0fe3ea5a5783426011925d2e2e752b24
Author: Adrian Zgorzałek <>
Date:   Wed Feb 29 22:08:31 2012 +0100

    Fix GDK deprecations
    
    Partially fixes compiling with -Werror-deprecated.
    
    http://bugzilla.gnome.org/show_bug.cgi?id=671402
---
This problem has been fixed in the development version. The fix will be available in the next major software release. Thank you for your bug report.
Comment 3 Adrian Zgorzałek 2012-03-10 15:27:02 UTC
Actually flag I mentioned earlier doesn't exist :-) It compiles fine with exisiting one.