Re: [Geeqie-devel] Copy path problem
-BEGIN PGP SIGNED MESSAGE- Hash: SHA512 Hi, Am Mo den 14. Jul 2014 um 3:13 schrieb Ian Zimmerman: Klaus Ethgen Klaus+geekie@... writes: Ian You're right that simply changing the current code from Ian GDK_SELECTION_PRIMARY to GDK_SELECTION_CLIPBOARD would break your Ian usage while fixing mine. It would still be the right thing to do Ian IMO because of the convention. But we can keep the cake and eat it Ian if we add new hooks on selection change events, calling back the Ian current code with GDK_SELECTION_PRIMARY. How's that? Klaus You mean just adding also to put the stuff to the other Klaus clipboard? Maybe also to the third one too? Klaus (GDK_SELECTION_SECONDARY, I think) Not at the same places/times. I mean setting GDK_SELECTION_PRIMARY _as soon as the thing is selected_. That means setting a new callback in each window where it makes sense on an event like selchange or something (not sure how Gtk spells it). So a file name would be copied as soon as you click on one in the file list, for example. This is the right thing to do according to my reading of the doc, at least. Well, I don't like that way to have that automatically in buffer when selecting. First that produces a big overhead to selecting process but second and more sever, it will break many workflows with using text selections in shell. It is not expected for a image viewer to copy any to that buffer without being asked specific. Even worse, As I know, some of that buffers can hold any content; even full images. What should be in GDK_SELECTION_PRIMARY when you select multiple images? The paths to that images? The full image? Or the thumbnail? That is not obvious to solve. For the normal X cutpast buffer used by middle mouse it makes most sense to populate it via explicit menu like it is now. For the other buffers that are used by GUI applications it would make more sense to explicitly say what to copy. Maybe you want to insert a image from geeqie inside gimp. Maybe you want to have the path of the file in a spread sheet, ... By the way, Drag and drop works with Geeqie. Regards Klaus - -- Klaus Ethgen http://www.ethgen.ch/ pub 4096R/4E20AF1C 2011-05-16 Klaus Ethgen kl...@ethgen.de Fingerprint: 85D4 CA42 952C 949B 1753 62B3 79D0 B06F 4E20 AF1C -BEGIN PGP SIGNATURE- Version: GnuPG v1 iQGcBAEBCgAGBQJTw5wBAAoJEKZ8CrGAGfas7BAL/191QVYMvKss4KAb8yzxeUVO WFMVVixxfIm2ggUK/22dThgFb5uybL+dMSb4SBPP4mnwKkjoCPbCY2tRhE0EBbFb ZI321snAMAFKVs748McLWyTdfac9PpIhhHTkmpwsXtCAiwhJwfwuwaUsZvd5Uh/z C9xG9HVnOusjgCtQE43ElUYBiS3nvYoc4GpYeiQzMGCU0TnCtNquGvROTfeeNMNC 3/tccyoSyV33uyn6XLTrWp3yZiJjqspW0jg7koFVLnlYMPTo9anUX3ra0cuiGTYz +n38vGaOQo9+YF/nkcaJ20uVA/CUqO29fqfwA2+iYE+fE+mgbz3flUct1+05HePg UO6EUkO8oqMm435hD+72rKmTN8iWSCmiRgxOVqh1Qe7FI79dHinkKOAxRo9j67iP K2sYmTPPrG0x8v8UoaGTmtAqRSQKLbvRIMyPDTFRJPfA7O2X5K7aVnzEr86wEhuo Dh9Omft4Sv32gPnuYn32lEESDa3rXYcm+GBI7n1XDA== =qxqx -END PGP SIGNATURE- -- Want fast and easy access to all the code in your enterprise? Index and search up to 200,000 lines of code with a free copy of Black Duck#174; Code Sight#153; - the same software that powers the world's largest code search on Ohloh, the Black Duck Open Hub! Try it now. http://p.sf.net/sfu/bds ___ Geeqie-devel mailing list Geeqie-devel@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/geeqie-devel
Re: [Geeqie-devel] Copy path problem
Omari Stephens xsdg@... writes: xsdg Ian: what is your usecase? You jumped into the technical issues xsdg immediately, but as far as I can tell, you haven't actually xsdg explained what you're trying to accomplish. I think I mentioned it but probably too briefly, so I don't mind explaining in more detail. I run geeqie full screen. I pretty much have to in order to see the detail in my images. Now, that means if I need to do a file operation and if I want to do it in a shell, I have to either switch to another workspace or at least partially obscure geeqie with the shell window. So I'd much rather do that from geeqie itself, and in theory I can, in particular I can use New Folder buttons in file selection dialogs to create directories. But, if the name of the directory I want to create is based on one of the images, I want to copy and paste it and not type it from scratch; and to paste, I much prefer to use Control-v (which pastes the clipboard proper) to middle-clicking (which pastes the primary selection). The reason for that last preference is threefold: a. I am conditioned to expect middle-click to behave erractically, although this is probably just due to bugs in applications; b. I am the opposite of handy, so pointing devices in general are the stuff of my nightmares; and c. (related) I use a touchpad instead of a mouse, and middle-clicking is particularly clunky on touchpads, even when they have a real middle button as mine does (most don't). I hope that's enough of an explanation :-) -- Want fast and easy access to all the code in your enterprise? Index and search up to 200,000 lines of code with a free copy of Black Duck Code Sight - the same software that powers the world's largest code search on Ohloh, the Black Duck Open Hub! Try it now. http://p.sf.net/sfu/bds ___ Geeqie-devel mailing list Geeqie-devel@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/geeqie-devel