Changeset 232 for trunk/src/gtk/PrintView.cxx
- Timestamp:
- 06/13/06 15:50:59 (2 years ago)
- Files:
-
- 1 modified
-
trunk/src/gtk/PrintView.cxx (modified) (6 diffs)
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/gtk/PrintView.cxx
r231 r232 122 122 123 123 void 124 PrintView::addColorModel (const gchar *name, const gchar *value) 125 { 126 addOptionToList (m_ColorModel, name, value); 127 } 128 129 void 124 130 PrintView::addPageSize (const gchar *name, const gchar *value) 125 131 { … … 148 154 149 155 void 156 PrintView::clearColorModelList () 157 { 158 gtk_list_store_clear (m_ColorModel); 159 } 160 161 void 150 162 PrintView::clearPageSizeList () 151 163 { … … 236 248 { 237 249 return gtk_toggle_button_get_active (GTK_TOGGLE_BUTTON (m_OddPageSet)); 250 } 251 252 void 253 PrintView::selectColorModel (guint colorModelIndex) 254 { 255 gtk_combo_box_set_active (GTK_COMBO_BOX (m_ColorModelView), 256 colorModelIndex); 238 257 } 239 258 … … 551 570 gtk_misc_set_alignment (GTK_MISC (colorModeLabel), 1.0, 0.5); 552 571 gtk_label_set_use_underline (GTK_LABEL (colorModeLabel), TRUE); 553 // createColorModeListModel (); 554 GtkWidget *colorModeView = gtk_combo_box_new (); //_with_model (GTK_TREE_MODEL (m_ColorMode)); 555 gtk_label_set_mnemonic_widget (GTK_LABEL (colorModeLabel), colorModeView); 556 { 557 GtkCellRenderer *renderer = gtk_cell_renderer_text_new (); 558 gtk_cell_layout_pack_start (GTK_CELL_LAYOUT (colorModeView), 572 createColorModelListModel (); 573 m_ColorModelView = 574 gtk_combo_box_new_with_model (GTK_TREE_MODEL (m_ColorModel)); 575 gtk_label_set_mnemonic_widget (GTK_LABEL (colorModeLabel), 576 m_ColorModelView); 577 { 578 GtkCellRenderer *renderer = gtk_cell_renderer_text_new (); 579 gtk_cell_layout_pack_start (GTK_CELL_LAYOUT (m_ColorModelView), 559 580 renderer, TRUE); 560 gtk_cell_layout_set_attributes (GTK_CELL_LAYOUT ( colorModeView),581 gtk_cell_layout_set_attributes (GTK_CELL_LAYOUT (m_ColorModelView), 561 582 renderer, 562 583 "text", … … 568 589 (GtkAttachOptions)(GTK_SHRINK), 569 590 0, 0); 570 gtk_table_attach (GTK_TABLE (outputTable), colorModeView,591 gtk_table_attach (GTK_TABLE (outputTable), m_ColorModelView, 571 592 1, 2, 0, 1, 572 593 (GtkAttachOptions)(GTK_EXPAND | GTK_FILL), … … 661 682 662 683 void 684 PrintView::createColorModelListModel () 685 { 686 m_ColorModel = gtk_list_store_new (printOptionNumColumn, 687 G_TYPE_STRING, // Label 688 G_TYPE_INT); // Value 689 } 690 691 void 663 692 PrintView::createLayoutListModel () 664 693 {
