Mercurial > pidgin.yaz
changeset 10524:98daaf2f3209
[gaim-migrate @ 11841]
This was never a function I liked, and since nothing in gaim uses it and the only plugin that I know used it (extprefs) doesn't use it anymore I'm getting rid of it. If anyone knows anything still using this I'd suggest pointing them at extprefs for how to correctly do what they want to.
committer: Tailor Script <tailor@pidgin.im>
author | Etan Reisner <pidgin@unreliablesource.net> |
---|---|
date | Tue, 18 Jan 2005 05:35:33 +0000 |
parents | f5c9438982f8 |
children | ddea15f4cbc2 |
files | src/gtkimhtml.c src/gtkimhtml.h |
diffstat | 2 files changed, 0 insertions(+), 28 deletions(-) [+] |
line wrap: on
line diff
--- a/src/gtkimhtml.c Tue Jan 18 02:16:48 2005 +0000 +++ b/src/gtkimhtml.c Tue Jan 18 05:35:33 2005 +0000 @@ -3170,26 +3170,6 @@ } -void gtk_imhtml_font_zoom(GtkIMHtml *imhtml, double zoom) -{ - GtkRcStyle *s; - PangoFontDescription *font_desc = pango_font_description_new(); - - imhtml->zoom = zoom; - - if (!imhtml->original_fsize) - _init_original_fsize(imhtml); - - gtk_text_tag_table_foreach(gtk_text_buffer_get_tag_table(imhtml->text_buffer), - _recalculate_font_sizes, imhtml); - - pango_font_description_set_size(font_desc, (gint)((double) imhtml->original_fsize * zoom)); - - s = gtk_widget_get_modifier_style(GTK_WIDGET(imhtml)); - s->font_desc = font_desc; - gtk_widget_modify_style(GTK_WIDGET(imhtml), s); -} - static GtkTextTag *find_font_size_tag(GtkIMHtml *imhtml, int size) { gchar str[24];
--- a/src/gtkimhtml.h Tue Jan 18 02:16:48 2005 +0000 +++ b/src/gtkimhtml.h Tue Jan 18 05:35:33 2005 +0000 @@ -353,14 +353,6 @@ void gtk_imhtml_page_down(GtkIMHtml *imhtml); /** - * Scales the font sizes in a GTK IM/HTML by a given factor. - * - * @param imhtml The GTK IM/HTML. - * @param zoom The factor by which to scale the font sizes. - */ -void gtk_imhtml_font_zoom(GtkIMHtml *imhtml, double zoom); - -/** * Creates and returns an new GTK IM/HTML scalable object. * * @return A new IM/HTML Scalable object.