mirror of
https://github.com/subsurface/subsurface.git
synced 2025-02-19 22:16:15 +00:00
Print_c Make colorButton remember last state during session
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 <salvador.cunat@gmail.com> Signed-off-by: Dirk Hohndel <dirk@hohndel.org>
This commit is contained in:
parent
5766e299c3
commit
ca0ecc234a
1 changed files with 1 additions and 1 deletions
2
print.c
2
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"));
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue