evolution r35262 - trunk/mail
- From: mcrha svn gnome org
- To: svn-commits-list gnome org
- Subject: evolution r35262 - trunk/mail
- Date: Thu, 27 Mar 2008 11:09:33 +0000 (GMT)
Author: mcrha
Date: Thu Mar 27 11:09:32 2008
New Revision: 35262
URL: http://svn.gnome.org/viewvc/evolution?rev=35262&view=rev
Log:
2008-03-27 Milan Crha <mcrha redhat com>
** Fix for bug #502826 (original patch by nickspoon0)
* mail-config.glade:
* em-composer-prefs.c: (attach_style_reply_new_order),
(attach_style_info_reply), (em_composer_prefs_construct):
Reword and reorder Reply Style items in the Preferences.
Modified:
trunk/mail/ChangeLog
trunk/mail/em-composer-prefs.c
trunk/mail/mail-config.glade
Modified: trunk/mail/em-composer-prefs.c
==============================================================================
--- trunk/mail/em-composer-prefs.c (original)
+++ trunk/mail/em-composer-prefs.c Thu Mar 27 11:09:32 2008
@@ -720,6 +720,19 @@
* End of Spell checking
*/
+static int
+attach_style_reply_new_order (int style_id, gboolean from_enum_to_option_id)
+{
+ int values[] = {MAIL_CONFIG_REPLY_ATTACH, 0, MAIL_CONFIG_REPLY_OUTLOOK, 1, MAIL_CONFIG_REPLY_QUOTED, 2, MAIL_CONFIG_REPLY_DO_NOT_QUOTE, 3, -1, -1};
+ int i;
+
+ for (i = from_enum_to_option_id ? 0 : 1; values[i] != -1; i += 2) {
+ if (values[i] == style_id)
+ return values [from_enum_to_option_id ? i + 1 : i - 1];
+ }
+
+ return style_id;
+}
static void
attach_style_info (GtkWidget *item, gpointer user_data)
@@ -732,6 +745,16 @@
}
static void
+attach_style_info_reply (GtkWidget *item, gpointer user_data)
+{
+ int *style = user_data;
+
+ g_object_set_data ((GObject *) item, "style", GINT_TO_POINTER (attach_style_reply_new_order (*style, FALSE)));
+
+ (*style)++;
+}
+
+static void
toggle_button_toggled (GtkToggleButton *toggle, EMComposerPrefs *prefs)
{
const char *key;
@@ -975,10 +998,10 @@
prefs->reply_style = GTK_OPTION_MENU (glade_xml_get_widget (gui, "omenuReplyStyle"));
style = gconf_client_get_int (prefs->gconf, "/apps/evolution/mail/format/reply_style", NULL);
- gtk_option_menu_set_history (prefs->reply_style, style);
+ gtk_option_menu_set_history (prefs->reply_style, attach_style_reply_new_order (style, TRUE));
style = 0;
gtk_container_foreach (GTK_CONTAINER (gtk_option_menu_get_menu (prefs->reply_style)),
- attach_style_info, &style);
+ attach_style_info_reply, &style);
option_menu_connect (prefs, prefs->reply_style, G_CALLBACK (style_activate),
"/apps/evolution/mail/format/reply_style");
Modified: trunk/mail/mail-config.glade
==============================================================================
--- trunk/mail/mail-config.glade (original)
+++ trunk/mail/mail-config.glade Thu Mar 27 11:09:32 2008
@@ -7146,38 +7146,38 @@
<child internal-child="menu">
<widget class="GtkMenu" id="convertwidget33">
<property name="visible">True</property>
-
<child>
- <widget class="GtkMenuItem" id="convertwidget34">
+ <widget class="GtkMenuItem" id="convertwidget36">
<property name="visible">True</property>
- <property name="label" translatable="yes">Quote original message</property>
+ <property name="label" translatable="yes">Attachment</property>
<property name="use_underline">True</property>
</widget>
</child>
<child>
- <widget class="GtkMenuItem" id="convertwidget35">
+ <widget class="GtkMenuItem" id="convertwidget50">
<property name="visible">True</property>
- <property name="label" translatable="yes">Do not quote original message</property>
+ <property name="label" translatable="yes">Inline (Outlook style)</property>
<property name="use_underline">True</property>
</widget>
</child>
<child>
- <widget class="GtkMenuItem" id="convertwidget36">
+ <widget class="GtkMenuItem" id="convertwidget34">
<property name="visible">True</property>
- <property name="label" translatable="yes">Attach original message</property>
+ <property name="label" translatable="yes">Quoted</property>
<property name="use_underline">True</property>
</widget>
</child>
<child>
- <widget class="GtkMenuItem" id="convertwidget50">
+ <widget class="GtkMenuItem" id="convertwidget35">
<property name="visible">True</property>
- <property name="label" translatable="yes">Inline original message (Outlook style)</property>
+ <property name="label" translatable="yes">Do not quote</property>
<property name="use_underline">True</property>
</widget>
</child>
+
</widget>
</child>
</widget>
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]