| 269 sizegroup = gtk_size_group_new(GTK_SIZE_GROUP_HORIZONTAL); |
270 sizegroup = gtk_size_group_new(GTK_SIZE_GROUP_HORIZONTAL); |
| 270 |
271 |
| 271 for (s = 0; sections[s].heading; s++) { |
272 for (s = 0; sections[s].heading; s++) { |
| 272 const char *heading = sections[s].heading; |
273 const char *heading = sections[s].heading; |
| 273 |
274 |
| 274 box = gtk_vbox_new(FALSE, 0); |
275 box = gtk_box_new(GTK_ORIENTATION_VERTICAL, 0); |
| 275 gtk_notebook_append_page(GTK_NOTEBOOK(notebook), box, gtk_label_new(heading)); |
276 gtk_notebook_append_page(GTK_NOTEBOOK(notebook), box, gtk_label_new(heading)); |
| 276 |
277 |
| 277 vbox = pidgin_make_frame(box, heading); |
278 vbox = pidgin_make_frame(box, heading); |
| 278 g_object_set_data(G_OBJECT(dialog), heading, vbox); |
279 g_object_set_data(G_OBJECT(dialog), heading, vbox); |
| 279 |
280 |
| 280 for (i = 0; sections[s].options[i].stockid; i++) { |
281 for (i = 0; sections[s].options[i].stockid; i++) { |
| 281 const char *id = sections[s].options[i].stockid; |
282 const char *id = sections[s].options[i].stockid; |
| 282 const char *text = _(sections[s].options[i].text); |
283 const char *text = _(sections[s].options[i].text); |
| 283 |
284 |
| 284 GtkWidget *hbox = gtk_hbox_new(FALSE, PIDGIN_HIG_CAT_SPACE); |
285 GtkWidget *hbox = gtk_box_new(GTK_ORIENTATION_HORIZONTAL, PIDGIN_HIG_CAT_SPACE); |
| 285 GtkWidget *label = gtk_label_new(text); |
286 GtkWidget *label = gtk_label_new(text); |
| 286 GtkWidget *image = gtk_image_new_from_stock(id, |
287 GtkWidget *image = gtk_image_new_from_stock(id, |
| 287 gtk_icon_size_from_name(PIDGIN_ICON_SIZE_TANGO_EXTRA_SMALL)); |
288 gtk_icon_size_from_name(PIDGIN_ICON_SIZE_TANGO_EXTRA_SMALL)); |
| 288 GtkWidget *ebox = gtk_event_box_new(); |
289 GtkWidget *ebox = gtk_event_box_new(); |
| 289 gtk_container_add(GTK_CONTAINER(ebox), image); |
290 gtk_container_add(GTK_CONTAINER(ebox), image); |