| 532 g_signal_connect(G_OBJECT(dialog), "response", |
532 g_signal_connect(G_OBJECT(dialog), "response", |
| 533 G_CALLBACK(message_response_cb), dialog); |
533 G_CALLBACK(message_response_cb), dialog); |
| 534 |
534 |
| 535 gtk_container_set_border_width(GTK_CONTAINER(dialog), PIDGIN_HIG_BORDER); |
535 gtk_container_set_border_width(GTK_CONTAINER(dialog), PIDGIN_HIG_BORDER); |
| 536 gtk_window_set_resizable(GTK_WINDOW(dialog), FALSE); |
536 gtk_window_set_resizable(GTK_WINDOW(dialog), FALSE); |
| 537 /* TODO: not sure if there is a way to do this in gtk+ 3, or |
537 /* TODO: not sure if there is a way to do this in gtk+ 3, or |
| 538 if we want to... |
538 if we want to... */ |
| |
539 #if 0 |
| 539 gtk_dialog_set_has_separator(GTK_DIALOG(dialog), FALSE); |
540 gtk_dialog_set_has_separator(GTK_DIALOG(dialog), FALSE); |
| 540 */ |
541 #endif |
| 541 gtk_box_set_spacing(GTK_BOX(gtk_dialog_get_content_area(GTK_DIALOG(dialog))), |
542 gtk_box_set_spacing(GTK_BOX(gtk_dialog_get_content_area(GTK_DIALOG(dialog))), |
| 542 PIDGIN_HIG_BORDER); |
543 PIDGIN_HIG_BORDER); |
| 543 gtk_container_set_border_width(GTK_CONTAINER(gtk_dialog_get_content_area(GTK_DIALOG(dialog))), |
544 gtk_container_set_border_width(GTK_CONTAINER(gtk_dialog_get_content_area(GTK_DIALOG(dialog))), |
| 544 PIDGIN_HIG_BOX_SPACE); |
545 PIDGIN_HIG_BOX_SPACE); |
| 545 |
546 |
| 546 hbox = gtk_hbox_new(FALSE, PIDGIN_HIG_BORDER); |
547 hbox = gtk_hbox_new(FALSE, PIDGIN_HIG_BORDER); |
| 547 gtk_container_add(GTK_CONTAINER(gtk_dialog_get_content_area(GTK_DIALOG(dialog))), |
548 gtk_container_add(GTK_CONTAINER(gtk_dialog_get_content_area(GTK_DIALOG(dialog))), |
| 548 hbox); |
549 hbox); |
| 549 |
550 |
| 550 if (img != NULL) |
551 if (img != NULL) |
| 551 gtk_box_pack_start(GTK_BOX(hbox), img, FALSE, FALSE, 0); |
552 gtk_box_pack_start(GTK_BOX(hbox), img, FALSE, FALSE, 0); |
| 552 |
553 |
| 553 primary_esc = g_markup_escape_text(primary, -1); |
554 primary_esc = g_markup_escape_text(primary, -1); |
| 1521 dialog = gtk_dialog_new(); |
1522 dialog = gtk_dialog_new(); |
| 1522 |
1523 |
| 1523 /* Setup the dialog */ |
1524 /* Setup the dialog */ |
| 1524 gtk_container_set_border_width(GTK_CONTAINER(dialog), PIDGIN_HIG_BOX_SPACE); |
1525 gtk_container_set_border_width(GTK_CONTAINER(dialog), PIDGIN_HIG_BOX_SPACE); |
| 1525 gtk_container_set_border_width(GTK_CONTAINER(gtk_dialog_get_content_area(GTK_DIALOG(dialog))), |
1526 gtk_container_set_border_width(GTK_CONTAINER(gtk_dialog_get_content_area(GTK_DIALOG(dialog))), |
| 1526 PIDGIN_HIG_BOX_SPACE); |
1527 PIDGIN_HIG_BOX_SPACE); |
| 1527 /* TODO: not sure if this is possible (or nessesary) in gtk+ 3 |
1528 /* TODO: not sure if this is possible (or necessary) in gtk+ 3 */ |
| |
1529 #if 0 |
| 1528 gtk_dialog_set_has_separator(GTK_DIALOG(dialog), FALSE); |
1530 gtk_dialog_set_has_separator(GTK_DIALOG(dialog), FALSE); |
| 1529 */ |
1531 #endif |
| 1530 gtk_box_set_spacing(GTK_BOX(gtk_dialog_get_content_area(GTK_DIALOG(dialog))), |
1532 gtk_box_set_spacing(GTK_BOX(gtk_dialog_get_content_area(GTK_DIALOG(dialog))), |
| 1531 PIDGIN_HIG_BORDER); |
1533 PIDGIN_HIG_BORDER); |
| 1532 |
1534 |
| 1533 /* Vertical box */ |
1535 /* Vertical box */ |
| 1534 vbox = gtk_dialog_get_content_area(GTK_DIALOG(dialog)); |
1536 vbox = gtk_dialog_get_content_area(GTK_DIALOG(dialog)); |
| 1535 |
1537 |
| 1536 /* Golden ratio it up! */ |
1538 /* Golden ratio it up! */ |