* src/maemo/modest-msg-view-window.c:
authorJose Dapena Paz <jdapena@igalia.com>
Thu, 31 May 2007 14:09:48 +0000 (14:09 +0000)
committerJose Dapena Paz <jdapena@igalia.com>
Thu, 31 May 2007 14:09:48 +0000 (14:09 +0000)
        * Dims "Add to contacts" at startup of the widget, as clipboard
          should be empty. This prevents trying to add a non valid contact
          (fixes NB#57415).

pmo-trunk-r2010

src/maemo/modest-msg-view-window.c

index bc8dcf2..aad0670 100644 (file)
@@ -602,6 +602,10 @@ modest_msg_view_window_new (TnyMsg *msg, const gchar *account_name)
        action = gtk_ui_manager_get_action (parent_priv->ui_manager, "/MenuBar/EditMenu/EditCutMenu");
        gtk_action_set_sensitive (action, FALSE);
 
+       /* also set the add to contacts status to false as it depends on clipboard status */
+       action = gtk_ui_manager_get_action (parent_priv->ui_manager, "/MenuBar/ToolsMenu/ToolsAddToContactsMenu");
+       gtk_action_set_sensitive (action, FALSE);
+
        gtk_widget_grab_focus (priv->msg_view);
 
        return MODEST_WINDOW(obj);