| | 528 | // Output frame |
| | 529 | GtkWidget *outputLabel = gtk_label_new (_("<b>Output</b>")); |
| | 530 | GtkWidget *outputFrame = gtk_frame_new (NULL); |
| | 531 | gtk_box_pack_start_defaults (GTK_BOX (mainBox), outputFrame); |
| | 532 | // Set a bold label and no border. |
| | 533 | gtk_label_set_use_markup (GTK_LABEL (outputLabel), TRUE); |
| | 534 | gtk_frame_set_label_widget (GTK_FRAME (outputFrame), outputLabel); |
| | 535 | gtk_frame_set_shadow_type (GTK_FRAME (outputFrame), GTK_SHADOW_NONE); |
| | 536 | // The alignment. |
| | 537 | GtkWidget *outputAlign = gtk_alignment_new (0, 0, 1, 1); |
| | 538 | gtk_alignment_set_padding (GTK_ALIGNMENT (outputAlign), 6, 0, 12, 6); |
| | 539 | gtk_container_add (GTK_CONTAINER (outputFrame), outputAlign); |
| | 540 | // The table to add all controls. |
| | 541 | GtkWidget *outputTable = gtk_table_new (2, 2, FALSE); |
| | 542 | gtk_container_add (GTK_CONTAINER (outputAlign), outputTable); |
| | 543 | gtk_table_set_row_spacings (GTK_TABLE (outputTable), 3); |
| | 544 | gtk_table_set_col_spacings (GTK_TABLE (outputTable), 12); |
| | 545 | // Color mode |
| | 546 | GtkWidget *colorModeLabel = gtk_label_new (_("_Mode:")); |
| | 547 | gtk_misc_set_alignment (GTK_MISC (colorModeLabel), 1.0, 0.5); |
| | 548 | gtk_label_set_use_underline (GTK_LABEL (colorModeLabel), TRUE); |
| | 549 | // createColorModeListModel (); |
| | 550 | GtkWidget *colorModeView = gtk_combo_box_new (); //_with_model (GTK_TREE_MODEL (m_ColorMode)); |
| | 551 | gtk_label_set_mnemonic_widget (GTK_LABEL (colorModeLabel), colorModeView); |
| | 552 | { |
| | 553 | GtkCellRenderer *renderer = gtk_cell_renderer_text_new (); |
| | 554 | gtk_cell_layout_pack_start (GTK_CELL_LAYOUT (colorModeView), |
| | 555 | renderer, TRUE); |
| | 556 | gtk_cell_layout_set_attributes (GTK_CELL_LAYOUT (colorModeView), |
| | 557 | renderer, |
| | 558 | "text", |
| | 559 | // XXX: Change with the final column |
| | 560 | 0, NULL); |
| | 561 | } |
| | 562 | gtk_table_attach (GTK_TABLE (outputTable), colorModeLabel, |
| | 563 | 0, 1, 0, 1, |
| | 564 | (GtkAttachOptions)(GTK_SHRINK | GTK_FILL), |
| | 565 | (GtkAttachOptions)(GTK_SHRINK), |
| | 566 | 0, 0); |
| | 567 | gtk_table_attach (GTK_TABLE (outputTable), colorModeView, |
| | 568 | 1, 2, 0, 1, |
| | 569 | (GtkAttachOptions)(GTK_EXPAND | GTK_FILL), |
| | 570 | (GtkAttachOptions)(GTK_SHRINK), |
| | 571 | 0, 0); |
| | 572 | // Resolution |
| | 573 | GtkWidget *resolutionLabel = gtk_label_new (_("_Resolution:")); |
| | 574 | gtk_misc_set_alignment (GTK_MISC (resolutionLabel), 1.0, 0.5); |
| | 575 | gtk_label_set_use_underline (GTK_LABEL (resolutionLabel), TRUE); |
| | 576 | |
| | 577 | // createResolutionListModel (); |
| | 578 | GtkWidget *resolutionView = gtk_combo_box_new (); //_with_model (GTK_TREE_MODEL (m_Resolution)); |
| | 579 | gtk_label_set_mnemonic_widget (GTK_LABEL (resolutionLabel), |
| | 580 | resolutionView); |
| | 581 | { |
| | 582 | GtkCellRenderer *renderer = gtk_cell_renderer_text_new (); |
| | 583 | gtk_cell_layout_pack_start (GTK_CELL_LAYOUT (resolutionView), |
| | 584 | renderer, TRUE); |
| | 585 | gtk_cell_layout_set_attributes (GTK_CELL_LAYOUT (resolutionView), |
| | 586 | renderer, |
| | 587 | "text", |
| | 588 | // XXX Change with the final column |
| | 589 | 0, NULL); |
| | 590 | } |
| | 591 | gtk_table_attach (GTK_TABLE (outputTable), resolutionLabel, |
| | 592 | 0, 1, 1, 2, |
| | 593 | (GtkAttachOptions)(GTK_SHRINK | GTK_FILL), |
| | 594 | (GtkAttachOptions)(GTK_SHRINK), |
| | 595 | 0, 0); |
| | 596 | gtk_table_attach (GTK_TABLE (outputTable), resolutionView, |
| | 597 | 1, 2, 1, 2, |
| | 598 | (GtkAttachOptions)(GTK_EXPAND | GTK_FILL), |
| | 599 | (GtkAttachOptions)(GTK_SHRINK), |
| | 600 | 0, 0); |
| | 601 | |