GNOME Bugzilla – Bug 631654
unable to compile due to a deprecated gtk+ function
Last modified: 2010-10-23 11:59:34 UTC
the function `gtk_dialog_set_has_separator` is deprecated in gtk+ 3.0
Created attachment 171932 [details] [review] remove a deprecated gtk+ 3.0 function
Thanks, I've pushed it with some small modifications (I made calling it conditional instead of removing it completely).
I think the condition "#if ! GTK_CHECK_VERSION(2, 91, 0)" is not the good one and I still get the compilation error on my setup with it. Actually, I'm not using gtk+ 3.0 but gtk+2 with "GTK_DISABLE_DEPRECATED" defined by default. There is only one call to a gtk+ deprecated function and it's this one. I tought that would be a good idea to get rid of it. Bu if you really want to make it conditional, may I suggest this test instead : #if (GTK_MAJOR_VERSION < 3) && !GTK_DISABLE_DEPRECATED
I've changed it to ! GTK_CHECK_VERSION (2, 22, 0) which I think should be fine