GNOME Bugzilla – Bug 744194
EggDateTime uses deprecated GtkArrow
Last modified: 2015-03-09 16:40:12 UTC
GtkArrow is deprecated. If you compile an app using EggDateTime with GTK_DISABLE_DEPRECATED you'll get errors like this: libegg/egg-datetime.c: In function 'egg_datetime_init': libegg/egg-datetime.c:504:4: warning: implicit declaration of function 'gtk_arrow_new' [-Wimplicit-function-declaration] arrow = gtk_arrow_new (GTK_ARROW_DOWN, GTK_SHADOW_OUT);
This can segfault on architectures where the size of a pointer is greater than the size of an integer, such as ia64 and amd64.
This code has been copied to (at least) seahorse (bug 744195)
Created attachment 296419 [details] [review] EggDateTime: Don't use deprecated GtkArrow I've copied the core of the rendering code from GTK+ to make this work. This probably means it's not themable - I'm not sure if that is an issue.
Setting GNOME 3.16 target here as it can trigger a crash in 744195
Review of attachment 296419 [details] [review]: Would have been less code (and themable) to do what the deprecation note recommends: Use GtkImage with pan-*-symbolic as icon name.