Mercurial > pidgin.yaz
diff pidgin/gtkrequest.c @ 24987:17b840986607
GTK+ 2.16.0 will set the invisible character to a nice bullet instead of
an asterisk, which has been the default up until now. So we should stop
setting the invisible character ourselves in GTK+ 2.16.0 and higher. The
comment in pidgin.h is cool because it talks about stuff that hasn't
happened yet in the past tense.
| author | Mark Doliner <mark@kingant.net> |
|---|---|
| date | Sat, 24 Jan 2009 02:19:14 +0000 |
| parents | f10aba5592c6 |
| children | 3d8c53f3108e |
line wrap: on
line diff
--- a/pidgin/gtkrequest.c Sat Jan 24 02:02:25 2009 +0000 +++ b/pidgin/gtkrequest.c Sat Jan 24 02:19:14 2009 +0000 @@ -430,8 +430,10 @@ if (masked) { gtk_entry_set_visibility(GTK_ENTRY(entry), FALSE); +#if !GTK_CHECK_VERSION(2,16,0) if (gtk_entry_get_invisible_char(GTK_ENTRY(entry)) == '*') gtk_entry_set_invisible_char(GTK_ENTRY(entry), PIDGIN_INVISIBLE_CHAR); +#endif /* Less than GTK+ 2.16 */ } } gtk_widget_show_all(vbox); @@ -791,8 +793,10 @@ if (purple_request_field_string_is_masked(field)) { gtk_entry_set_visibility(GTK_ENTRY(widget), FALSE); +#if !GTK_CHECK_VERSION(2,16,0) if (gtk_entry_get_invisible_char(GTK_ENTRY(widget)) == '*') gtk_entry_set_invisible_char(GTK_ENTRY(widget), PIDGIN_INVISIBLE_CHAR); +#endif /* Less than GTK+ 2.16 */ } gtk_editable_set_editable(GTK_EDITABLE(widget),
