GNOME Bugzilla – Bug 614995
Does not compile with -DGSEAL_ENABLE
Last modified: 2010-06-03 16:18:20 UTC
This module does not build with -DGSEAL_ENABLE. See http://live.gnome.org/GnomeGoals/UseGseal . Note that maybe this report cannot be fixed yet, as GTK+ still misses some accessor functions (see bug 588389, bug 597610) needed for sealing. Also see http://live.gnome.org/GTK%2B/3.0/PendingSealings for current status.
Created attachment 158068 [details] [review] Partial patch Partial patch. Note: gtk_widget_get_window exists since 2.14 gtk_dialog_get_content_area exists since 2.14 gtk_widget_get_realized exists since 2.19.7 so if Dasher is meant to also support older GTK versions then GTK_VERSION_CHECK is needed...
This will be fun as in the lab the standard OS is ubuntu 8.04 LTS, which has gtk 2.12.9 - that is why I already have the check for gtk_show_uri() which is quite old. Roll on ubuntu 10.04 LTS...
Just say which GTK version you want to depend on so anything newer can use #if GTK_CHECK_VERSION(2,14,0) macro so people could provide patches (if there's some volunteers).
Patrick: Which gtk version is acceptable to depend on for a patch? 2.18 maybe?
Is there a hurry for this? (Any chance we can wait until ubuntu 10.04 LTS comes out at the end of the month? + a chance to have time to upgrade to it?)
Not a huge hurry, but the earlier the better as we will find missing accessors in gtk+ by that, and the later in the development cycle the harder it gets. Waiting for Ubuntu 10.04 sounds okay. I cross my fingers that dasher does not use some weird GTK+ API. ;-) Also wondering if simply *all* changes should use #if GTK_CHECK_VERSION so newer versions still run on Maemo4.
Created attachment 158944 [details] [review] Patch fixing nearly all issues Patch that fixes everything (without bumping the GTK+ requirement) except for direct access of allocation in Canvas.cpp that I am too stupid for: CCanvas::CCanvas(GtkWidget *pCanvas, CPangoCache *pPangoCache) : CDasherScreen(pCanvas->allocation.width, pCanvas->allocation.height) { m_iWidth = m_pCanvas->allocation.width; m_iHeight = m_pCanvas->allocation.height; Careful review required as I'm quite an idiot when it comes to coding. Review not urgent - just wanted to make sure that no "weird" GTK API usage takes place in Dasher that requires adding accessors to GTK that don't exist yet).
Review of attachment 158944 [details] [review]: Commited as http://git.gnome.org/browse/dasher/commit/?id=f66ff44381171f3f7a06e1e30abea461600c5107 Thank you!
Thanks! Any plans to fix the remaining issues soon?
Remainder fixed with http://git.gnome.org/browse/dasher/commit/?id=578d5f151ef0e705f4d52908e30439c20593aa21