diff options
author | Pierre-Yves Chibon <pingou@pingoured.fr> | 2012-08-29 09:12:42 +0200 |
---|---|---|
committer | Pierre-Yves Chibon <pingou@pingoured.fr> | 2012-08-29 10:05:53 +0200 |
commit | eef0e9e699ddfb2890837f44b26fddc4d62eb89a (patch) | |
tree | cc1b83b56d8a65a65f7e3959de2f825cea9c110c /print.c | |
parent | 9d46581913ce33664e333a4d6eaf7f4e26e20b1c (diff) | |
download | subsurface-eef0e9e699ddfb2890837f44b26fddc4d62eb89a.tar.gz |
Deactivate 'Show profiles' if 'table print' is checked.
This bug was reported by Henrik Brautaset Aronsen, it was happening
when:
"""you select table print, perform the print and then open the print
dialogue again""". In such case the 'Show profiles' button was
activated while the 'Print table' type was selected.
Signed-off-by: Pierre-Yves Chibon <pingou@pingoured.fr>
Diffstat (limited to 'print.c')
-rw-r--r-- | print.c | 3 |
1 files changed, 3 insertions, 0 deletions
@@ -490,6 +490,9 @@ static GtkWidget *print_dialog(GtkPrintOperation *operation, gpointer user_data) gtk_toggle_button_set_active(GTK_TOGGLE_BUTTON(button), print_options.print_profiles); gtk_box_pack_start(GTK_BOX(box), button, FALSE, FALSE, 2); g_signal_connect(G_OBJECT(button), "toggled", G_CALLBACK(print_profiles_toggle), NULL); + if (print_options.type == TABLE) + // type == table - disable the profile option + gtk_widget_set_sensitive(button, FALSE); g_signal_connect(radio1, "toggled", G_CALLBACK(set_pretty), button); g_signal_connect(radio2, "toggled", G_CALLBACK(set_table), button); |