projects
/
modest
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
|
inline
| side by side (parent:
e6036bf
)
Dimming font for toolitems in editor
author
Jose Dapena Paz
<jdapena@igalia.com>
Thu, 12 Mar 2009 15:47:53 +0000
(15:47 +0000)
committer
Jose Dapena Paz
<jdapena@igalia.com>
Thu, 12 Mar 2009 15:47:53 +0000
(15:47 +0000)
pmo-trunk-r7987
src/hildon2/modest-msg-edit-window.c
patch
|
blob
|
history
diff --git
a/src/hildon2/modest-msg-edit-window.c
b/src/hildon2/modest-msg-edit-window.c
index
f5423ca
..
dfbc7cc
100644
(file)
--- a/
src/hildon2/modest-msg-edit-window.c
+++ b/
src/hildon2/modest-msg-edit-window.c
@@
-352,19
+352,10
@@
static void
restore_settings (ModestMsgEditWindow *self)
{
ModestConf *conf = NULL;
restore_settings (ModestMsgEditWindow *self)
{
ModestConf *conf = NULL;
- GtkAction *action;
- ModestWindowPrivate *parent_priv = MODEST_WINDOW_GET_PRIVATE (self);
conf = modest_runtime_get_conf ();
/* Dim at start clipboard actions */
conf = modest_runtime_get_conf ();
/* Dim at start clipboard actions */
- action = gtk_ui_manager_get_action (parent_priv->ui_manager, "/MenuBar/EditMenu/CutMenu");
- gtk_action_set_sensitive (action, FALSE);
- action = gtk_ui_manager_get_action (parent_priv->ui_manager, "/MenuBar/EditMenu/CopyMenu");
- gtk_action_set_sensitive (action, FALSE);
- action = gtk_ui_manager_get_action (parent_priv->ui_manager, "/MenuBar/AttachmentsMenu/RemoveAttachmentsMenu");
- gtk_action_set_sensitive (action, FALSE);
-
modest_widget_memory_restore (conf, G_OBJECT(self), MODEST_CONF_EDIT_WINDOW_KEY);
}
modest_widget_memory_restore (conf, G_OBJECT(self), MODEST_CONF_EDIT_WINDOW_KEY);
}
@@
-1346,10
+1337,6
@@
modest_msg_edit_window_setup_toolbar (ModestMsgEditWindow *window)
/* font_size */
tool_item = GTK_WIDGET (gtk_tool_button_new (NULL, NULL));
priv->size_tool_button_label = gtk_label_new (NULL);
/* font_size */
tool_item = GTK_WIDGET (gtk_tool_button_new (NULL, NULL));
priv->size_tool_button_label = gtk_label_new (NULL);
- hildon_helper_set_logical_color (GTK_WIDGET (priv->size_tool_button_label), GTK_RC_TEXT,
- GTK_STATE_INSENSITIVE, "SecondaryTextColor");
- hildon_helper_set_logical_color (GTK_WIDGET (priv->size_tool_button_label), GTK_RC_FG,
- GTK_STATE_INSENSITIVE, "SecondaryTextColor");
snprintf(size_text, sizeof(size_text), "%d", wp_font_size[DEFAULT_FONT_SIZE]);
markup = g_strconcat ("<span font_family='", DEFAULT_SIZE_BUTTON_FONT_FAMILY, "'>",
size_text, ldots, "</span>", NULL);
snprintf(size_text, sizeof(size_text), "%d", wp_font_size[DEFAULT_FONT_SIZE]);
markup = g_strconcat ("<span font_family='", DEFAULT_SIZE_BUTTON_FONT_FAMILY, "'>",
size_text, ldots, "</span>", NULL);
@@
-1383,10
+1370,6
@@
modest_msg_edit_window_setup_toolbar (ModestMsgEditWindow *window)
/* font face */
tool_item = GTK_WIDGET (gtk_tool_button_new (NULL, NULL));
priv->font_tool_button_label = gtk_label_new (NULL);
/* font face */
tool_item = GTK_WIDGET (gtk_tool_button_new (NULL, NULL));
priv->font_tool_button_label = gtk_label_new (NULL);
- hildon_helper_set_logical_color (GTK_WIDGET (priv->font_tool_button_label), GTK_RC_TEXT,
- GTK_STATE_INSENSITIVE, "SecondaryTextColor");
- hildon_helper_set_logical_color (GTK_WIDGET (priv->font_tool_button_label), GTK_RC_FG,
- GTK_STATE_INSENSITIVE, "SecondaryTextColor");
markup = g_strconcat ("<span font_family='", wp_get_font_name(DEFAULT_FONT), "'>Tt",ldots,"</span>", NULL);
gtk_label_set_markup (GTK_LABEL (priv->font_tool_button_label), markup);
g_free(markup);
markup = g_strconcat ("<span font_family='", wp_get_font_name(DEFAULT_FONT), "'>Tt",ldots,"</span>", NULL);
gtk_label_set_markup (GTK_LABEL (priv->font_tool_button_label), markup);
g_free(markup);