clipboards tests
WM hint corrections (guesses) git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@2099 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
@@ -91,10 +91,8 @@ targets_selection_received( GtkWidget *WXUNUSED(widget),
|
||||
|
||||
for (unsigned int i=0; i<selection_data->length/sizeof(GdkAtom); i++)
|
||||
{
|
||||
/*
|
||||
char *name = gdk_atom_name (atoms[i]);
|
||||
if (name) printf( "Format available: %s.\n", name );
|
||||
*/
|
||||
/* char *name = gdk_atom_name (atoms[i]);
|
||||
if (name) printf( "Format available: %s.\n", name ); */
|
||||
|
||||
if (atoms[i] == clipboard->m_targetRequested)
|
||||
{
|
||||
|
@@ -145,16 +145,18 @@ bool wxDialog::Create( wxWindow *parent,
|
||||
|
||||
gtk_widget_realize( m_widget );
|
||||
|
||||
/* comments see wxFrame */
|
||||
|
||||
/* all this is for Motif Window Manager "hints" and is supposed to be
|
||||
recognized by other WM as well. not tested. */
|
||||
long decor = (long) GDK_DECOR_ALL;
|
||||
long func = (long) GDK_FUNC_ALL;
|
||||
if ((m_windowStyle & wxCAPTION) == 0)
|
||||
decor |= GDK_DECOR_TITLE;
|
||||
/*
|
||||
if ((m_windowStyle & wxMINIMIZE) == 0)
|
||||
func |= GDK_FUNC_MINIMIZE;
|
||||
if ((m_windowStyle & wxMAXIMIZE) == 0)
|
||||
func |= GDK_FUNC_MAXIMIZE;
|
||||
*/
|
||||
if ((m_windowStyle & wxSYSTEM_MENU) == 0)
|
||||
decor |= GDK_DECOR_MENU;
|
||||
if ((m_windowStyle & wxMINIMIZE_BOX) == 0)
|
||||
|
@@ -233,10 +233,12 @@ bool wxFrame::Create( wxWindow *parent, wxWindowID id, const wxString &title,
|
||||
long func = (long) GDK_FUNC_ALL;
|
||||
if ((m_windowStyle & wxCAPTION) == 0)
|
||||
decor |= GDK_DECOR_TITLE;
|
||||
/*
|
||||
if ((m_windowStyle & wxMINIMIZE) == 0)
|
||||
func |= GDK_FUNC_MINIMIZE;
|
||||
if ((m_windowStyle & wxMAXIMIZE) == 0)
|
||||
func |= GDK_FUNC_MAXIMIZE;
|
||||
*/
|
||||
if ((m_windowStyle & wxSYSTEM_MENU) == 0)
|
||||
decor |= GDK_DECOR_MENU;
|
||||
if ((m_windowStyle & wxMINIMIZE_BOX) == 0)
|
||||
|
@@ -91,10 +91,8 @@ targets_selection_received( GtkWidget *WXUNUSED(widget),
|
||||
|
||||
for (unsigned int i=0; i<selection_data->length/sizeof(GdkAtom); i++)
|
||||
{
|
||||
/*
|
||||
char *name = gdk_atom_name (atoms[i]);
|
||||
if (name) printf( "Format available: %s.\n", name );
|
||||
*/
|
||||
/* char *name = gdk_atom_name (atoms[i]);
|
||||
if (name) printf( "Format available: %s.\n", name ); */
|
||||
|
||||
if (atoms[i] == clipboard->m_targetRequested)
|
||||
{
|
||||
|
@@ -145,16 +145,18 @@ bool wxDialog::Create( wxWindow *parent,
|
||||
|
||||
gtk_widget_realize( m_widget );
|
||||
|
||||
/* comments see wxFrame */
|
||||
|
||||
/* all this is for Motif Window Manager "hints" and is supposed to be
|
||||
recognized by other WM as well. not tested. */
|
||||
long decor = (long) GDK_DECOR_ALL;
|
||||
long func = (long) GDK_FUNC_ALL;
|
||||
if ((m_windowStyle & wxCAPTION) == 0)
|
||||
decor |= GDK_DECOR_TITLE;
|
||||
/*
|
||||
if ((m_windowStyle & wxMINIMIZE) == 0)
|
||||
func |= GDK_FUNC_MINIMIZE;
|
||||
if ((m_windowStyle & wxMAXIMIZE) == 0)
|
||||
func |= GDK_FUNC_MAXIMIZE;
|
||||
*/
|
||||
if ((m_windowStyle & wxSYSTEM_MENU) == 0)
|
||||
decor |= GDK_DECOR_MENU;
|
||||
if ((m_windowStyle & wxMINIMIZE_BOX) == 0)
|
||||
|
@@ -233,10 +233,12 @@ bool wxFrame::Create( wxWindow *parent, wxWindowID id, const wxString &title,
|
||||
long func = (long) GDK_FUNC_ALL;
|
||||
if ((m_windowStyle & wxCAPTION) == 0)
|
||||
decor |= GDK_DECOR_TITLE;
|
||||
/*
|
||||
if ((m_windowStyle & wxMINIMIZE) == 0)
|
||||
func |= GDK_FUNC_MINIMIZE;
|
||||
if ((m_windowStyle & wxMAXIMIZE) == 0)
|
||||
func |= GDK_FUNC_MAXIMIZE;
|
||||
*/
|
||||
if ((m_windowStyle & wxSYSTEM_MENU) == 0)
|
||||
decor |= GDK_DECOR_MENU;
|
||||
if ((m_windowStyle & wxMINIMIZE_BOX) == 0)
|
||||
|
@@ -440,7 +440,7 @@ wxLayoutWindow::Paste(void)
|
||||
if (wxTheClipboard->Open())
|
||||
{
|
||||
wxTextDataObject data;
|
||||
if (wxTheClipboard->IsSupported(wxDF_TEXT))
|
||||
if (wxTheClipboard->IsSupported( data.GetFormat() ))
|
||||
{
|
||||
wxTheClipboard->GetData(&data);
|
||||
text += data.GetText();
|
||||
|
Reference in New Issue
Block a user