Mercurial > pidgin.yaz
comparison pidgin/gtkimhtmltoolbar.c @ 29018:1929b7a0c2c8
merged with im.pidgin.pidgin
author | Yoshiki Yazawa <yaz@honeyplanet.jp> |
---|---|
date | Wed, 25 Nov 2009 13:40:01 +0900 |
parents | cd3beebb1d13 998c37689f7c |
children | f44718de8b06 |
comparison
equal
deleted
inserted
replaced
28977:2ecd4bc80500 | 29018:1929b7a0c2c8 |
---|---|
1499 | 1499 |
1500 | 1500 |
1501 void gtk_imhtmltoolbar_attach(GtkIMHtmlToolbar *toolbar, GtkWidget *imhtml) | 1501 void gtk_imhtmltoolbar_attach(GtkIMHtmlToolbar *toolbar, GtkWidget *imhtml) |
1502 { | 1502 { |
1503 GtkIMHtmlButtons buttons; | 1503 GtkIMHtmlButtons buttons; |
1504 gboolean bold, italic, underline; | |
1505 | 1504 |
1506 g_return_if_fail(toolbar != NULL); | 1505 g_return_if_fail(toolbar != NULL); |
1507 g_return_if_fail(GTK_IS_IMHTMLTOOLBAR(toolbar)); | 1506 g_return_if_fail(GTK_IS_IMHTMLTOOLBAR(toolbar)); |
1508 g_return_if_fail(imhtml != NULL); | 1507 g_return_if_fail(imhtml != NULL); |
1509 g_return_if_fail(GTK_IS_IMHTML(imhtml)); | 1508 g_return_if_fail(GTK_IS_IMHTML(imhtml)); |
1515 g_signal_connect(G_OBJECT(imhtml), "format_function_update", G_CALLBACK(update_format_cb), toolbar); | 1514 g_signal_connect(G_OBJECT(imhtml), "format_function_update", G_CALLBACK(update_format_cb), toolbar); |
1516 g_signal_connect_after(G_OBJECT(GTK_IMHTML(imhtml)->text_buffer), "mark-set", G_CALLBACK(mark_set_cb), toolbar); | 1515 g_signal_connect_after(G_OBJECT(GTK_IMHTML(imhtml)->text_buffer), "mark-set", G_CALLBACK(mark_set_cb), toolbar); |
1517 | 1516 |
1518 buttons = gtk_imhtml_get_format_functions(GTK_IMHTML(imhtml)); | 1517 buttons = gtk_imhtml_get_format_functions(GTK_IMHTML(imhtml)); |
1519 update_buttons_cb(GTK_IMHTML(imhtml), buttons, toolbar); | 1518 update_buttons_cb(GTK_IMHTML(imhtml), buttons, toolbar); |
1520 | |
1521 gtk_imhtml_get_current_format(GTK_IMHTML(imhtml), &bold, &italic, &underline); | |
1522 | |
1523 update_buttons(toolbar); | 1519 update_buttons(toolbar); |
1524 } | 1520 } |
1525 | 1521 |
1526 void gtk_imhtmltoolbar_associate_smileys(GtkIMHtmlToolbar *toolbar, const char *proto_id) | 1522 void gtk_imhtmltoolbar_associate_smileys(GtkIMHtmlToolbar *toolbar, const char *proto_id) |
1527 { | 1523 { |