fix clipboard brokeness on unix

git-svn-id: svn://10.0.0.236/trunk@44196 18797224-902f-48f8-a5cc-f745e15eee43
This commit is contained in:
pavlov%netscape.com
1999-08-24 00:43:12 +00:00
parent d3d2d0ed27
commit bfe3280055

View File

@@ -685,8 +685,6 @@ nsClipboard::SelectionReceiver (GtkWidget *aWidget,
aSD->data,
aSD->length);
mSelectionData.length = aSD->length;
printf(" Can't convert type %s (%ld) to string\n",
gdk_atom_name (aSD->type), aSD->type);
return;
}
}
@@ -752,7 +750,18 @@ void nsClipboard::SelectionGetCB(GtkWidget *widget,
nsString dataFlavor;
switch(aInfo)
// switch aInfo (atom) to our enum
int type = TARGET_NONE;
for (int i=0; i < TARGET_LAST; i++)
{
if (sSelTypes[i] == aInfo)
{
type = i;
break;
}
}
switch(type)
{
case GDK_TARGET_STRING:
case TARGET_TEXT_PLAIN: