Changes to disable cut/copy with images (fixes NB#80355).
authorJose Dapena Paz <jdapena@igalia.com>
Mon, 11 Feb 2008 07:27:52 +0000 (07:27 +0000)
committerJose Dapena Paz <jdapena@igalia.com>
Mon, 11 Feb 2008 07:27:52 +0000 (07:27 +0000)
commitf4c8ac213f2217771e21aade64fbed16d618a77e
tree1520144b9910a7e75320feae6dadf4ce4bdc16a7
parent680a124cd675955c69b0aad1e14942cf32c9b159
Changes to disable cut/copy with images (fixes NB#80355).
* src/modest-text-utils.[ch], src/modest-ui-dimming-rules.c:
        * Refactored a method to check if a GtkTextBuffer has a valid
          cut/copy selection (currently it means it's not empty and does
          not contain images inside).
* src/modest-ui-actions.c:
        * Don't cut/copy if the selection is not valid.
* src/maemo/modest-msg-edit-window.c:
        * Disable default cut/copy handlers if no selection is valid.

pmo-trunk-r4155
src/maemo/modest-msg-edit-window.c
src/modest-text-utils.c
src/modest-text-utils.h
src/modest-ui-actions.c
src/modest-ui-dimming-rules.c