comparison src/gtkimhtml.c @ 10184:f6918ab1624a

[gaim-migrate @ 11299] I can't not fix excessive whitespace. It's not a habit it's cool, I feel alive. committer: Tailor Script <tailor@pidgin.im>
author Mark Doliner <mark@kingant.net>
date Mon, 15 Nov 2004 00:37:54 +0000
parents a0529cf29ad4
children 6f49ce1d394d
comparison
equal deleted inserted replaced
10183:9cff8cc12746 10184:f6918ab1624a
97 * way that it base the sizes off the default font size rather than using arbitrary font sizes. */ 97 * way that it base the sizes off the default font size rather than using arbitrary font sizes. */
98 #define MAX_FONT_SIZE 7 98 #define MAX_FONT_SIZE 7
99 #define POINT_SIZE(x) (options & GTK_IMHTML_USE_POINTSIZE ? x : _point_sizes [MIN ((x), MAX_FONT_SIZE) - 1]) 99 #define POINT_SIZE(x) (options & GTK_IMHTML_USE_POINTSIZE ? x : _point_sizes [MIN ((x), MAX_FONT_SIZE) - 1])
100 static gdouble _point_sizes [] = { .69444444, .8333333, 1, 1.2, 1.44, 1.728, 2.0736}; 100 static gdouble _point_sizes [] = { .69444444, .8333333, 1, 1.2, 1.44, 1.728, 2.0736};
101 101
102 enum { 102 enum {
103 TARGET_HTML, 103 TARGET_HTML,
104 TARGET_UTF8_STRING, 104 TARGET_UTF8_STRING,
105 TARGET_COMPOUND_TEXT, 105 TARGET_COMPOUND_TEXT,
106 TARGET_STRING, 106 TARGET_STRING,
107 TARGET_TEXT 107 TARGET_TEXT
1007 0, g_cclosure_marshal_VOID__VOID, 1007 0, g_cclosure_marshal_VOID__VOID,
1008 G_TYPE_NONE, 0); 1008 G_TYPE_NONE, 0);
1009 1009
1010 klass->toggle_format = imhtml_toggle_format; 1010 klass->toggle_format = imhtml_toggle_format;
1011 klass->message_send = imhtml_message_send; 1011 klass->message_send = imhtml_message_send;
1012 1012
1013 gobject_class->finalize = gtk_imhtml_finalize; 1013 gobject_class->finalize = gtk_imhtml_finalize;
1014 widget_class->drag_motion = gtk_text_view_drag_motion; 1014 widget_class->drag_motion = gtk_text_view_drag_motion;
1015 gtk_widget_class_install_style_property(widget_class, g_param_spec_boxed("hyperlink-color", 1015 gtk_widget_class_install_style_property(widget_class, g_param_spec_boxed("hyperlink-color",
1016 _("Hyperlink color"), 1016 _("Hyperlink color"),
1017 _("Color to draw hyperlinks."), 1017 _("Color to draw hyperlinks."),
1018 GDK_TYPE_COLOR, G_PARAM_READABLE)); 1018 GDK_TYPE_COLOR, G_PARAM_READABLE));
1019 1019