Klaus Ethgen <Klaus+geekie@...> writes:

GTK> The currently-selected object or text should be provided on the
GTK> clipboard identified by GDK_SELECTION_PRIMARY. Cut/copy/paste menu
GTK> items conceptually copy the contents of the GDK_SELECTION_PRIMARY
GTK> clipboard to the default clipboard, i.e. they copy the selection to
GTK> what the user sees as the clipboard.

Klaus> So?

Klaus> In your pasted text it is always called about
Klaus> GDK_SELECTION_PRIMARY. and never about
Klaus> GDK_SELECTION_CLIPBOARD. But it might be possible that I miss
Klaus> something there as my English might be not the best. For my
Klaus> understanding GDK_SELECTION_PRIMARY is the right one.

I just snipped too much from the quote.  The sentence preceding this one is:

GTK> Cut/copy/paste menu items and keyboard shortcuts should use the
GTK> default clipboard, returned by passing GDK_SELECTION_CLIPBOARD for
GTK> selection.  (GDK_NONE is supported as a synonym for
GTK> GDK_SELECTION_CLIPBOARD for backwards compatibility reasons.)

IMO, the two sentences together make it clear that (if needed)
GDK_SELECTION_PRIMARY should be activated _as soon as the selection is
set or changed_ in the source program.  In geeqie, that would mean
making the current code execute when user moves through the file list
(for example) with Up and Down keys.  OTOH when user activates the menu
item GDK_SELECTION_CLIPBOARD is the right one.

Klaus> The problem is that with the current solution, the most used way
Klaus> to copy around text under unix works, using the middle mouse
Klaus> button. Changing that might (I did not test it but that might be
Klaus> worth to test) end up in being unable to paste. Not all consoles
Klaus> knows Strg-V (what comes from the windows world, I think).

Well, all the Gtk conventions come from the Windows world :-)  And yes,
sometimes that is a problem.  But I still use lots of Gtk programs.

Klaus> I personally like to be able to copy the path to selection
Klaus> clipboard and paste it in the terminal where I mostly work. That
Klaus> does not work if I use Strg-C in some GUIs but it works with
Klaus> Geeqie.

You're right that simply changing the current code from
GDK_SELECTION_PRIMARY to GDK_SELECTION_CLIPBOARD would break your usage
while fixing mine.  It would still be the right thing to do IMO because
of the convention.  But we can keep the cake and eat it if we add new
hooks on selection change events, calling back the current code with
GDK_SELECTION_PRIMARY.  How's that?

Klaus> Well, it can, if it really fixes some and don't break others. It
Klaus> is even open source. Just make an patch for suggestion.

I can make a patch.  It probably won't be trivially short; where do you
want it posted?

Best regards, Ian.





------------------------------------------------------------------------------
Open source business process management suite built on Java and Eclipse
Turn processes into business applications with Bonita BPM Community Edition
Quickly connect people, data, and systems into organized workflows
Winner of BOSSIE, CODIE, OW2 and Gartner awards
http://p.sf.net/sfu/Bonitasoft
_______________________________________________
Geeqie-devel mailing list
Geeqie-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/geeqie-devel

Reply via email to