Mercurial > pidgin.yaz
comparison src/gtkimhtmltoolbar.c @ 8788:262f81346c0a
[gaim-migrate @ 9550]
Disable the insert image button on the create away message dialog.
I also made the toolbar grab which format options it should support
when it is attached to the imhtml. So you can set if the imhtml
should support smileys, images, background colors, etc and THEN
attach the toolbar and the buttons will still be correctly grayed out.
committer: Tailor Script <tailor@pidgin.im>
author | Mark Doliner <mark@kingant.net> |
---|---|
date | Sat, 24 Apr 2004 01:43:11 +0000 |
parents | a871dec1c9d6 |
children | 482fc53c969d |
comparison
equal
deleted
inserted
replaced
8787:163199223fb9 | 8788:262f81346c0a |
---|---|
1015 } | 1015 } |
1016 | 1016 |
1017 | 1017 |
1018 void gtk_imhtmltoolbar_attach(GtkIMHtmlToolbar *toolbar, GtkWidget *imhtml) | 1018 void gtk_imhtmltoolbar_attach(GtkIMHtmlToolbar *toolbar, GtkWidget *imhtml) |
1019 { | 1019 { |
1020 GtkIMHtmlButtons buttons; | |
1020 gboolean bold, italic, underline; | 1021 gboolean bold, italic, underline; |
1021 | 1022 |
1022 g_return_if_fail(toolbar != NULL); | 1023 g_return_if_fail(toolbar != NULL); |
1023 g_return_if_fail(GTK_IS_IMHTMLTOOLBAR(toolbar)); | 1024 g_return_if_fail(GTK_IS_IMHTMLTOOLBAR(toolbar)); |
1024 g_return_if_fail(imhtml != NULL); | 1025 g_return_if_fail(imhtml != NULL); |
1029 g_signal_connect(G_OBJECT(imhtml), "format_function_toggle", G_CALLBACK(toggle_button_cb), toolbar); | 1030 g_signal_connect(G_OBJECT(imhtml), "format_function_toggle", G_CALLBACK(toggle_button_cb), toolbar); |
1030 g_signal_connect(G_OBJECT(imhtml), "format_function_clear", G_CALLBACK(reset_buttons_cb), toolbar); | 1031 g_signal_connect(G_OBJECT(imhtml), "format_function_clear", G_CALLBACK(reset_buttons_cb), toolbar); |
1031 g_signal_connect(G_OBJECT(imhtml), "format_function_update", G_CALLBACK(update_format_cb), toolbar); | 1032 g_signal_connect(G_OBJECT(imhtml), "format_function_update", G_CALLBACK(update_format_cb), toolbar); |
1032 g_signal_connect_after(G_OBJECT(GTK_IMHTML(imhtml)->text_buffer), "mark-set", G_CALLBACK(mark_set_cb), toolbar); | 1033 g_signal_connect_after(G_OBJECT(GTK_IMHTML(imhtml)->text_buffer), "mark-set", G_CALLBACK(mark_set_cb), toolbar); |
1033 | 1034 |
1035 buttons = gtk_imhtml_get_format_functions(GTK_IMHTML(imhtml)); | |
1036 update_buttons_cb(imhtml, buttons, toolbar); | |
1037 | |
1034 bold = italic = underline = FALSE; | 1038 bold = italic = underline = FALSE; |
1035 | 1039 |
1036 gtk_imhtml_get_current_format(GTK_IMHTML(imhtml), &bold, &italic, &underline); | 1040 gtk_imhtml_get_current_format(GTK_IMHTML(imhtml), &bold, &italic, &underline); |
1037 | 1041 |
1038 if(bold) | 1042 if(bold) |