summaryrefslogtreecommitdiff
path: root/src/xsane-setup.c
diff options
context:
space:
mode:
authorJulien BLACHE <jblache@debian.org>2007-03-07 13:12:27 +0100
committerMattia Rizzolo <mattia@mapreri.org>2014-10-03 14:05:38 +0000
commit0db1f3318701235603f80455d7d1e5c1709e5eb1 (patch)
treeb79a911a1d9c8eb41ac88fa28a6a452fbca2eeb0 /src/xsane-setup.c
parent4d8384e7b116e3eb11cc3df9151c8554dbca95fc (diff)
parent1083fdcdb608210a42e00fc6819a6d5ce5996b2a (diff)
Imported Debian patch 0.994-1debian/0.994-1
Diffstat (limited to 'src/xsane-setup.c')
-rw-r--r--src/xsane-setup.c15
1 files changed, 15 insertions, 0 deletions
diff --git a/src/xsane-setup.c b/src/xsane-setup.c
index 677c375..1078604 100644
--- a/src/xsane-setup.c
+++ b/src/xsane-setup.c
@@ -141,6 +141,7 @@ void xsane_new_printer(void)
preferences.printer[preferences.printernr]->icm_profile = NULL;
preferences.printer[preferences.printernr]->embed_csa = 1;
preferences.printer[preferences.printernr]->embed_crd = 0;
+ preferences.printer[preferences.printernr]->cms_bpc = 0;
preferences.printer[preferences.printernr]->ps_flatedecoded = 1;
}
else
@@ -294,6 +295,7 @@ static void xsane_setup_printer_update()
gtk_toggle_button_set_active(GTK_TOGGLE_BUTTON(xsane_setup.printer_embed_csa_button), preferences.printer[preferences.printernr]->embed_csa);
gtk_toggle_button_set_active(GTK_TOGGLE_BUTTON(xsane_setup.printer_embed_crd_button), preferences.printer[preferences.printernr]->embed_crd);
+ gtk_toggle_button_set_active(GTK_TOGGLE_BUTTON(xsane_setup.printer_cms_bpc_button), preferences.printer[preferences.printernr]->cms_bpc);
#endif
#ifdef HAVE_LIBZ
@@ -383,6 +385,7 @@ static void xsane_setup_printer_apply_changes(GtkWidget *widget, gpointer data)
preferences.printer[preferences.printernr]->icm_profile = strdup(gtk_entry_get_text(GTK_ENTRY(xsane_setup.printer_icm_profile_entry)));
xsane_update_bool(xsane_setup.printer_embed_csa_button, &preferences.printer[preferences.printernr]->embed_csa);
xsane_update_bool(xsane_setup.printer_embed_crd_button, &preferences.printer[preferences.printernr]->embed_crd);
+ xsane_update_bool(xsane_setup.printer_cms_bpc_button, &preferences.printer[preferences.printernr]->cms_bpc);
#endif
#ifdef HAVE_LIBZ
@@ -1451,6 +1454,18 @@ static void xsane_printer_notebook(GtkWidget *notebook)
gtk_widget_show(button);
gtk_widget_show(hbox);
xsane_setup.printer_embed_crd_button = button;
+
+ /* black point compensation */
+ hbox = gtk_hbox_new(/* homogeneous */ FALSE, 0);
+ gtk_box_pack_start(GTK_BOX(vbox), hbox, FALSE, FALSE, 2);
+ button = gtk_check_button_new_with_label(TEXT_SETUP_PRINTER_CMS_BPC);
+ xsane_back_gtk_set_tooltip(xsane.tooltips, button, DESC_PRINTER_CMS_BPC);
+ gtk_toggle_button_set_active(GTK_TOGGLE_BUTTON(button), preferences.printer[preferences.printernr]->cms_bpc);
+ gtk_box_pack_start(GTK_BOX(hbox), button, TRUE, TRUE, 2);
+ gtk_widget_show(button);
+ gtk_widget_show(hbox);
+ xsane_setup.printer_cms_bpc_button = button;
+
#endif
#ifdef HAVE_LIBZ