git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@23452
c3d73ce0-8a6f-49c7-b76d-
6d57e0e08775
{
m_fontData.m_fontColour = *col;
m_previewer->SetForegroundColour(*col);
{
m_fontData.m_fontColour = *col;
m_previewer->SetForegroundColour(*col);
}
}
m_previewer->Refresh();
}
}
m_previewer->Refresh();
for (size_t i = 0; i < m_filenames.GetCount(); i++)
{
for (size_t i = 0; i < m_filenames.GetCount(); i++)
{
+ filenames += wxT("file:");
filenames += m_filenames[i];
filenames += m_filenames[i];
- filenames += (wxChar) 0;
+ filenames += wxT("\r\n");
}
memcpy( buf, filenames.mbc_str(), filenames.Len() + 1 );
}
memcpy( buf, filenames.mbc_str(), filenames.Len() + 1 );
for (size_t i = 0; i < m_filenames.GetCount(); i++)
{
for (size_t i = 0; i < m_filenames.GetCount(); i++)
{
+ // This is junk in UTF-8
res += m_filenames[i].Len();
res += m_filenames[i].Len();
+ res += 5 + 2; // "file:" (5) + "\r\n" (2)
GtkPizza *pizza = GTK_PIZZA( widget );
if (gdk_event->window != pizza->bin_window) return FALSE;
GtkPizza *pizza = GTK_PIZZA( widget );
if (gdk_event->window != pizza->bin_window) return FALSE;
if (win->GetName())
{
wxPrintf( wxT("OnExpose from ") );
if (win->GetName())
{
wxPrintf( wxT("OnExpose from ") );
(int)gdk_event->area.width,
(int)gdk_event->area.height );
}
(int)gdk_event->area.width,
(int)gdk_event->area.height );
}
+
+ gtk_paint_box
+ (
+ win->m_wxwindow->style,
+ pizza->bin_window,
+ GTK_STATE_NORMAL,
+ GTK_SHADOW_OUT,
+ (GdkRectangle*) NULL,
+ win->m_wxwindow,
+ (char *)"button", // const_cast
+ 20,20,24,24
+ );
#endif
win->GetUpdateRegion() = wxRegion( gdk_event->region );
#endif
win->GetUpdateRegion() = wxRegion( gdk_event->region );
for (size_t i = 0; i < m_filenames.GetCount(); i++)
{
for (size_t i = 0; i < m_filenames.GetCount(); i++)
{
+ filenames += wxT("file:");
filenames += m_filenames[i];
filenames += m_filenames[i];
- filenames += (wxChar) 0;
+ filenames += wxT("\r\n");
}
memcpy( buf, filenames.mbc_str(), filenames.Len() + 1 );
}
memcpy( buf, filenames.mbc_str(), filenames.Len() + 1 );
for (size_t i = 0; i < m_filenames.GetCount(); i++)
{
for (size_t i = 0; i < m_filenames.GetCount(); i++)
{
+ // This is junk in UTF-8
res += m_filenames[i].Len();
res += m_filenames[i].Len();
+ res += 5 + 2; // "file:" (5) + "\r\n" (2)
GtkPizza *pizza = GTK_PIZZA( widget );
if (gdk_event->window != pizza->bin_window) return FALSE;
GtkPizza *pizza = GTK_PIZZA( widget );
if (gdk_event->window != pizza->bin_window) return FALSE;
if (win->GetName())
{
wxPrintf( wxT("OnExpose from ") );
if (win->GetName())
{
wxPrintf( wxT("OnExpose from ") );
(int)gdk_event->area.width,
(int)gdk_event->area.height );
}
(int)gdk_event->area.width,
(int)gdk_event->area.height );
}
+
+ gtk_paint_box
+ (
+ win->m_wxwindow->style,
+ pizza->bin_window,
+ GTK_STATE_NORMAL,
+ GTK_SHADOW_OUT,
+ (GdkRectangle*) NULL,
+ win->m_wxwindow,
+ (char *)"button", // const_cast
+ 20,20,24,24
+ );
#endif
win->GetUpdateRegion() = wxRegion( gdk_event->region );
#endif
win->GetUpdateRegion() = wxRegion( gdk_event->region );