aboutsummaryrefslogtreecommitdiffstats
path: root/mail
diff options
context:
space:
mode:
authorLarry Ewing <lewing@ximian.com>2001-10-21 06:59:16 +0800
committerLarry Ewing <lewing@src.gnome.org>2001-10-21 06:59:16 +0800
commitbb068baabdcba06fb0353077329387982e36b925 (patch)
tree70bb64a1958b03012560e8818da34b4da2ddc7a7 /mail
parent093c2a884deae60f0da5e7b26821895b91834b3e (diff)
downloadgsoc2013-evolution-bb068baabdcba06fb0353077329387982e36b925.tar
gsoc2013-evolution-bb068baabdcba06fb0353077329387982e36b925.tar.gz
gsoc2013-evolution-bb068baabdcba06fb0353077329387982e36b925.tar.bz2
gsoc2013-evolution-bb068baabdcba06fb0353077329387982e36b925.tar.lz
gsoc2013-evolution-bb068baabdcba06fb0353077329387982e36b925.tar.xz
gsoc2013-evolution-bb068baabdcba06fb0353077329387982e36b925.tar.zst
gsoc2013-evolution-bb068baabdcba06fb0353077329387982e36b925.zip
hook up zoom functions.
2001-10-20 Larry Ewing <lewing@ximian.com> * folder-browser-ui.c: hook up zoom functions. * mail-callbacks.h: add prototypes. * mail-callbacks.c (zoom_in): added. (zoom_out): added. (zoom_reset): added. svn path=/trunk/; revision=13832
Diffstat (limited to 'mail')
-rw-r--r--mail/ChangeLog10
-rw-r--r--mail/folder-browser-ui.c4
-rw-r--r--mail/mail-callbacks.c18
-rw-r--r--mail/mail-callbacks.h4
4 files changed, 35 insertions, 1 deletions
diff --git a/mail/ChangeLog b/mail/ChangeLog
index 94d0602fc6..33216ae94e 100644
--- a/mail/ChangeLog
+++ b/mail/ChangeLog
@@ -1,3 +1,13 @@
+2001-10-20 Larry Ewing <lewing@ximian.com>
+
+ * folder-browser-ui.c: hook up zoom functions.
+
+ * mail-callbacks.h: add prototypes.
+
+ * mail-callbacks.c (zoom_in): added.
+ (zoom_out): added.
+ (zoom_reset): added.
+
2001-10-19 Jeffrey Stedfast <fejj@ximian.com>
* mail-callbacks.c (transfer_msg): Allow copy/move to/from vTrash
diff --git a/mail/folder-browser-ui.c b/mail/folder-browser-ui.c
index 6e691c51f9..12fd394cfe 100644
--- a/mail/folder-browser-ui.c
+++ b/mail/folder-browser-ui.c
@@ -63,6 +63,9 @@ static BonoboUIVerb message_verbs [] = {
BONOBO_UI_UNSAFE_VERB ("MessageSearch", search_msg),
BONOBO_UI_UNSAFE_VERB ("MessageUndelete", undelete_msg),
BONOBO_UI_UNSAFE_VERB ("PrintMessage", print_msg),
+ BONOBO_UI_UNSAFE_VERB ("TextZoomIn", zoom_in),
+ BONOBO_UI_UNSAFE_VERB ("TextZoomOut", zoom_out),
+ BONOBO_UI_UNSAFE_VERB ("TextZoomReset", zoom_reset),
BONOBO_UI_UNSAFE_VERB ("PrintPreviewMessage", print_preview_msg),
BONOBO_UI_UNSAFE_VERB ("ToolsFilterMailingList", filter_mlist),
BONOBO_UI_UNSAFE_VERB ("ToolsFilterRecipient", filter_recipient),
@@ -509,7 +512,6 @@ static const char *message_pane_enables[] = {
* selected. */
"PrintMessage", "PrintPreviewMessage",
"ViewFullHeaders", "ViewLoadImages", "ViewNormal", "ViewSource",
-
NULL
};
diff --git a/mail/mail-callbacks.c b/mail/mail-callbacks.c
index f4c3154c8c..3b626e5552 100644
--- a/mail/mail-callbacks.c
+++ b/mail/mail-callbacks.c
@@ -1578,6 +1578,24 @@ toggle_as_important (BonoboUIComponent *uih, void *user_data, const char *path)
toggle_flags (FOLDER_BROWSER (user_data), CAMEL_MESSAGE_FLAGGED);
}
+void
+zoom_in (BonoboUIComponent *uih, void *user_data, const char *path)
+{
+ gtk_html_zoom_in (FOLDER_BROWSER (user_data)->mail_display->html);
+}
+
+void
+zoom_out (BonoboUIComponent *uih, void *user_data, const char *path)
+{
+ gtk_html_zoom_out (FOLDER_BROWSER (user_data)->mail_display->html);
+}
+
+void
+zoom_reset (BonoboUIComponent *uih, void *user_data, const char *path)
+{
+ gtk_html_zoom_reset (FOLDER_BROWSER (user_data)->mail_display->html);
+}
+
static void
do_edit_messages (CamelFolder *folder, GPtrArray *uids, GPtrArray *messages, void *data)
{
diff --git a/mail/mail-callbacks.h b/mail/mail-callbacks.h
index 42d3004c38..0eeb8ff247 100644
--- a/mail/mail-callbacks.h
+++ b/mail/mail-callbacks.h
@@ -91,6 +91,10 @@ void mark_as_important (BonoboUIComponent *uih, void *user_data, const char
void mark_as_unimportant (BonoboUIComponent *uih, void *user_data, const char *path);
void toggle_as_important (BonoboUIComponent *uih, void *user_data, const char *path);
+void zoom_in (BonoboUIComponent *uih, void *user_data, const char *path);
+void zoom_out (BonoboUIComponent *uih, void *user_data, const char *path);
+void zoom_reset (BonoboUIComponent *uih, void *user_data, const char *path);
+
void edit_message (BonoboUIComponent *uih, void *user_data, const char *path);
void open_message (BonoboUIComponent *uih, void *user_data, const char *path);
void expunge_folder (BonoboUIComponent *uih, void *user_data, const char *path);