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
This commit is contained in:
Larry Ewing
2001-10-20 22:59:16 +00:00
committed by Larry Ewing
parent 093c2a884d
commit bb068baabd
4 changed files with 35 additions and 1 deletions

View File

@ -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

View File

@ -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
};

View File

@ -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)
{

View File

@ -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);