There could be several reasons to still be using GTK+ v2. Some Linux distributions do not have GTK+ v3 yet in their stable release. Also there is not a bundled version of GTK+ v3 for Windows as of yet. It is still advisable to avoid the use of deprecated API calls so that when the need to convert to GTK+ v3 happens it can then be done with ease.

As already noted gtk_drawing_area_size() is deprecated and you should be using gtk_widget_set_size_request () instead.

The reason the code failed to compile is that the first argument of gtk_drawing_area_size() is of type GtkDrawingArea* and you are passing it a GObject* which are not the same.

Also the final argument to g_signal_connect() is a pointless bit of extra code and you could pass NULL instead.

Who is online

Users browsing this forum: Yahoo [Bot] and 4 guests

You cannot post new topics in this forumYou cannot reply to topics in this forumYou cannot edit your posts in this forumYou cannot delete your posts in this forumYou cannot post attachments in this forum