some Hildon integration work: use HildonProgram (for integration with the OS), HildonWindow (which has native appearance) and more native-like menus

git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@49841 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
Vadim Zeitlin
2007-11-12 00:25:09 +00:00
parent 60dd3c0916
commit e2f3bc4110
6 changed files with 64 additions and 2 deletions

View File

@@ -29,6 +29,10 @@
#include "wx/gtk/private.h"
#include "wx/apptrait.h"
#if wxUSE_LIBHILDON
#include <hildon-widgets/hildon-program.h>
#endif // wxUSE_LIBHILDON
#include <gdk/gdkx.h>
//-----------------------------------------------------------------------------
@@ -317,6 +321,15 @@ bool wxApp::OnInitGui()
}
}
#if wxUSE_LIBHILDON
m_hildonProgram = hildon_program_get_instance();
if ( !m_hildonProgram )
{
wxLogError(_("Unable to initialize Hildon program"));
return false;
}
#endif // wxUSE_LIBHILDON
return true;
}