From ca0ecc234adc8948e093f47feaf622435849f48a Mon Sep 17 00:00:00 2001 From: Salvador Cuñat Date: Wed, 20 Mar 2013 20:30:57 +0100 Subject: Print_c Make colorButton remember last state during session MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit While colorButton defaults to "color" in first access to print menu, it seems preferable to keep the last state selected by the user. At least until exit session. Signed-off-by: Salvador Cuñat Signed-off-by: Dirk Hohndel --- print.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'print.c') diff --git a/print.c b/print.c index bf1ef9f9d..beb6bcc32 100644 --- a/print.c +++ b/print.c @@ -986,7 +986,7 @@ static GtkWidget *print_dialog(GtkPrintOperation *operation, gpointer user_data) colorButton = gtk_check_button_new_with_label(_("Print in color")); g_signal_connect(G_OBJECT(colorButton), "toggled", G_CALLBACK(color_selection_toggle), NULL); - gtk_toggle_button_set_active(GTK_TOGGLE_BUTTON(colorButton),TRUE); + gtk_toggle_button_set_active(GTK_TOGGLE_BUTTON(colorButton),print_options.color_selected); gtk_box_pack_start(GTK_BOX(box), colorButton, FALSE, FALSE, 2); frame1 = gtk_frame_new(_("Ordering")); -- cgit v1.2.3-70-g09d2