Re: Bonobo Clipboard, try #1



On Tue, 22 May 2001, ERDI Gergo wrote:

> Clipboard::copy_to_clipboard (PersistStream data_source)
> {
> 	if (pstream)
> 		pstream.unref ();
> 	pstream = data_source;
> 	pstream.ref ();
> 	
> 	clipboard_data.unref ();
> 	clipboard_data = create_stream_in_memory ();
> 	pstream.save (clipboard_data, "");

The thing missing from here is
	x_clipboard_data = create_stream_in_memory ();
	pstream.save (x_clipboard_data, "text/plain");
	copy_to_x_clipboard (x_clipboard_data);

> 
> 	string iid = pstream.getIID ();
> 	server_moniker = create_moniker ("iid:" . iid);
> }

-- 
   .--= ULLA! =---------------------.   `We are not here to give users what
   \     http://cactus.rulez.org     \   they want'  -- RMS, at GUADEC 2001
    `---= cactus cactus rulez org =---'
Support wildlife -- vote for an orgy.





[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]