comparison src/gtkstatusselector.c @ 10404:ce098e226486

[gaim-migrate @ 11649] Make some things better, and some whitespace cleanup. committer: Tailor Script <tailor@pidgin.im>
author Mark Doliner <mark@kingant.net>
date Fri, 24 Dec 2004 00:05:36 +0000
parents 6a043ae92db6
children 6feef0a9098a
comparison
equal deleted inserted replaced
10403:e5455f1dc9b6 10404:ce098e226486
181 gtk_box_pack_start(GTK_BOX(selector), frame, TRUE, TRUE, 0); 181 gtk_box_pack_start(GTK_BOX(selector), frame, TRUE, TRUE, 0);
182 gtk_widget_hide(toolbar); 182 gtk_widget_hide(toolbar);
183 183
184 g_signal_connect(G_OBJECT(entry), "key_press_event", 184 g_signal_connect(G_OBJECT(entry), "key_press_event",
185 G_CALLBACK(key_press_cb), selector); 185 G_CALLBACK(key_press_cb), selector);
186 #if 0
187 gaim_signal_connect(gaim_connections_get_handle(), "signed-on", 186 gaim_signal_connect(gaim_connections_get_handle(), "signed-on",
188 selector, GAIM_CALLBACK(signed_on_off_cb), 187 selector, GAIM_CALLBACK(signed_on_off_cb),
189 selector); 188 selector);
190 gaim_signal_connect(gaim_connections_get_handle(), "signed-off", 189 gaim_signal_connect(gaim_connections_get_handle(), "signed-off",
191 selector, GAIM_CALLBACK(signed_on_off_cb), 190 selector, GAIM_CALLBACK(signed_on_off_cb),
192 selector); 191 selector);
193 #endif 192
194 rebuild_list(selector); 193 rebuild_list(selector);
195 } 194 }
196 195
197 static void 196 static void
198 gaim_gtk_status_selector_finalize(GObject *obj) 197 gaim_gtk_status_selector_finalize(GObject *obj)
297 296
298 for (l = gaim_accounts_get_all(); l != NULL; l = l->next) 297 for (l = gaim_accounts_get_all(); l != NULL; l = l->next)
299 { 298 {
300 GaimAccount *account = (GaimAccount*)l->data; 299 GaimAccount *account = (GaimAccount*)l->data;
301 GaimStatusType *status_type; 300 GaimStatusType *status_type;
302 301
303 if (!gaim_account_get_enabled(account, GAIM_GTK_UI)) 302 if (!gaim_account_get_enabled(account, GAIM_GTK_UI))
304 continue; 303 continue;
305 304
306 status_type = gaim_account_get_status_type(account, 305 status_type = gaim_account_get_status_type(account,
307 status_type_id); 306 status_type_id);
357 356
358 for (l = gaim_accounts_get_all(); l != NULL; l = l->next) 357 for (l = gaim_accounts_get_all(); l != NULL; l = l->next)
359 { 358 {
360 GaimAccount *account = (GaimAccount*)l->data; 359 GaimAccount *account = (GaimAccount*)l->data;
361 GaimStatusType *status_type; 360 GaimStatusType *status_type;
362 361
363 if (!gaim_account_get_enabled(account, GAIM_GTK_UI)) 362 if (!gaim_account_get_enabled(account, GAIM_GTK_UI))
364 continue; 363 continue;
365 364
366 status_type = gaim_account_get_status_type(account, 365 status_type = gaim_account_get_status_type(account,
367 status_type_id); 366 status_type_id);