summary |
shortlog |
log |
commit | commitdiff |
tree
raw |
patch |
inline | side by side (from parent 1:
2ade907)
Make more clean work around for OpenOffice:
Some applications ( OpenOffice at least ) sets owner at
begining of selection instead of after finishing selection. And
gtk_clipboard_wait_for_text() will fix state of X-Selection. So,
GTK clipboard will see only small part of real selection. For preventing
from this misbehaviour we will not try to get contents of selection -
just skip it as image etc. However, it's possible to delay
request of contents - but I don't know way to count correct
timeout or to get finalizing event (may be yet :) )
* request contents
*/
text = gtk_clipboard_wait_for_text(clipboard);
* request contents
*/
text = gtk_clipboard_wait_for_text(clipboard);
- if (text) /* be carefull - world has a lot of unexpected events :) */
+ /* be carefull - world has a lot of unexpected events :) */
+ if (text)
addMenuItem( (ClipboardDescr*)data, text );
}
addMenuItem( (ClipboardDescr*)data, text );
}