Mercurial > pidgin
comparison src/gtkimhtml.c @ 2048:3366311426df
[gaim-migrate @ 2058]
little things
committer: Tailor Script <tailor@pidgin.im>
author | Eric Warmenhoven <eric@warmenhoven.org> |
---|---|
date | Sun, 17 Jun 2001 08:37:44 +0000 |
parents | 199ba82faacb |
children | 391440022697 |
comparison
equal
deleted
inserted
replaced
2047:21f1f1e0d4c5 | 2048:3366311426df |
---|---|
508 GList *bits; | 508 GList *bits; |
509 GtkIMHtmlBit *bit; | 509 GtkIMHtmlBit *bit; |
510 GList *chunks; | 510 GList *chunks; |
511 struct line_info *line; | 511 struct line_info *line; |
512 gfloat x, y; | 512 gfloat x, y; |
513 guint32 width, height; | 513 gint width, height; |
514 | 514 |
515 x = GTK_LAYOUT (imhtml)->hadjustment->value; | 515 x = GTK_LAYOUT (imhtml)->hadjustment->value; |
516 y = GTK_LAYOUT (imhtml)->vadjustment->value; | 516 y = GTK_LAYOUT (imhtml)->vadjustment->value; |
517 gdk_window_get_size (GTK_LAYOUT (imhtml)->bin_window, &width, &height); | 517 gdk_window_get_size (GTK_LAYOUT (imhtml)->bin_window, &width, &height); |
518 | 518 |
1589 if (name) { | 1589 if (name) { |
1590 gchar **choices = g_strsplit (name, ",", -1); | 1590 gchar **choices = g_strsplit (name, ",", -1); |
1591 | 1591 |
1592 for (i = 0; choices [i]; i++) { | 1592 for (i = 0; choices [i]; i++) { |
1593 for (j = 0; fontnames [j]; j++) | 1593 for (j = 0; fontnames [j]; j++) |
1594 if (!strcasecmp (fontnames [j], choices [i])) | 1594 if (!g_strcasecmp (fontnames [j], choices [i])) |
1595 break; | 1595 break; |
1596 if (fontnames [j]) | 1596 if (fontnames [j]) |
1597 break; | 1597 break; |
1598 } | 1598 } |
1599 | 1599 |
1604 } else if (!bold && !italics && !fontsize && imhtml->default_font) | 1604 } else if (!bold && !italics && !fontsize && imhtml->default_font) |
1605 return gdk_font_ref (imhtml->default_font); | 1605 return gdk_font_ref (imhtml->default_font); |
1606 | 1606 |
1607 if (!choice) { | 1607 if (!choice) { |
1608 for (i = 0; fontnames [i]; i++) | 1608 for (i = 0; fontnames [i]; i++) |
1609 if (!strcasecmp (fontnames [i], DEFAULT_FONT_NAME)) | 1609 if (!g_strcasecmp (fontnames [i], DEFAULT_FONT_NAME)) |
1610 break; | 1610 break; |
1611 if (fontnames [i]) | 1611 if (fontnames [i]) |
1612 choice = g_strdup (DEFAULT_FONT_NAME); | 1612 choice = g_strdup (DEFAULT_FONT_NAME); |
1613 } | 1613 } |
1614 | 1614 |