* src/modest-dimming-rules-group.[ch]:
authorJose Dapena Paz <jdapena@igalia.com>
Tue, 11 Sep 2007 09:17:43 +0000 (09:17 +0000)
committerJose Dapena Paz <jdapena@igalia.com>
Tue, 11 Sep 2007 09:17:43 +0000 (09:17 +0000)
commit38402a6550ee767271308f42ebfbfc81a1fa736b
tree3dd3b04a87ae8d63bbf83d8e61a017c52945f952
parent191a72617b88b6c955005639d6a737538f4e10b4
* src/modest-dimming-rules-group.[ch]:
        * Added new method modest_dimming_rules_group_add_widget_rule.
          This method connects a dimming rule to a widget in the group,
          so that we can connect rules to widgets outside an ui manager.
        * Refactored some code to add rules to the dimming rules group
          from the methods add_rules and add_widget_rule.
* src/modest-dimming-rule.[ch]:
        * Now dimming rules can be connected to widgets, not only to
          ui manager action paths.
        * Added new methods for getting the action path and connected
          widget from outside.
* src/gnome/modest-main-window.c:
        * Adapted to change in in modest_main_window_get_child_widget
          type.
* src/widgets/modest-msg-edit-window.h:
        * Added method modest_msg_edit_window_get_child_widget to access
          editor widgets from external methods (in particular from
          ui dimming rules).
        * Added methods to get can-undo and can-redo status.
* src/widgets/modest-msg-edit-window-ui.h:
        * Added ui action handlers for menu parents, so that we can run
          dimming rules.
* src/widgets/modest-main-window.h:
        * Changed modest_main_window_get_child_widget types to have a
          proper namespace (instead of MODEST_WIDGET_TYPE_* now we have
          MODEST_MAIN_WINDOW_WIDGET_TYPE_*).
* src/modest-ui-actions.[ch]:
        * Adapted calls to modest_main_window_get_child_widget new api.
        * Added new method modest_ui_actions_on_format_menu_activated,
          to run the dimming rules on showing the format menu.
* src/dbus_api/modest-dbus-callback.c:
        * Adapted calls to modest_main_window_get_child_widget new api.
* src/maemo/modest-msg-edit-window.c:
        * Removed insensitive handlers, as now they're managed in
          dimming manager. In particular, we remove methods
          send_insensitive_press, style_insensitive_press,
          setup_insensitive_handlers.
        * Added "move-cursor" signal handler subject_field_move_cursor.
          This is required because moving cursor in a way that drops
          selection in a GtkEntry does not change primary clipboard
          selection.
        * Removed methods to update dimming status, as this is now
          managed in dimming manager. In particular we drop
          update_dimmed, update_paste_dimming,
          update_remove_attachment_dimming, update_copy_cut_dimming,
          update_select_all_dimming, update_zoom_dimming,
          update_send_dimming.
        * Also removed methods to handle menu activation, as this is now
          handled in the ui manager.
        * Added methods to get the can_undo and can_redo status. This is
          updated through signal handlers of wptextbuffer, as this does
          not provide a method to check this on real time.
        * Added signal handler for owner change in default clipboard
          (required to manage properly paste dimming).
        * Now we use dimming rules for toolbar, menus and clipboard
          based actions. We also use specific dimming rule binding for
          the widgets that we don't get from ui manager (font size and
          face selection, color selection).
        * Implementation of new method
          modest_msg_edit_window_get_child_widget, to access children
          from outside (in particular from dimming rules).
* src/maemo/modest-platform.c:
        * Adapted calls to modest_main_window_get_child_widget new api.
* src/maemo/modest-msg-view-window.c:
        * Adapted calls to modest_main_window_get_child_widget new api.
* src/maemo/modest-main-window.c:
        * Adapted calls to modest_main_window_get_child_widget new api.
* src/modest-ui-dimming-rules.[ch]:
        * Adapted calls to modest_main_window_get_child_widget new api.
        * (..._on_select_all): added implementation for editor widget.
        * (..._on_undo): added implementation for editor widget.
        * New dimming rule ..._on_redo.
        * New dimming rule ..._on_set_style, for style operations of
          message editor.
        * New dimming rule ..._on_zoom for editor (we can only zoom
          when focus is on body).
        * New dimming rule ..._on_editor_paste. This operation depends
          on clipboard, so it cannot be hooked in menu activation
          methods.
        * New dimming rule ..._on_editor_remove_attachment for editor.
        * New dimming rule ..._on_send for editor.
        * Added support in _invalid_clipboard_selected for editor.

pmo-trunk-r3264
18 files changed:
src/dbus_api/modest-dbus-callbacks.c
src/gnome/modest-main-window.c
src/maemo/modest-main-window.c
src/maemo/modest-msg-edit-window-ui-dimming.h [new file with mode: 0644]
src/maemo/modest-msg-edit-window.c
src/maemo/modest-msg-view-window.c
src/maemo/modest-platform.c
src/modest-dimming-rule.c
src/modest-dimming-rule.h
src/modest-dimming-rules-group.c
src/modest-dimming-rules-group.h
src/modest-ui-actions.c
src/modest-ui-actions.h
src/modest-ui-dimming-rules.c
src/modest-ui-dimming-rules.h
src/widgets/modest-main-window.h
src/widgets/modest-msg-edit-window-ui.h
src/widgets/modest-msg-edit-window.h