On 18/06/12 12:09 AM, cvs@abisource.com wrote:
> + // Set init Value
> + wchar_t szValue[BUFSIZE];
> + /* todo: Get Table handle
> + FV_View * pView = static_cast<FV_View *>(m_pApp->getLastFocussedFrame()->getCurrentView());
> + if (!pView)
> + return;
> + fl_FrameLayout * pFL = pView->getFrameLayout();
> + setHeight(pFL->getTableHeight());
> + setWidth(pFL->getTableWidth());
> + */
> + swprintf(szValue, L"%02.2f", getTableWidth());
> + gtk_entry_set_text( GTK_ENTRY(m_wWidth),szValue );
> +
> + swprintf(szValue, L"%02.2f", getTableHeight());
> + gtk_entry_set_text( GTK_ENTRY(m_wHeight),szValue );
Don't use wchar / swprintf on Gtk. We use UTF-8 as Gtk does.
I can't even figure out how that would compile as gtk_entry_set_text()
takes a const gchar* (which is a const char*)
Thanks,
Hub
Received on Mon Jun 18 22:57:42 2012
This archive was generated by hypermail 2.1.8 : Mon Jun 18 2012 - 22:57:43 CEST