Mercurial > pidgin.yaz
diff src/gtkutils.c @ 8901:c430e99bb147
[gaim-migrate @ 9670]
Add a "Warning: Passwords are stored in plain text!" to the account
editor when "Remember password" is checked.
committer: Tailor Script <tailor@pidgin.im>
author | Mark Doliner <mark@kingant.net> |
---|---|
date | Fri, 07 May 2004 03:57:30 +0000 |
parents | 1ab2a9c17f4a |
children | d729311f6352 |
line wrap: on
line diff
--- a/src/gtkutils.c Fri May 07 03:25:00 2004 +0000 +++ b/src/gtkutils.c Fri May 07 03:57:30 2004 +0000 @@ -261,6 +261,18 @@ } } +void +gaim_gtk_toggle_showhide(GtkWidget *widget, GtkWidget *to_toggle) +{ + if (to_toggle == NULL) + return; + + if (GTK_WIDGET_VISIBLE(to_toggle)) + gtk_widget_hide(to_toggle); + else + gtk_widget_show(to_toggle); +} + void gaim_separator(GtkWidget *menu) { GtkWidget *menuitem;