comparison src/gtkimhtml.c @ 9696:a57fa78e5752

[gaim-migrate @ 10555] gtk 2.0 fixes from nosnilmot committer: Tailor Script <tailor@pidgin.im>
author Mark Doliner <mark@kingant.net>
date Sat, 07 Aug 2004 03:22:47 +0000
parents 53e3c74b3628
children d6292978a704
comparison
equal deleted inserted replaced
9695:89110d3665df 9696:a57fa78e5752
2400 } 2400 }
2401 else if (oldfont && oldfont->face) 2401 else if (oldfont && oldfont->face)
2402 font->face = g_strdup(oldfont->face); 2402 font->face = g_strdup(oldfont->face);
2403 if (font->face && (atoi(font->face) > 100)) { 2403 if (font->face && (atoi(font->face) > 100)) {
2404 /* WTF is this? */ 2404 /* WTF is this? */
2405 /* Maybe it sets a max size on the font face? I seem to
2406 * remember bad things happening if the font size was
2407 * 2 billion */
2405 g_free(font->face); 2408 g_free(font->face);
2406 font->face = g_strdup("100"); 2409 font->face = g_strdup("100");
2407 } 2410 }
2408 2411
2409 if (oldfont && oldfont->sml) 2412 if (oldfont && oldfont->sml)
2746 gchar *type = NULL; 2749 gchar *type = NULL;
2747 GError *error = NULL; 2750 GError *error = NULL;
2748 #if GTK_CHECK_VERSION(2,2,0) 2751 #if GTK_CHECK_VERSION(2,2,0)
2749 GSList *formats = gdk_pixbuf_get_formats(); 2752 GSList *formats = gdk_pixbuf_get_formats();
2750 #else 2753 #else
2751 GtkIMHtmlImage *image = g_object_get_data(G_OBJECT(sel), "GtkIMHtmlImage");
2752 char *basename = g_path_get_basename(filename); 2754 char *basename = g_path_get_basename(filename);
2753 char *ext = strrchr(basename, '.'); 2755 char *ext = strrchr(basename, '.');
2754 #endif 2756 #endif
2755 2757
2756 gtk_widget_destroy(image->filesel); 2758 gtk_widget_destroy(image->filesel);