Work to make attachments be opened in a single instance (raise window
authorJose Dapena Paz <jdapena@igalia.com>
Fri, 19 Oct 2007 09:10:40 +0000 (09:10 +0000)
committerJose Dapena Paz <jdapena@igalia.com>
Fri, 19 Oct 2007 09:10:40 +0000 (09:10 +0000)
commit6fb1323bf79f5fe514da3bbb44130fdfdbd8e46f
tree80e186dd32f1e5d5b142470a54c6afe0546b657f
parentd503265f638ddec511553fac29f8d4f32dbeff53
Work to make attachments be opened in a single instance (raise window
if they're already openened) (fixes NB#65279).
* src/widgets/modest-window-mgr.[ch]:
        * Now modest_window_mgr_register_header accepts an alt_uid
          parameter in case the header does not provide an uid.
* src/maemo/modest-msg-view-window.c:
        * Now we pass a hash base to the create_temp_stream method used
          to create a temporary file to view an attachment. This hash
          is used to open always the file in the same directory.
        * Now the attachment messages are opened passing a "attachment
          id" that works similar to a message id. This identifies the
          message in the window manager properly.
* src/modest-ui-actions.c, src/dbus_api/modest-dbus-callbacs.c:
        * Use new modest_window_mgr_register_header call.
* src/maemo/modest-maemo-utils.[ch]:
        * Now ..._create_temp_stream accepts an additional parameter
          hash_base. This hash_base is used to generate the "random"
          directory the temporary file is created. This is used to
          force files created from attachments get the same path.

pmo-trunk-r3529
src/dbus_api/modest-dbus-callbacks.c
src/maemo/modest-maemo-utils.c
src/maemo/modest-maemo-utils.h
src/maemo/modest-msg-view-window.c
src/modest-ui-actions.c
src/widgets/modest-window-mgr.c
src/widgets/modest-window-mgr.h