Mercurial > pidgin
comparison src/gtkimhtml.c @ 12900:778d08e87ad0
[gaim-migrate @ 15253]
Make gtk_imhtml_get_current_format() set values to FALSE instead of leaving them unset. Also, enable passing NULL in case you're only interested in one or two types of formatting.
committer: Tailor Script <tailor@pidgin.im>
author | Richard Laager <rlaager@wiktel.com> |
---|---|
date | Tue, 17 Jan 2006 01:43:33 +0000 |
parents | 339d61ebca8a |
children | d38aadce44c5 |
comparison
equal
deleted
inserted
replaced
12899:83de40f1c0df | 12900:778d08e87ad0 |
---|---|
3910 } | 3910 } |
3911 | 3911 |
3912 void gtk_imhtml_get_current_format(GtkIMHtml *imhtml, gboolean *bold, | 3912 void gtk_imhtml_get_current_format(GtkIMHtml *imhtml, gboolean *bold, |
3913 gboolean *italic, gboolean *underline) | 3913 gboolean *italic, gboolean *underline) |
3914 { | 3914 { |
3915 if (imhtml->edit.bold) | 3915 if (bold != NULL) |
3916 (*bold) = TRUE; | 3916 (*bold) = imhtml->edit.bold; |
3917 if (imhtml->edit.italic) | 3917 if (italic != NULL) |
3918 (*italic) = TRUE; | 3918 (*italic) = imhtml->edit.italic; |
3919 if (imhtml->edit.underline) | 3919 if (underline != NULL) |
3920 (*underline) = TRUE; | 3920 (*underline) = imhtml->edit.underline; |
3921 } | 3921 } |
3922 | 3922 |
3923 char * | 3923 char * |
3924 gtk_imhtml_get_current_fontface(GtkIMHtml *imhtml) | 3924 gtk_imhtml_get_current_fontface(GtkIMHtml *imhtml) |
3925 { | 3925 { |