modest
13 years agoFix DBUS mailto: test
Alberto Garcia [Tue, 23 Oct 2007 09:19:56 +0000 (09:19 +0000)]
Fix DBUS mailto: test

pmo-trunk-r3558

13 years ago * Fixed an invalid g_object_ref/unref
Sergio Villar Senin [Tue, 23 Oct 2007 06:35:59 +0000 (06:35 +0000)]
* Fixed an invalid g_object_ref/unref
* Added a refilter whenever an account is added/removed/modified in the folder view widget (following a Philip's comment)

pmo-trunk-r3557

13 years ago* Offer the account creation in the MailTo DBUS handler
Alberto Garcia [Mon, 22 Oct 2007 15:33:51 +0000 (15:33 +0000)]
* Offer the account creation in the MailTo DBUS handler
* Fixed memory leaks

pmo-trunk-r3556

13 years agoSimplified the MailTo DBUS handler
Alberto Garcia [Mon, 22 Oct 2007 15:02:50 +0000 (15:02 +0000)]
Simplified the MailTo DBUS handler

pmo-trunk-r3555

13 years agoMore refactoring of the ComposeMail DBUS handler, now everything
Alberto Garcia [Mon, 22 Oct 2007 14:56:42 +0000 (14:56 +0000)]
More refactoring of the ComposeMail DBUS handler, now everything
is done in modest-ui-actions

pmo-trunk-r3554

13 years agoRefactored the code of modest_ui_actions_on_new_msg() and
Alberto Garcia [Mon, 22 Oct 2007 14:22:21 +0000 (14:22 +0000)]
Refactored the code of modest_ui_actions_on_new_msg() and
the ComposeMessage DBUS handler

pmo-trunk-r3553

13 years ago * Fixes NB#65926, do not show Junk numbers (actually bytes transferred) when moving...
Sergio Villar Senin [Mon, 22 Oct 2007 07:42:27 +0000 (07:42 +0000)]
* Fixes NB#65926, do not show Junk numbers (actually bytes transferred) when moving messages. Now we show "Receiving x of y and the progress bar shows the amount of bytes transferred
* Removed some commented code

pmo-trunk-r3544

13 years ago * Do not modify the header view contents style when new messages are received
Sergio Villar Senin [Fri, 19 Oct 2007 17:06:33 +0000 (17:06 +0000)]
* Do not modify the header view contents style when new messages are received

pmo-trunk-r3543

13 years ago * Remove some invalid code from the D-Bus callback, the refresh of the curren...
Sergio Villar Senin [Fri, 19 Oct 2007 16:51:22 +0000 (16:51 +0000)]
    * Remove some invalid code from the D-Bus callback, the refresh of the current folder was automatically done by the ui acti
on
        * Do not refresh the current folder when send&receive unless we're viewing any window
        * Reverted a method to static

pmo-trunk-r3542

13 years ago * Added a dbus test that updates (Send&Receive) the default account
Sergio Villar Senin [Fri, 19 Oct 2007 16:37:27 +0000 (16:37 +0000)]
* Added a dbus test that updates (Send&Receive) the default account

pmo-trunk-r3541

13 years agoSimplified the mailto uri parser
Alberto Garcia [Fri, 19 Oct 2007 16:04:54 +0000 (16:04 +0000)]
Simplified the mailto uri parser

pmo-trunk-r3540

13 years ago* Removed unused struct SendMailIdleData
Alberto Garcia [Fri, 19 Oct 2007 14:58:43 +0000 (14:58 +0000)]
* Removed unused struct SendMailIdleData
* Reworked a bit the code of uri_parse_mailto()

pmo-trunk-r3539

13 years agoIn mailto: urls parameters after the first one are separated by '&',
Alberto Garcia [Fri, 19 Oct 2007 14:06:14 +0000 (14:06 +0000)]
In mailto: urls parameters after the first one are separated by '&',
not by '?'

pmo-trunk-r3538

13 years ago* src/modest-ui-actions.c:
Jose Dapena Paz [Fri, 19 Oct 2007 12:49:42 +0000 (12:49 +0000)]
* src/modest-ui-actions.c:
        * Now, for saving or sending messages, we use the from part of
          the message information in editor (fixes NB#65189).
        * We also don't ignore the from in the message in drafts folder
          when opening an editor from it.

pmo-trunk-r3537

13 years agoSimplified the code of the dbus 'mailto:' handler, to remove redundant
Alberto Garcia [Fri, 19 Oct 2007 12:42:25 +0000 (12:42 +0000)]
Simplified the code of the dbus 'mailto:' handler, to remove redundant
code and reuse the handler written for the "Compose" action.

Fixed usage of 'mailto:' parameters (they were not being actually
used).

pmo-trunk-r3536

13 years agoadded bugs fixed for week 43.
Vivek Sekar [Fri, 19 Oct 2007 12:19:09 +0000 (12:19 +0000)]
added bugs fixed for week 43.

pmo-trunk-r3534

13 years agoWork to make attachments be opened in a single instance (raise window
Jose Dapena Paz [Fri, 19 Oct 2007 09:10:40 +0000 (09:10 +0000)]
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

13 years agoRemoved unused variable
Alberto Garcia [Thu, 18 Oct 2007 12:42:59 +0000 (12:42 +0000)]
Removed unused variable

pmo-trunk-r3528

13 years ago* src/dbus_api/modest-dbus-callbacks.c:
Jose Dapena Paz [Thu, 18 Oct 2007 10:20:25 +0000 (10:20 +0000)]
* src/dbus_api/modest-dbus-callbacks.c:
* Now get_folders method also obtains folders from mmc
  (fixes NB#65058).
* src/modest-tny-account-store.[ch]:
* Added new method to obtain the mmc account.

pmo-trunk-r3527

13 years agoAdded fixed bugs for week 42 release.
Vivek Sekar [Wed, 17 Oct 2007 11:54:27 +0000 (11:54 +0000)]
Added fixed bugs for week 42 release.

pmo-trunk-r3524

13 years agoCheck properly the contents of the clipboard before
Alberto Garcia [Wed, 17 Oct 2007 11:38:46 +0000 (11:38 +0000)]
Check properly the contents of the clipboard before
deciding whether to dim the "Paste" menu option
Fixes NB#73404

pmo-trunk-r3523

13 years agoThis commit includes a complete refactor of ModestMsgView. Now
Jose Dapena Paz [Wed, 17 Oct 2007 11:19:37 +0000 (11:19 +0000)]
This commit includes a complete refactor of ModestMsgView. Now
ModestMsgView is an interface, and we have ModestGtkhtmlMsgView and
ModestMozembedMsgView.
* src/modest-tny-platform-factory.c:
        * Get ModestMozembedMsgView from factory, if enabled.
* src/modest-msg-view.[ch]:
        * Now this is an interface. ModestGtkhtmlMsgView and
          ModestMozembedMsgView implement this interface. This
          way we make easier to use one or another implementation.
* Added src/widgets/modest-gtkhtml-msg-view.[ch]:
        * ModestGtkhtmlMsgView contains the old ModestMsgView widget
          (with all the gtkhtml related things). It implements the
          new ModestMsgView interface, and uses all available
          interfaces (zoomable, isearch view, etc).
        * Reorganized the code, to separate the internal code from
          interfaces implementation.
* Added src/widgets/modest-mozembed-mime-part-view.[ch]:
        * Inherits from TnyMozembedMimePartView, adding implementation
          for ModestZoomable, ModestMimePartView, and stub
          implementation of  ModestISearchView.
* Added src/widgets/modest-mozembed-msg-view.[ch]:
        * Implementation of ModestMsgView interface using mozembed
          backend. It's not finished nor really working, but it's
          a technology preview.
* src/widgets/Makefile.am, src/Makefile.am:
        * Added new widgets.
* src/maemo/modest-msg-view-window.c:
        * Removed dependency on gtkhtml code. Update access to
          ModestMsgView to use the proper interfaces.
        * Now construct does not use a msg parameter. Message is set
          after construction.
        * Update event names of ModestMsgView.
* configure.ac:
        * Add mozembed parameter, to be able to activate mozembed
          support.

pmo-trunk-r3521

13 years ago * Fixed a critical when drag&drop, we're not considering that we can hover an account
Sergio Villar Senin [Wed, 17 Oct 2007 10:47:15 +0000 (10:47 +0000)]
* Fixed a critical when drag&drop, we're not considering that we can hover an account

pmo-trunk-r3520

13 years agoMessages in the Outbox are opened with the viewer, not
Alberto Garcia [Wed, 17 Oct 2007 10:46:05 +0000 (10:46 +0000)]
Messages in the Outbox are opened with the viewer, not
with the editor
Fixes NB#65333

pmo-trunk-r3519

13 years ago* src/maemo/modest-msg-edit-window.c:
Jose Dapena Paz [Wed, 17 Oct 2007 09:44:50 +0000 (09:44 +0000)]
* src/maemo/modest-msg-edit-window.c:
* Now, on saving to drafts, we unregister the window (with the
  old header) and register it again (with the new header). If
  the window has been destroyed previously, we don't register
  (fixes NB#66687).

pmo-trunk-r3518

13 years agoHighlight the first message when selecting a new folder, but don't let
Alberto Garcia [Wed, 17 Oct 2007 08:25:33 +0000 (08:25 +0000)]
Highlight the first message when selecting a new folder, but don't let
it get the active focus.
Fixes NB#58917

pmo-trunk-r3517

13 years ago * Fixed a bug in the easysetup, the connection specific SMTP servers dialog was...
Sergio Villar Senin [Tue, 16 Oct 2007 17:27:24 +0000 (17:27 +0000)]
* Fixed a bug in the easysetup, the connection specific SMTP servers dialog was not modal

pmo-trunk-r3516

13 years ago* src/maemo/easysetup/modest-easysetup-wizard.c:
Jose Dapena Paz [Tue, 16 Oct 2007 16:58:42 +0000 (16:58 +0000)]
* src/maemo/easysetup/modest-easysetup-wizard.c:
        * Check if we've got presets to prevent a crash if not.
        * Set a size request of service provider combo on startup, as
          this will be loaded later.
        * Now we load the service providers from presets in an idle.
          This way, we show the wizard immediately, instead of showing
          it with the described delay (fixes NB#64324).
        * We catch delete event, to prevent strange behavior when the
          user closes the window with escape key.

pmo-trunk-r3515

13 years ago * The account dialog is now modal (registered as modal in the window manager) this...
Sergio Villar Senin [Tue, 16 Oct 2007 15:50:24 +0000 (15:50 +0000)]
* The account dialog is now modal (registered as modal in the window manager) this prevents the application "hang" when the dialog is shown bellow any other
* The accounts are now really disconnected when edited and reconnected before finishing the edition

pmo-trunk-r3514

13 years agoDim the "Insert Image" menu option when composing a message in plain
Alberto Garcia [Tue, 16 Oct 2007 14:00:15 +0000 (14:00 +0000)]
Dim the "Insert Image" menu option when composing a message in plain
text mode
Fixes NB#73392

pmo-trunk-r3513

13 years ago* fix warning
Dirk-Jan C. Binnema [Tue, 16 Oct 2007 09:40:34 +0000 (09:40 +0000)]
* fix warning

pmo-trunk-r3509

13 years agoAllow drag and drop only if the user begins tapping on a message that
Alberto Garcia [Tue, 16 Oct 2007 09:21:59 +0000 (09:21 +0000)]
Allow drag and drop only if the user begins tapping on a message that
is already selected. If not, just let him select items by dragging the
stylus.
Fixes NB#65145

pmo-trunk-r3508

13 years ago* revert to the in-place 'modest_text_utils_get_display_address',
Dirk-Jan C. Binnema [Tue, 16 Oct 2007 08:50:40 +0000 (08:50 +0000)]
* revert to the in-place 'modest_text_utils_get_display_address',
  and make it a bit faster.

pmo-trunk-r3507

13 years ago * Fixed modest_text_utils_get_display_address, now the original string is not modifi...
Sergio Villar Senin [Mon, 15 Oct 2007 11:48:03 +0000 (11:48 +0000)]
* Fixed modest_text_utils_get_display_address, now the original string is not modified and the function returns new memory
* Added notification removal support
* Added notification grouping support
* Replaced the old modest_platform_on_new_header_received by modest_platform_on_new_headers_received
* Fixed ModestConf's set_list method

pmo-trunk-r3505

13 years agoFix to pass lintian checks.
Vivek Sekar [Mon, 15 Oct 2007 10:50:47 +0000 (10:50 +0000)]
Fix to pass lintian checks.

pmo-trunk-r3502

13 years agoadded bug fixes
Vivek Sekar [Fri, 12 Oct 2007 09:06:18 +0000 (09:06 +0000)]
added bug fixes

pmo-trunk-r3499

13 years ago* add some notes on how to move from osso-email-interface to
Dirk-Jan C. Binnema [Thu, 11 Oct 2007 15:17:03 +0000 (15:17 +0000)]
* add some notes on how to move from osso-email-interface to
  libmodest-dbus-client

pmo-trunk-r3495

13 years ago* added documentation
Dirk-Jan C. Binnema [Thu, 11 Oct 2007 13:38:44 +0000 (13:38 +0000)]
* added documentation

pmo-trunk-r3494

13 years ago* don't implicitly depend on ossohelp (OSSO_HELP_SHOW_DIALOG)
Dirk-Jan C. Binnema [Thu, 11 Oct 2007 12:08:08 +0000 (12:08 +0000)]
* don't implicitly depend on ossohelp (OSSO_HELP_SHOW_DIALOG)
* clean up helplib usage in modest-platform

pmo-trunk-r3492

13 years ago* src/maemo/modest-msg-edit-window.c:
Jose Dapena Paz [Thu, 11 Oct 2007 09:40:54 +0000 (09:40 +0000)]
* src/maemo/modest-msg-edit-window.c:
* Fix an usage of a local pointer outside its scope. Should
  prevent crashes in some cases (thanks Dirk!)

pmo-trunk-r3491

13 years ago* src/modest-main-window.c:
Jose Dapena Paz [Thu, 11 Oct 2007 06:01:58 +0000 (06:01 +0000)]
* src/modest-main-window.c:
* New fix to paned position. Now we set the paned position in a
  timeout handler, to try to set it properly when the window
  gets its original position.

pmo-trunk-r3488

13 years ago* src/maemo/modest-main-window.c:
Jose Dapena Paz [Thu, 11 Oct 2007 05:33:54 +0000 (05:33 +0000)]
* src/maemo/modest-main-window.c:
* Urg, fixed a nasty and stupid bug, that prevented enter
  keypress from opening a header in main window header view.

pmo-trunk-r3487

13 years ago* dbus_api/modest-dbus-callbacks.c:
Jose Dapena Paz [Wed, 10 Oct 2007 16:56:41 +0000 (16:56 +0000)]
* dbus_api/modest-dbus-callbacks.c:
* Now the prefix of inbox is MY: instead of MAND: to make it
  appear before drafts, sent and outbox folders (fixes
  NB#61810).

pmo-trunk-r3486

13 years ago* src/modest-ui-actions.c:
Jose Dapena Paz [Wed, 10 Oct 2007 16:32:33 +0000 (16:32 +0000)]
* src/modest-ui-actions.c:
        * Now we don't crash if we open a message from drafts without an
          account to edit (fixes NB#65064).

pmo-trunk-r3485

13 years ago* src/maemo/modest-msg-edit-window.c:
Jose Dapena Paz [Wed, 10 Oct 2007 15:39:32 +0000 (15:39 +0000)]
* src/maemo/modest-msg-edit-window.c:
        * If we try to remove an attached message in editor, we
          show the subject in the remove confirmation dialog
          (fixes NB#66044).

pmo-trunk-r3484

13 years agoAdded new bug fixes and bumped version for diablo.
Vivek Sekar [Wed, 10 Oct 2007 12:51:16 +0000 (12:51 +0000)]
Added new bug fixes and bumped version for diablo.

pmo-trunk-r3482

13 years ago* src/modest-marshal.list:
Jose Dapena Paz [Wed, 10 Oct 2007 12:44:19 +0000 (12:44 +0000)]
* src/modest-marshal.list:
        * Added two marshallers.
* src/modest-tny-platform-factory.c:
        * Added a proper implementation of get_msg_view.
* src/modest-msg-view.[ch]:
        * Removed all references to gtkhtml library, as now we
          use the new ModestGtkhtmlMimePartView. This hides all
          gtkhtml inners in modest/tny api.
        * Implemented ModestZoomable interface, and removed old api so
          now you have to use ModestZoomable api always.
        * Adapted the signal handlers to use the ModestMimePartView
          signals instead of gtkhtml signals.
        * Now ModestMsgView implement TnyMsg and TnyMimePart interfaces.
          Removed old methods to get/set messages, as now we use
          Tny api.
        * Reestructured a bit the code, to separate the interfaces
          implementations from the implementation itself.
        * Now we properly find the embedded attachments, if they're
          stored in a multipart/related.
* Added src/modest-isearch-view.[ch]:
        * Incremental search view interface. This new interface exposes
          a view where incremental search is available (writing a string
          and beginning to search this string the times required to find
          it).
* Added src/modest-mime-part-view.[ch]:
        * New interface, child of TnyMimePartView. This interface adds
          method is_empty and signals "activate_uri", "link_hover" and
          "fetch_url" to TnyMimePartView. This is for implementing the
          specific backend for gtkhtml (included in this commit) and a
          future one using GtkMozembed.
* Added src/modest-zoomable.[ch]:
        * This new interface should be implemented by all widgets
          supporting any kind of zoom. In particular, this is
          implemented in the new ModestGtkhtmlMimePartView and in
          ModestMsgView. In the future ModestWindow children should
          implement this.
* Added src/modest-gtkhtml-mime-part-view.[ch]:
        * This is an implementation of ModestMimePartView interface,
          ModestISearchView interface, and ModestZoomable interface. It
          uses gtkhtml as backend, and is, in fact, the place where all
          the gtkhtml code that was present in ModestMsgView has gone.
* src/maemo/modest-msg-view-window.c:
        * Use TnyMsg and ModestZoomable api to access ModestMsgView.

pmo-trunk-r3481

13 years ago * Added a destroyer to the error handler of the mail operation for the user data
Sergio Villar Senin [Tue, 9 Oct 2007 15:59:46 +0000 (15:59 +0000)]
* Added a destroyer to the error handler of the mail operation for the user data
* Fixes NB#63115, show the proper message when opening a mail fails

pmo-trunk-r3479

13 years ago * Replaced GtkWindow by ModestWindow in some places
Sergio Villar Senin [Tue, 9 Oct 2007 09:41:01 +0000 (09:41 +0000)]
* Replaced GtkWindow by ModestWindow in some places
* the refresh operation now calls the user callback even if it fails
* fixed some errors in the open_msg action in the UI actions, it was not opening the cached messages when the account was offline
* Added the TnyAccount parametter to the connect_to_get_msg private func
* Removed some warnings in the code
* Fixed an unref
* Fixes NB#66769, now we wait for the account to be connected before trying to open a message. In order to do this I had to rewrite the modest_platform_connect_and_wait

pmo-trunk-r3477

13 years ago * Fixes NB#62423, the first INBOX folder is not selected when the MMC is removed...
Sergio Villar Senin [Thu, 4 Oct 2007 16:49:20 +0000 (16:49 +0000)]
* Fixes NB#62423, the first INBOX folder is not selected when the MMC is removed, so the header view no longer gets empty
* Partially fixes NB#63761, Modest does not try to connect to send a new message, we still need that tinymail does not try to send if the device is offline in order to avoid an error message
* Added some missing account registrations in the mail operations

pmo-trunk-r3472

13 years ago * Added a callback for the save_to_drafts operation
Sergio Villar Senin [Thu, 4 Oct 2007 13:39:59 +0000 (13:39 +0000)]
* Added a callback for the save_to_drafts operation
* Removed a call to edit window directly from mail operations
* Fixed a bug caused by the old implementation, now if the message was saved when the editor was closed it unregisters the header in the window mgr, so we are able to open it again

pmo-trunk-r3470

13 years ago * Added a missing g_object_unref that was causing leaks
Sergio Villar Senin [Thu, 4 Oct 2007 13:32:02 +0000 (13:32 +0000)]
* Added a missing g_object_unref that was causing leaks

pmo-trunk-r3469

13 years ago * Added a new signal "updating-msg-list" to the header view
Sergio Villar Senin [Thu, 4 Oct 2007 08:12:40 +0000 (08:12 +0000)]
* Added a new signal "updating-msg-list" to the header view
* Now the Main window shows an "updating banner" whenever the refresh of a folder takes more than 2 seconds

pmo-trunk-r3465

13 years ago* src/modest-platform.h, src/maemo/modest-platform.c:
Jose Dapena Paz [Wed, 3 Oct 2007 16:55:20 +0000 (16:55 +0000)]
* src/modest-platform.h, src/maemo/modest-platform.c:
        * Added method (modest_platform_set_dialog_help) and
          implementation for maemo using hildon/osso help. This method
          sets a topic for contextual help of a dialog.
* src/maemo/modest-account-view-window.c:
        * Attach help topic for accounts settings dialog. This fixes
          NB#64313 at modest side. We still need the topic help in
          help contents.

pmo-trunk-r3463

13 years ago * Fixes NB#65999 note that the translation is still not available
Sergio Villar Senin [Wed, 3 Oct 2007 15:31:19 +0000 (15:31 +0000)]
* Fixes NB#65999 note that the translation is still not available
* Fixes the problem present when creating a new account, the account view was showing the account id of the account instead of the display account
* Now, every account that is added is automatically refreshed

pmo-trunk-r3462

13 years agoThese changes add support for searching in outbox folder (fixes
Jose Dapena Paz [Wed, 3 Oct 2007 09:37:15 +0000 (09:37 +0000)]
These changes add support for searching in outbox folder (fixes
NB#57740).
* src/dbus_api/modest-dbus-callbacks.c:
        * (find_message_by_url): if the url prefix is merge we assume
          we're trying to retrieve a message in outbox.
        * (on_dbus_method_search): we remove the MAND: and USER: strings
          in the received folder name.
        * (add_single_folder_to_list): if folder is merge folder, and
          name is Outbox, we add it to the list of folders as
          MAND:outbox.
        * (add_single_folder_to_list): now we add MAND: prefix if the
          folder is a mandatory folder (inbox, sent, drafts, archive).
          If not, we add the USER: prefix.
* src/modest-search.c:
        * (modest_search_folder): if we search in a specific folder,
          make "outbox" folder name match any folder of type outbox.
* src/modest-tny-account-store.[ch]:
        * Added new method
(modest_tny_account_store_find_msg_in_outboxes)
          that finds a message uri (with the merge:// format) in outbox
          folders, to open it properly. This way, we can open a message
          in an outbox folder from global search emails list.

pmo-trunk-r3457

13 years ago * Moved the op_type to the mail operations, it should be definitely there and not...
Sergio Villar Senin [Tue, 2 Oct 2007 17:43:37 +0000 (17:43 +0000)]
* Moved the op_type to the mail operations, it should be definitely there and not set by external callers. The new operation-started/finished allow us to do this

pmo-trunk-r3456

13 years ago * Added operation-started and operation-finished to the mail operations
Sergio Villar Senin [Tue, 2 Oct 2007 17:06:57 +0000 (17:06 +0000)]
* Added operation-started and operation-finished to the mail operations
* Fixes NB#62764, the progressbar is not shown for local folders

pmo-trunk-r3455

13 years agoModified the changelog with the updated bug fixes and the component change.
Vivek Sekar [Tue, 2 Oct 2007 11:45:16 +0000 (11:45 +0000)]
Modified the changelog with the updated bug fixes and the component change.

pmo-trunk-r3450

13 years ago* src/modest-search.c:
Jose Dapena Paz [Tue, 2 Oct 2007 09:15:49 +0000 (09:15 +0000)]
* src/modest-search.c:
* (add_hit): now we get the minimum of the dates in a header,
  instead of the date received. This way the date is better
  obtained (fixes NB#61007).
* (search_mime_part_strcmp): minor improvemnt in the broken
 no-ogs backend for search.

pmo-trunk-r3449

13 years ago * Fixed NB#62792, the editor is closed if the account is removed
Sergio Villar Senin [Fri, 28 Sep 2007 17:22:09 +0000 (17:22 +0000)]
    * Fixed NB#62792, the editor is closed if the account is removed
        * Added modest_signal_mgr_disconnect, for disconnecting a single handler
        * Added the signal parametter to modest_signal_mgr_connect, this way we can add multiple connections for the same object
        * Renamed modest_window_mgr_(set/get)_modal_dialog to modest_window_mgt_(set/get)_modal because we can set a normal window as modal as well
        * Implemented a queue of modal dialogs in the window mgr, this way if the top one is removed the second one becomes the topmost

pmo-trunk-r3441

13 years agoThis commit implements a new handling of image attachments. We follow
Jose Dapena Paz [Fri, 28 Sep 2007 14:54:55 +0000 (14:54 +0000)]
This commit implements a new handling of image attachments. We follow
the standard of mime, adding the image attachment in a multipart/related
with the body. These together form the complete body of the message.
This fixes NB#64463.
* src/widgets/modest-msg-edit-window.h:
        * Add attribute images to the MsgData.
* src/widgets/modest-attachments-view.c:
        * We only add attachments from message if it's not a
          multipart/related (as they would be attached images and they
          shouldn't be represented in attachments view).
* src/modest-tny-msg.[ch]:
        * (modest_formatter_create_message): now it accepts a new
          parameter "has_images", to create the proper structure of
          image attachments (including the multipart/related).
        * /modest_tny_msg_new_html_plain): now it receives also a
          list of image mime parts. It adds them properly to the
          message using the new add_images() method.
        * (add_attachment). Now it allows adding attachments as children
          of an arbitrary part. This is required to add image
          attachments to multipart/related. It also accepts a new
          parameter "add_inline" to set the disposition as attachment or
          inline depending on the parameter used.
        * (add_images): this new method searches the multipart/related
          mime part, and adds a list of image mime parts to it.
* src/modest-ui-actions.c:
        * Add images parameter to save to drafts and send new mail
          actions.
* src/maemo/modest-msg-edit-window.c:
        * Now we maintain an internal list of images in body buffer,
          separated from the list of attachments.
        * (replace_with_attachments): renamed to replace_with_images
          as it's intended to replace image replacers with attached
          images in priv->images list.
        * New method (get_related_images): searches the
          multipart/related mime part, and obtains all the image
          children it has. Then it adds the images to the priv->images
          list.
        * Now last_cid is updated using the images and attachments list.
        * (modest_msg_edit_window_get_msg_data): now we also obtain the
          list of images attached (unless a image is in priv->image and
          not refernced in the buffer).
* src/modest-formatter.[ch]:
        * Added internal method find_body_parent (), to refactor the
          work to find the part where body should be attached to.
        * (modest_formatter_create_message): now it takes into account
          the new attribute has_images to create the proper mime part
          multipart/related.
* src/modest-mail-operation.[ch]:
        * (modest_mail_operation_create_message): now we pass the images
          list to the lower layers.

pmo-trunk-r3438

13 years ago * The main paned position follows now the 30/70 rule if it was not set previously
Sergio Villar Senin [Fri, 28 Sep 2007 09:45:33 +0000 (09:45 +0000)]
* The main paned position follows now the 30/70 rule if it was not set previously

pmo-trunk-r3436

13 years ago* src/widgets/modest-account-view.c:
Jose Dapena Paz [Thu, 27 Sep 2007 21:28:46 +0000 (21:28 +0000)]
* src/widgets/modest-account-view.c:
        * (on_default_account_changed): Now we check if there's an
          account name, as it was crashing when we removed the last
          available account.
* src/modest-widget-memory.c:
        * (restore_settings_paned, save_settings_paned): now we store
          in ModestConf the percent of the total the separator is
          set, instead of the pixel position. This way, we correctly
          recover the position (fixes NB#63405).

pmo-trunk-r3434

13 years ago * The "account-changed" signal is now properly managed in the ModestTnyAccountStore...
Sergio Villar Senin [Thu, 27 Sep 2007 18:00:57 +0000 (18:00 +0000)]
* The "account-changed" signal is now properly managed in the ModestTnyAccountStore and in ModestTnyAccount, there were some errors in the handler that were actually preventing the account update to happen
* Changed the signature of the method modest_tny_account_update_from_account
* Added display_name_changed signal to notify changes in the display name of the accounts
* ModestConf does not listen for key changes, all signal emissions related to changes in the configuration must be triggered by the account manager
* Removed the ModestConf delayed notification system, we do not need it since we're not listening for chey changes there anymore
* All the modest_account_mgr_(get/set)_(int/book/string/list) are now private methods and could not be used by third parties
* Added a lot of getters and setters to the modest-account-mgr-helpers. We did that to ensure that nobody changes the configuration keys directly (because maybe we want to notify key changes)
* Renamed old modest_server_account_get_xxx by modest_account_mgr_get_server_account_xxx
* Renamed old modest_server_account_set_xxx by modest_account_mgr_set_server_account_xxx
* FolderView now changes the display name of an account if it changes
* AccountView now changes the display name of an account if it changes
* Removed unused code here and there
* Several aesthetic changes here and there

* TODO: I realized that the account-settings dialog thinks that something has changed when you change it and then revert the change
* TODO: detect in the account-settings dialog which changes should issue an "account-changed" signals and which ones not, for example a change in the display name should not force an account reload

pmo-trunk-r3433

13 years agoWork to fix NB#66729: after moving selected messages to another folder,
Jose Dapena Paz [Thu, 27 Sep 2007 17:07:11 +0000 (17:07 +0000)]
Work to fix NB#66729: after moving selected messages to another folder,
selection should go to the next available message.
* src/modest-ui-actions.c:
        * Now we pass a MoveToHelper as argument for move_to_cb. This
          helper contains a row reference for the next row to be
          selected if move to is successful, and the information banner.
        * Added new method get_next_after_selected_headers, that
          obtains a row reference of the next row of the header view
          after the selected headers.
        * (move_to_cb). Now, if we get a row reference in move to
          helper, we select it after moving the messages.

pmo-trunk-r3432

13 years ago* src/modest-ui-actions.c:
Jose Dapena Paz [Wed, 26 Sep 2007 12:14:20 +0000 (12:14 +0000)]
* src/modest-ui-actions.c:
        * (modest_ui_actions_on_password_requested): now we set the
          focus to the password entry in case username has already a
          value (fixes NB#66489).

pmo-trunk-r3422

13 years ago * Some aesthetic changes
Sergio Villar Senin [Wed, 26 Sep 2007 12:12:09 +0000 (12:12 +0000)]
* Some aesthetic changes
* Removed an invalid g_warning
* Fixed a problem when changing the name of the device, the details widget was showing the %s after a device name change because it was using another different function than the one used for creating the widget
* Changed some ModestConf functions
* Modest now listens for changes in the keys without needing a folder view

pmo-trunk-r3421

13 years ago* src/widgets/modest-msg-edit-window.h:
Jose Dapena Paz [Wed, 26 Sep 2007 11:48:28 +0000 (11:48 +0000)]
* src/widgets/modest-msg-edit-window.h:
        * Add new method to interface to reset the modified status.
* src/modest-ui-actions.c:
        * On saving to drafts, we now reset the modified status of
          the editor (fixes NB#67694).
* src/maemo/modest-msg-edit-window.c:
        * Make reset_modified method public, to be able to access it
          from the ui actions.

pmo-trunk-r3420

13 years ago * Fixed an error in the g_signal_emit of my last commit
Sergio Villar Senin [Wed, 26 Sep 2007 10:59:26 +0000 (10:59 +0000)]
* Fixed an error in the g_signal_emit of my last commit
* Fixed some leaks

pmo-trunk-r3416

13 years ago * Some aesthetic changes
Sergio Villar Senin [Wed, 26 Sep 2007 10:34:22 +0000 (10:34 +0000)]
* Some aesthetic changes
* Replaced a folder_sync by a folder_async
* If a new account is created select show it as the default in the account view

pmo-trunk-r3415

13 years agoWork to fix NB#61649:
Jose Dapena Paz [Tue, 25 Sep 2007 20:25:21 +0000 (20:25 +0000)]
Work to fix NB#61649:
* src/modest-ui-actions.c:
* If we activate headers and there's more than one
  selected header, then we show the select 1 message only
  banner.
* src/maemo/modest-main-window.c:
* If we press enter and focus is in headers view, check if
  there are more than one header selected, and then, show
  the proper information banner.

pmo-trunk-r3413

13 years ago * Some aesthetic changes
Sergio Villar Senin [Tue, 25 Sep 2007 17:16:23 +0000 (17:16 +0000)]
* Some aesthetic changes
* Removed unused #includes
* Removed invalid code related to send queues
* Fixed the problem of GConf notifications when the default window is changed in the account view window
--This line, and those below, will be ignored- -

M    src/modest-main.c
M    src/widgets/modest-folder-view.c
M    src/widgets/modest-account-view.c
M    src/modest-tny-folder.c
M    src/maemo/modest-account-view-window.c
M    src/modest-conf.c
M    src/modest-conf.h
M    src/modest-widget-memory.c

pmo-trunk-r3412

13 years ago* src/widgets/modest-folder-view.c:
Jose Dapena Paz [Tue, 25 Sep 2007 12:34:27 +0000 (12:34 +0000)]
* src/widgets/modest-folder-view.c:
        * Now copied models also attach the row inserted signal. This
          way the code that sets the focus on specific folders also
          work for the folder dialogs (fixes NB#67005).

pmo-trunk-r3410

13 years agoReconnect and forget password when changing account settings
Philip Van Hoof [Tue, 25 Sep 2007 10:57:01 +0000 (10:57 +0000)]
Reconnect and forget password when changing account settings

pmo-trunk-r3406

13 years ago* src/widgets/modest-header-view.c:
Jose Dapena Paz [Mon, 24 Sep 2007 15:55:32 +0000 (15:55 +0000)]
* src/widgets/modest-header-view.c:
* If selection in headers view is multiple, and we move the
  toplevel focus out of this, we remove the selection and keep
  only one item selected (fixes NB#57631).

pmo-trunk-r3403

13 years agoBugfix, priv used too early
Philip Van Hoof [Mon, 24 Sep 2007 13:56:17 +0000 (13:56 +0000)]
Bugfix, priv used too early

pmo-trunk-r3402

13 years ago* add missing commit...
Dirk-Jan C. Binnema [Mon, 24 Sep 2007 09:51:46 +0000 (09:51 +0000)]
* add missing commit...

pmo-trunk-r3399

13 years ago * Added two missing unref's
Sergio Villar Senin [Fri, 21 Sep 2007 17:51:39 +0000 (17:51 +0000)]
* Added two missing unref's
* Do not use gconf directly, replaced by calls to modest_conf
* Fixes NB#65856, do not show the "Saving" info banner while asking for confirmation

pmo-trunk-r3396

13 years ago * Fixes NB#66338, show the proper info banner when creating a folder fails
Sergio Villar Senin [Fri, 21 Sep 2007 17:11:26 +0000 (17:11 +0000)]
* Fixes NB#66338, show the proper info banner when creating a folder fails

pmo-trunk-r3395

13 years ago * Fixed a SIGSEV when starting modest with no accounts
Sergio Villar Senin [Fri, 21 Sep 2007 16:49:16 +0000 (16:49 +0000)]
* Fixed a SIGSEV when starting modest with no accounts

pmo-trunk-r3394

13 years ago* cache the modest-conf keynames, so we don't have to re-calculate
Dirk-Jan C. Binnema [Fri, 21 Sep 2007 16:24:33 +0000 (16:24 +0000)]
* cache the modest-conf keynames, so we don't have to re-calculate
  them all the time. this showed up high in oprofile, and indeed
  the cache seems to make things faster.

pmo-trunk-r3393

13 years ago* further optimization of parse_mcc_mapping_line, which still
Dirk-Jan C. Binnema [Fri, 21 Sep 2007 13:12:44 +0000 (13:12 +0000)]
* further optimization of parse_mcc_mapping_line, which still
  showed up high in the profiles

pmo-trunk-r3391

13 years ago* bugfix: register the new dialog as the new modal dialog; this
Dirk-Jan C. Binnema [Fri, 21 Sep 2007 12:16:59 +0000 (12:16 +0000)]
* bugfix: register the new dialog as the new modal dialog; this
  handles the case where there are >2 candidate modal dialogs

pmo-trunk-r3390

13 years ago* fix mistake in the action menu name for full screen mode;
Dirk-Jan C. Binnema [Fri, 21 Sep 2007 12:04:25 +0000 (12:04 +0000)]
* fix mistake in the action menu name for full screen mode;
  this cause a Glib-Critical, and most probably some other bug
  as well.

pmo-trunk-r3389

13 years ago* make sure there only one modal window at any time, and
Dirk-Jan C. Binnema [Fri, 21 Sep 2007 11:42:11 +0000 (11:42 +0000)]
* make sure there only one modal window at any time, and
  also that it is the toplevel one; this prevents a number of
  hangs and seemingly-hangs

pmo-trunk-r3388

13 years ago* move modest-tny-account-store to use modest-signal-mgr
Dirk-Jan C. Binnema [Fri, 21 Sep 2007 08:58:49 +0000 (08:58 +0000)]
* move modest-tny-account-store to use modest-signal-mgr
  (the little helper class to remember gsignal handler ids)
* make modest-signal-mgr a bit more fault-tolerant
* this fixes the ugly G-Criticals when closing modest

pmo-trunk-r3387

13 years ago* src/maemo/modest-msg-edit-window.c:
Jose Dapena Paz [Thu, 20 Sep 2007 20:00:06 +0000 (20:00 +0000)]
* src/maemo/modest-msg-edit-window.c:
        * Now, when we set the file format to html using the
          modest_msg_edit_window_set_file_format, we remove all
          the tags, so that the text is shown again with the default
          font (fixes NB#63647).

pmo-trunk-r3380

13 years ago* src/maemo/modest-msg-edit-window.c:
Jose Dapena Paz [Thu, 20 Sep 2007 19:32:53 +0000 (19:32 +0000)]
* src/maemo/modest-msg-edit-window.c:
        * Now, if we add characters to the subject field, and it's
          already in the max size (1000 characters), show proper
          information banner (fixes NB#66473).
* src/modest-conf.c:
        * Fix a compilation warning.

pmo-trunk-r3379

13 years ago* src/maemo/modest-connection-specific-smtp-edit-window.c:
Jose Dapena Paz [Thu, 20 Sep 2007 18:29:19 +0000 (18:29 +0000)]
* src/maemo/modest-connection-specific-smtp-edit-window.c:
        * (on_response). Now, if the range is invalid, we never process
          cancel or ok responses. This way we only show one
          notification (fixes NB#66862).

pmo-trunk-r3378

13 years ago * Added a new signal to the account mgr that notifies changes in the default account...
Sergio Villar Senin [Thu, 20 Sep 2007 18:07:29 +0000 (18:07 +0000)]
* Added a new signal to the account mgr that notifies changes in the default account, need some review because we're not getting all the changes from gconf
* Fixed a hang when creating the first account, now the accounts are not updated if the status is connecting

pmo-trunk-r3376

13 years ago* src/maemo/modest-address-book.c:
Jose Dapena Paz [Thu, 20 Sep 2007 17:28:07 +0000 (17:28 +0000)]
* src/maemo/modest-address-book.c:
        * (modest_address_book_check_names): now, if the string is not
          empty and we didn't resolve any address, we return an error
          information banner (fixes NB#66116).

pmo-trunk-r3375

13 years ago* src/modest-ui-dimming-rules.c:
Jose Dapena Paz [Thu, 20 Sep 2007 16:43:47 +0000 (16:43 +0000)]
* src/modest-ui-dimming-rules.c:
* Fixed a typo in paste dimming rule.

pmo-trunk-r3374

13 years ago* fix two memory leaks
Dirk-Jan C. Binnema [Thu, 20 Sep 2007 16:06:18 +0000 (16:06 +0000)]
* fix two memory leaks

pmo-trunk-r3373

13 years ago* handle the case when init fails more gracefully (not Criticals)
Dirk-Jan C. Binnema [Thu, 20 Sep 2007 13:25:01 +0000 (13:25 +0000)]
* handle the case when init fails more gracefully (not Criticals)
* remove some needless debug stuff

pmo-trunk-r3371

13 years ago* check for the required provider data at startup time; cleanup code a bit
Dirk-Jan C. Binnema [Thu, 20 Sep 2007 13:23:11 +0000 (13:23 +0000)]
* check for the required provider data at startup time; cleanup code a bit

pmo-trunk-r3370

13 years agoadded bug fixes to changelog.
Vivek Sekar [Thu, 20 Sep 2007 13:11:28 +0000 (13:11 +0000)]
added bug fixes to changelog.

pmo-trunk-r3369

13 years ago * Fixes some issues
Sergio Villar Senin [Thu, 20 Sep 2007 11:14:52 +0000 (11:14 +0000)]
* Fixes some issues

pmo-trunk-r3368

13 years agoMeaningless comparison
Philip Van Hoof [Thu, 20 Sep 2007 10:57:05 +0000 (10:57 +0000)]
Meaningless comparison

pmo-trunk-r3367

13 years agoCompilation warning
Philip Van Hoof [Thu, 20 Sep 2007 10:52:56 +0000 (10:52 +0000)]
Compilation warning

pmo-trunk-r3366