GNOME Bugzilla – Bug 606266
build error, usage of deprecated GTK_WIDGET_TOPLEVEL
Last modified: 2010-01-07 01:18:49 UTC
GTK_WIDGET_TOPLEVEL has recently been marked as deprecated, this causes the build to fail with current GTK+ master. gtk.o: In function `finc_activate_cb': /scratch/jhbuild/src/gcalctool/src/gtk.c:683: undefined reference to `GTK_WIDGET_TOPLEVEL' collect2: ld returned 1 exit status /** * GTK_WIDGET_TOPLEVEL: * @wid: a #GtkWidget. * * Evaluates to %TRUE if the widget is a toplevel widget. * * Deprecated: 2.20: Use gtk_widget_is_toplevel() instead. */
*** Bug 606274 has been marked as a duplicate of this bug. ***
Thank you for reporting. I've fixed this in http://git.gnome.org/browse/gcalctool/commit/?id=e5ffafc77ac0e1ddc72d802bd411561eaed532b8 Instead of going the #ifdef route suggested in bug 606274, I bumped our required GTK version - we were already depending on 2.17, so the oldest stable GTK version that was usable with gcalctool was already 2.18, which is when gtk_widget_is_toplevel was introduced.