Mercurial > pidgin
comparison src/gtkimhtml.c @ 10699:c8b4bf3bf9e5
[gaim-migrate @ 12256]
Christopher (siege) O'Brien fixed the bug where gtkimhtml doesn't honor
button features when using the keyboard. The toolbar buttons still get
toggled though, so someone should fix that.
committer: Tailor Script <tailor@pidgin.im>
| author | Stu Tomlinson <stu@nosnilmot.com> |
|---|---|
| date | Wed, 16 Mar 2005 20:38:56 +0000 |
| parents | 4b9d6f77ca61 |
| children | c4cb90065e1d |
comparison
equal
deleted
inserted
replaced
| 10698:2f646d020011 | 10699:c8b4bf3bf9e5 |
|---|---|
| 960 return FALSE; | 960 return FALSE; |
| 961 } | 961 } |
| 962 | 962 |
| 963 static void imhtml_toggle_format(GtkIMHtml *imhtml, GtkIMHtmlButtons buttons) | 963 static void imhtml_toggle_format(GtkIMHtml *imhtml, GtkIMHtmlButtons buttons) |
| 964 { | 964 { |
| 965 /* since this function is the handler for the formatting keystrokes, | |
| 966 we need to check here that the formatting attempted is permitted */ | |
| 967 if (!(imhtml->format_functions & buttons)) | |
| 968 return; | |
| 969 | |
| 965 switch (buttons) { | 970 switch (buttons) { |
| 966 case GTK_IMHTML_BOLD: | 971 case GTK_IMHTML_BOLD: |
| 967 gtk_imhtml_toggle_bold(imhtml); | 972 gtk_imhtml_toggle_bold(imhtml); |
| 968 break; | 973 break; |
| 969 case GTK_IMHTML_ITALIC: | 974 case GTK_IMHTML_ITALIC: |
