pidgin/gtkimhtml.c

branch
soc.2013.gobjectification
changeset 35060
195dbb3b6432
parent 35058
506740af931c
child 35265
77664079d0f0
equal deleted inserted replaced
35059:5fd94b14cc49 35060:195dbb3b6432
1658 widget_class->style_set = gtk_imhtml_style_set; 1658 widget_class->style_set = gtk_imhtml_style_set;
1659 1659
1660 gtk_widget_class_install_style_property(widget_class, g_param_spec_boxed("hyperlink-color", 1660 gtk_widget_class_install_style_property(widget_class, g_param_spec_boxed("hyperlink-color",
1661 "Hyperlink color", 1661 "Hyperlink color",
1662 "Color to draw hyperlinks.", 1662 "Color to draw hyperlinks.",
1663 GDK_TYPE_COLOR, G_PARAM_READABLE)); 1663 GDK_TYPE_COLOR, G_PARAM_READABLE | G_PARAM_STATIC_STRINGS));
1664 gtk_widget_class_install_style_property(widget_class, g_param_spec_boxed("hyperlink-visited-color", 1664 gtk_widget_class_install_style_property(widget_class, g_param_spec_boxed("hyperlink-visited-color",
1665 "Hyperlink visited color", 1665 "Hyperlink visited color",
1666 "Color to draw hyperlink after it has been visited (or activated).", 1666 "Color to draw hyperlink after it has been visited (or activated).",
1667 GDK_TYPE_COLOR, G_PARAM_READABLE)); 1667 GDK_TYPE_COLOR, G_PARAM_READABLE | G_PARAM_STATIC_STRINGS));
1668 gtk_widget_class_install_style_property(widget_class, g_param_spec_boxed("hyperlink-prelight-color", 1668 gtk_widget_class_install_style_property(widget_class, g_param_spec_boxed("hyperlink-prelight-color",
1669 "Hyperlink prelight color", 1669 "Hyperlink prelight color",
1670 "Color to draw hyperlinks when mouse is over them.", 1670 "Color to draw hyperlinks when mouse is over them.",
1671 GDK_TYPE_COLOR, G_PARAM_READABLE)); 1671 GDK_TYPE_COLOR, G_PARAM_READABLE | G_PARAM_STATIC_STRINGS));
1672 gtk_widget_class_install_style_property(widget_class, g_param_spec_boxed("send-name-color", 1672 gtk_widget_class_install_style_property(widget_class, g_param_spec_boxed("send-name-color",
1673 "Sent Message Name Color", 1673 "Sent Message Name Color",
1674 "Color to draw the name of a message you sent.", 1674 "Color to draw the name of a message you sent.",
1675 GDK_TYPE_COLOR, G_PARAM_READABLE)); 1675 GDK_TYPE_COLOR, G_PARAM_READABLE | G_PARAM_STATIC_STRINGS));
1676 gtk_widget_class_install_style_property(widget_class, g_param_spec_boxed("receive-name-color", 1676 gtk_widget_class_install_style_property(widget_class, g_param_spec_boxed("receive-name-color",
1677 "Received Message Name Color", 1677 "Received Message Name Color",
1678 "Color to draw the name of a message you received.", 1678 "Color to draw the name of a message you received.",
1679 GDK_TYPE_COLOR, G_PARAM_READABLE)); 1679 GDK_TYPE_COLOR, G_PARAM_READABLE | G_PARAM_STATIC_STRINGS));
1680 gtk_widget_class_install_style_property(widget_class, g_param_spec_boxed("highlight-name-color", 1680 gtk_widget_class_install_style_property(widget_class, g_param_spec_boxed("highlight-name-color",
1681 "\"Attention\" Name Color", 1681 "\"Attention\" Name Color",
1682 "Color to draw the name of a message you received containing your name.", 1682 "Color to draw the name of a message you received containing your name.",
1683 GDK_TYPE_COLOR, G_PARAM_READABLE)); 1683 GDK_TYPE_COLOR, G_PARAM_READABLE | G_PARAM_STATIC_STRINGS));
1684 gtk_widget_class_install_style_property(widget_class, g_param_spec_boxed("action-name-color", 1684 gtk_widget_class_install_style_property(widget_class, g_param_spec_boxed("action-name-color",
1685 "Action Message Name Color", 1685 "Action Message Name Color",
1686 "Color to draw the name of an action message.", 1686 "Color to draw the name of an action message.",
1687 GDK_TYPE_COLOR, G_PARAM_READABLE)); 1687 GDK_TYPE_COLOR, G_PARAM_READABLE | G_PARAM_STATIC_STRINGS));
1688 gtk_widget_class_install_style_property(widget_class, g_param_spec_boxed("whisper-action-name-color", 1688 gtk_widget_class_install_style_property(widget_class, g_param_spec_boxed("whisper-action-name-color",
1689 "Action Message Name Color for Whispered Message", 1689 "Action Message Name Color for Whispered Message",
1690 "Color to draw the name of a whispered action message.", 1690 "Color to draw the name of a whispered action message.",
1691 GDK_TYPE_COLOR, G_PARAM_READABLE)); 1691 GDK_TYPE_COLOR, G_PARAM_READABLE | G_PARAM_STATIC_STRINGS));
1692 gtk_widget_class_install_style_property(widget_class, g_param_spec_boxed("whisper-name-color", 1692 gtk_widget_class_install_style_property(widget_class, g_param_spec_boxed("whisper-name-color",
1693 "Whisper Message Name Color", 1693 "Whisper Message Name Color",
1694 "Color to draw the name of a whispered message.", 1694 "Color to draw the name of a whispered message.",
1695 GDK_TYPE_COLOR, G_PARAM_READABLE)); 1695 GDK_TYPE_COLOR, G_PARAM_READABLE | G_PARAM_STATIC_STRINGS));
1696 1696
1697 /* Customizable typing notification ... sort of. Example: 1697 /* Customizable typing notification ... sort of. Example:
1698 * GtkIMHtml::typing-notification-font = "monospace italic light 8.0" 1698 * GtkIMHtml::typing-notification-font = "monospace italic light 8.0"
1699 * GtkIMHtml::typing-notification-color = "#ff0000" 1699 * GtkIMHtml::typing-notification-color = "#ff0000"
1700 * GtkIMHtml::typing-notification-enable = 1 1700 * GtkIMHtml::typing-notification-enable = 1
1701 */ 1701 */
1702 gtk_widget_class_install_style_property(widget_class, g_param_spec_boxed("typing-notification-color", 1702 gtk_widget_class_install_style_property(widget_class, g_param_spec_boxed("typing-notification-color",
1703 "Typing notification color", 1703 "Typing notification color",
1704 "The color to use for the typing notification", 1704 "The color to use for the typing notification",
1705 GDK_TYPE_COLOR, G_PARAM_READABLE)); 1705 GDK_TYPE_COLOR, G_PARAM_READABLE | G_PARAM_STATIC_STRINGS));
1706 gtk_widget_class_install_style_property(widget_class, g_param_spec_string("typing-notification-font", 1706 gtk_widget_class_install_style_property(widget_class, g_param_spec_string("typing-notification-font",
1707 "Typing notification font", 1707 "Typing notification font",
1708 "The font to use for the typing notification", 1708 "The font to use for the typing notification",
1709 "light 8.0", G_PARAM_READABLE)); 1709 "light 8.0", G_PARAM_READABLE | G_PARAM_STATIC_STRINGS));
1710 gtk_widget_class_install_style_property(widget_class, g_param_spec_boolean("typing-notification-enable", 1710 gtk_widget_class_install_style_property(widget_class, g_param_spec_boolean("typing-notification-enable",
1711 "Enable typing notification", 1711 "Enable typing notification",
1712 "Enable typing notification", 1712 "Enable typing notification",
1713 TRUE, G_PARAM_READABLE)); 1713 TRUE, G_PARAM_READABLE | G_PARAM_STATIC_STRINGS));
1714 1714
1715 #if 0 1715 #if 0
1716 GtkBindingSet *binding_set; 1716 GtkBindingSet *binding_set;
1717 binding_set = gtk_binding_set_by_class (parent_class); 1717 binding_set = gtk_binding_set_by_class (parent_class);
1718 gtk_binding_entry_add_signal (binding_set, GDK_KEY_b, GDK_CONTROL_MASK, "format_function_toggle", 1, G_TYPE_INT, GTK_IMHTML_BOLD); 1718 gtk_binding_entry_add_signal (binding_set, GDK_KEY_b, GDK_CONTROL_MASK, "format_function_toggle", 1, G_TYPE_INT, GTK_IMHTML_BOLD);

mercurial