Mercurial > pidgin.yaz
comparison src/gtkutils.c @ 10566:62fc579810f4
[gaim-migrate @ 11949]
Mostly some whitespace cleanups, a couple of documentation fixes/cleanups.
I also removed toggle_sensitive() since it was duplicated a couple lines down.
committer: Tailor Script <tailor@pidgin.im>
author | Etan Reisner <pidgin@unreliablesource.net> |
---|---|
date | Wed, 02 Feb 2005 17:13:41 +0000 |
parents | 1a97d5e88d12 |
children | 896efbdc74e2 |
comparison
equal
deleted
inserted
replaced
10565:3b66a8f25bad | 10566:62fc579810f4 |
---|---|
165 | 165 |
166 return frame; | 166 return frame; |
167 } | 167 } |
168 | 168 |
169 void | 169 void |
170 toggle_sensitive(GtkWidget *widget, GtkWidget *to_toggle) | |
171 { | |
172 gboolean sensitivity = GTK_WIDGET_IS_SENSITIVE(to_toggle); | |
173 | |
174 gtk_widget_set_sensitive(to_toggle, !sensitivity); | |
175 } | |
176 | |
177 void | |
178 gaim_gtk_set_sensitive_if_input(GtkWidget *entry, GtkWidget *dialog) | 170 gaim_gtk_set_sensitive_if_input(GtkWidget *entry, GtkWidget *dialog) |
179 { | 171 { |
180 const char *text = gtk_entry_get_text(GTK_ENTRY(entry)); | 172 const char *text = gtk_entry_get_text(GTK_ENTRY(entry)); |
181 gtk_dialog_set_response_sensitive(GTK_DIALOG(dialog), GTK_RESPONSE_OK, | 173 gtk_dialog_set_response_sensitive(GTK_DIALOG(dialog), GTK_RESPONSE_OK, |
182 (*text != '\0')); | 174 (*text != '\0')); |