Added a toolbar button for the "Reply to author" command.
authorSergey Vlasov <vsu@users.sourceforge.net>
Sun, 20 May 2001 07:05:38 +0000 (07:05 +0000)
committerSergey Vlasov <vsu@users.sourceforge.net>
Sun, 20 May 2001 07:05:38 +0000 (07:05 +0000)
ChangeLog.claws
src/mainwindow.c
src/mainwindow.h
src/pixmaps/stock_mail_reply_to_author.xpm [new file with mode: 0644]

index 3357702..5aee863 100644 (file)
@@ -1,3 +1,13 @@
+2001-05-20 [sergey]
+
+       * src/pixmaps/stock_mail_reply_to_author.xpm: new file.
+
+       * src/mainwindow.h (main_window_toolbar_create): created a button
+       for "Reply to all".
+       (main_window_set_toolbar_sensitive): enable/disable the new button
+       appropriately.
+       (toolbar_reply_to_author_cb): handle the new button.
+
 2001-05-19 [sergey]
 
        * src/compose.h (ComposeReplyMode): new modes
index 2884c3a..27b03ba 100644 (file)
@@ -115,6 +115,8 @@ static void toolbar_reply_cb                (GtkWidget      *widget,
                                         gpointer        data);
 static void toolbar_reply_to_all_cb    (GtkWidget      *widget,
                                         gpointer        data);
+static void toolbar_reply_to_author_cb (GtkWidget      *widget,
+                                        gpointer        data);
 static void toolbar_forward_cb         (GtkWidget      *widget,
                                         gpointer        data);
 
@@ -1030,11 +1032,12 @@ void main_window_add_mailbox(MainWindow *mainwin)
 
 void main_window_set_toolbar_sensitive(MainWindow *mainwin, gboolean sensitive)
 {
-       gtk_widget_set_sensitive(mainwin->reply_btn,    sensitive);
-       gtk_widget_set_sensitive(mainwin->replyall_btn, sensitive);
-       gtk_widget_set_sensitive(mainwin->fwd_btn,      sensitive);
-       gtk_widget_set_sensitive(mainwin->exec_btn,     sensitive);
-       gtk_widget_set_sensitive(mainwin->next_btn,     sensitive);
+       gtk_widget_set_sensitive(mainwin->reply_btn,       sensitive);
+       gtk_widget_set_sensitive(mainwin->replyall_btn,    sensitive);
+       gtk_widget_set_sensitive(mainwin->replyauthor_btn, sensitive);
+       gtk_widget_set_sensitive(mainwin->fwd_btn,         sensitive);
+       gtk_widget_set_sensitive(mainwin->exec_btn,        sensitive);
+       gtk_widget_set_sensitive(mainwin->next_btn,        sensitive);
 
        if (!mainwin->summaryview->folder_item ||
            mainwin->summaryview->folder_item->folder->type == F_NEWS)
@@ -1315,6 +1318,7 @@ static void main_window_set_widgets(MainWindow *mainwin, SeparateType type)
 #include "pixmaps/stock_mail_compose.xpm"
 #include "pixmaps/stock_mail_reply.xpm"
 #include "pixmaps/stock_mail_reply_to_all.xpm"
+#include "pixmaps/stock_mail_reply_to_author.xpm"
 #include "pixmaps/stock_mail_forward.xpm"
 #include "pixmaps/stock_mail_send.xpm"
 #include "pixmaps/stock_preferences.xpm"
@@ -1343,6 +1347,7 @@ static void main_window_toolbar_create(MainWindow *mainwin,
        GtkWidget *compose_btn;
        GtkWidget *reply_btn;
        GtkWidget *replyall_btn;
+       GtkWidget *replyauthor_btn;
        GtkWidget *fwd_btn;
        GtkWidget *send_btn;
        /*
@@ -1413,6 +1418,14 @@ static void main_window_toolbar_create(MainWindow *mainwin,
                                               icon_wid,
                                               toolbar_reply_to_all_cb,
                                               mainwin);
+       CREATE_TOOLBAR_ICON(stock_mail_reply_to_author_xpm);
+       replyauthor_btn = gtk_toolbar_append_item(GTK_TOOLBAR(toolbar),
+                                                 _("Reply author"),
+                                                 _("Reply to author"),
+                                                 "Reply to author",
+                                                 icon_wid,
+                                                 toolbar_reply_to_author_cb,
+                                                 mainwin);
        CREATE_TOOLBAR_ICON(stock_mail_forward_xpm);
        fwd_btn = gtk_toolbar_append_item(GTK_TOOLBAR(toolbar),
                                          _("Forward"),
@@ -1477,21 +1490,22 @@ static void main_window_toolbar_create(MainWindow *mainwin,
                           mainwin);
        */
 
-       mainwin->toolbar      = toolbar;
-       mainwin->get_btn      = get_btn;
-       mainwin->getall_btn   = getall_btn;
-       mainwin->compose_btn  = compose_btn;
-       mainwin->reply_btn    = reply_btn;
-       mainwin->replyall_btn = replyall_btn;
-       mainwin->fwd_btn      = fwd_btn;
-       mainwin->send_btn     = send_btn;
+       mainwin->toolbar         = toolbar;
+       mainwin->get_btn         = get_btn;
+       mainwin->getall_btn      = getall_btn;
+       mainwin->compose_btn     = compose_btn;
+       mainwin->reply_btn       = reply_btn;
+       mainwin->replyall_btn    = replyall_btn;
+       mainwin->replyauthor_btn = replyauthor_btn;
+       mainwin->fwd_btn         = fwd_btn;
+       mainwin->send_btn        = send_btn;
        /*
-       mainwin->prefs_btn    = prefs_btn;
-       mainwin->account_btn  = account_btn;
+       mainwin->prefs_btn       = prefs_btn;
+       mainwin->account_btn     = account_btn;
        */
-       mainwin->next_btn     = next_btn;
-       mainwin->delete_btn   = delete_btn;
-       mainwin->exec_btn     = exec_btn;
+       mainwin->next_btn        = next_btn;
+       mainwin->delete_btn      = delete_btn;
+       mainwin->exec_btn        = exec_btn;
 
        gtk_widget_show_all(toolbar);
 }
@@ -1546,6 +1560,14 @@ static void toolbar_reply_to_all_cb      (GtkWidget      *widget,
        reply_cb(mainwin, COMPOSE_REPLY_TO_ALL, NULL);
 }
 
+static void toolbar_reply_to_author_cb (GtkWidget      *widget,
+                                        gpointer        data)
+{
+       MainWindow *mainwin = (MainWindow *)data;
+
+       reply_cb(mainwin, COMPOSE_REPLY_TO_AUTHOR, NULL);
+}
+
 static void toolbar_forward_cb (GtkWidget      *widget,
                                 gpointer        data)
 {
index 3c0d2f2..bf7a178 100644 (file)
@@ -83,6 +83,7 @@ struct _MainWindow
        GtkWidget *compose_btn;
        GtkWidget *reply_btn;
        GtkWidget *replyall_btn;
+       GtkWidget *replyauthor_btn;
        GtkWidget *fwd_btn;
        GtkWidget *send_btn;
        /*
diff --git a/src/pixmaps/stock_mail_reply_to_author.xpm b/src/pixmaps/stock_mail_reply_to_author.xpm
new file mode 100644 (file)
index 0000000..bc6d1b4
--- /dev/null
@@ -0,0 +1,127 @@
+/* XPM */
+static char * stock_mail_reply_to_author_xpm[] = {
+"24 24 100 2",
+"      c None",
+".     c #000000",
+"+     c #7B7B78",
+"@     c #C7C7C3",
+"#     c #F1F0EB",
+"$     c #BFBFBC",
+"%     c #5F5E5E",
+"&     c #E3E3DF",
+"*     c #F3F3EF",
+"=     c #F2F2EE",
+"-     c #F1F1EC",
+";     c #F0EFEB",
+">     c #D2D2CD",
+",     c #969592",
+"'     c #616060",
+")     c #B5B5B4",
+"!     c #F8F8F6",
+"~     c #F7F7F5",
+"{     c #F6F6F3",
+"]     c #F5F5F2",
+"^     c #F4F4F0",
+"/     c #F2F1ED",
+"(     c #F1F0EC",
+"_     c #F0EFEA",
+":     c #EFEEE9",
+"<     c #4F4F4D",
+"[     c #BDBCB8",
+"}     c #A7A6A3",
+"|     c #C6C6C4",
+"1     c #7C7C7B",
+"2     c #525251",
+"3     c #DBDBD9",
+"4     c #F5F4F1",
+"5     c #F4F3F0",
+"6     c #F3F2EE",
+"7     c #999894",
+"8     c #62625F",
+"9     c #BCBCB6",
+"0     c #EBE9E3",
+"a     c #838381",
+"b     c #D7D6D4",
+"c     c #A8A8A6",
+"d     c #515150",
+"e     c #7E7D7C",
+"f     c #DAD9D5",
+"g     c #EFEEE8",
+"h     c #EEEDE7",
+"i     c #4F4E4C",
+"j     c #BCBBB6",
+"k     c #EBE9E2",
+"l     c #EAE8E1",
+"m     c #EEEDE8",
+"n     c #EDECE6",
+"o     c #4E4E4C",
+"p     c #797976",
+"q     c #797874",
+"r     c #E9E8E1",
+"s     c #E8E7DF",
+"t     c #B4B3AF",
+"u     c #DED5BB",
+"v     c #AF9F7E",
+"w     c #7A7A77",
+"x     c #979691",
+"y     c #EAE9E2",
+"z     c #959590",
+"A     c #787773",
+"B     c #B8B7B0",
+"C     c #E6E4DC",
+"D     c #ECEBE4",
+"E     c #EBEAE3",
+"F     c #E9E7E0",
+"G     c #E8E6DF",
+"H     c #E7E5DD",
+"I     c #777671",
+"J     c #93918C",
+"K     c #E8E6DE",
+"L     c #E6E4DB",
+"M     c #E4E3DA",
+"N     c #75746F",
+"O     c #91908A",
+"P     c #E7E6DE",
+"Q     c #E6E5DC",
+"R     c #E5E4DB",
+"S     c #E4E2DA",
+"T     c #CCCBC4",
+"U     c #A3A29D",
+"V     c #CDCCC6",
+"W     c #959490",
+"X     c #CECDC7",
+"Y     c #E0D8B0",
+"Z     c #B39C82",
+"`     c #BCA488",
+" .    c #C5AC8F",
+"..    c #AA947B",
+"+.    c #A18D75",
+"@.    c #98856E",
+"#.    c #8F7D68",
+"$.    c #867561",
+"%.    c #7D6D5B",
+"&.    c #746554",
+"                                                ",
+"                            . . . .             ",
+"                  . . . . . + @ # $ .           ",
+"        . . . . . % $ & * = - ; > , .           ",
+"      . ' ) ! ~ { ] ^ * / ( _ : < [ } .         ",
+"      . | 1 2 3 4 5 6 / # _ : 7 8 9 0 .         ",
+"      . a b c d e f / # _ g h i j k l .         ",
+". . . . . . . . . . . . m n o p q r s t .       ",
+". u u u u u u u u u v . w o x y z A B C .       ",
+". u v v v v v v v v v . D E l F G H I J .       ",
+". u v v v v v v . v v . 0 l F K H L M N O .     ",
+". u v v v v v v . v v . r s P Q R S T U . .     ",
+". u v v v v v v v v v . s P C V W . . .         ",
+". u v v v v v v v v v . X z . . .       .       ",
+". u v v v v v v v v v . . .           . Y .     ",
+". u v v v v v v v . . .       . .   . Y Y Y .   ",
+". u v v v v v v v v .       . Z .     . Y Y Y . ",
+". u v v v v v . v v .     . ` Z . . . . . . . . ",
+". u v v v v v v . . .   .  .` Z ..+.@.#.$.%.&.. ",
+". u v v v v v v v v .   .  .` Z ..+.@.#.$.%..   ",
+". v v v v v v v v v .     . ` Z . . . . . .     ",
+". . . . . . . . . .         . Z .               ",
+"                              . .               ",
+"                                                "};