Mercurial > pidgin.yaz
comparison src/away.c @ 1790:c4864ac7792b
[gaim-migrate @ 1800]
left-justify for whiny-ass bitches
committer: Tailor Script <tailor@pidgin.im>
author | Eric Warmenhoven <eric@warmenhoven.org> |
---|---|
date | Tue, 01 May 2001 02:55:49 +0000 |
parents | 0da2a831c0ae |
children | f15d449b3167 |
comparison
equal
deleted
inserted
replaced
1789:511af0edd6f1 | 1790:c4864ac7792b |
---|---|
305 else if (applet && !imaway) | 305 else if (applet && !imaway) |
306 insert_applet_away(); | 306 insert_applet_away(); |
307 #endif | 307 #endif |
308 | 308 |
309 if (prefs_away_list != NULL) { | 309 if (prefs_away_list != NULL) { |
310 GtkWidget *hbox; | |
310 gtk_list_clear_items(GTK_LIST(prefs_away_list), 0, -1); | 311 gtk_list_clear_items(GTK_LIST(prefs_away_list), 0, -1); |
311 while (awy) { | 312 while (awy) { |
312 a = (struct away_message *)awy->data; | 313 a = (struct away_message *)awy->data; |
314 list_item = gtk_list_item_new(); | |
315 gtk_container_add(GTK_CONTAINER(prefs_away_list), list_item); | |
316 gtk_signal_connect(GTK_OBJECT(list_item), "select", GTK_SIGNAL_FUNC(away_list_clicked), a); | |
317 gtk_object_set_user_data(GTK_OBJECT(list_item), a); | |
318 gtk_widget_show(list_item); | |
319 | |
320 hbox = gtk_hbox_new(FALSE, 5); | |
321 gtk_container_add(GTK_CONTAINER(list_item), hbox); | |
322 gtk_widget_show(hbox); | |
323 | |
313 label = gtk_label_new(a->name); | 324 label = gtk_label_new(a->name); |
314 list_item = gtk_list_item_new(); | 325 gtk_box_pack_start(GTK_BOX(hbox), label, FALSE, FALSE, 5); |
315 gtk_container_add(GTK_CONTAINER(list_item), label); | |
316 gtk_signal_connect(GTK_OBJECT(list_item), "select", | |
317 GTK_SIGNAL_FUNC(away_list_clicked), a); | |
318 /* gtk_signal_connect(GTK_OBJECT(list_item), "deselect", GTK_SIGNAL_FUNC(away_list_unclicked), a);*/ | |
319 gtk_object_set_user_data(GTK_OBJECT(list_item), a); | |
320 | |
321 gtk_widget_show(label); | 326 gtk_widget_show(label); |
322 gtk_container_add(GTK_CONTAINER(prefs_away_list), list_item); | |
323 gtk_widget_show(list_item); | |
324 | 327 |
325 awy = g_slist_next(awy); | 328 awy = g_slist_next(awy); |
326 } | 329 } |
327 if (away_messages != NULL) | 330 if (away_messages != NULL) |
328 gtk_list_select_item(GTK_LIST(prefs_away_list), 0); | 331 gtk_list_select_item(GTK_LIST(prefs_away_list), 0); |