# HG changeset patch # User Etan Reisner # Date 1106026533 0 # Node ID 98daaf2f3209fbdc45c6c2e8668c8ed53feac2c8 # Parent f5c9438982f886de9c30f5ce46ae56669a488eb7 [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 diff -r f5c9438982f8 -r 98daaf2f3209 src/gtkimhtml.c --- 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]; diff -r f5c9438982f8 -r 98daaf2f3209 src/gtkimhtml.h --- 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.