[gtk/matthiasc/for-master: 3/3] printing: Avoid a crash



commit 173b1333ca5d03bc5f9b852d4590aeb03230f95f
Author: Matthias Clasen <mclasen redhat com>
Date:   Sat Mar 28 15:22:13 2020 -0400

    printing: Avoid a crash
    
    When no printer has been selected (e.g. because we don't
    find any printers), the 'print at' radio group should be
    insensitive, except for the 'now' choice. Selecting another
    option in this situation will lead to a crash.

 gtk/ui/gtkprintunixdialog.ui | 2 ++
 1 file changed, 2 insertions(+)
---
diff --git a/gtk/ui/gtkprintunixdialog.ui b/gtk/ui/gtkprintunixdialog.ui
index 35f2589583..eccba317b2 100644
--- a/gtk/ui/gtkprintunixdialog.ui
+++ b/gtk/ui/gtkprintunixdialog.ui
@@ -830,6 +830,7 @@
                                 </child>
                                 <child>
                                   <object class="GtkRadioButton" id="print_at_radio">
+                                    <property name="sensitive">0</property>
                                     <property name="label" translatable="yes" comments="this is one of the 
choices for the print at option in the print dialog. It also serves as the label for an entry that allows the 
user to enter a time.">A_t:</property>
                                     <property name="can-focus">1</property>
                                     <property name="has-tooltip">1</property>
@@ -872,6 +873,7 @@
                                 </child>
                                 <child>
                                   <object class="GtkRadioButton" id="print_hold_radio">
+                                    <property name="sensitive">0</property>
                                     <property name="label" translatable="yes" comments="this is one of the 
choices for the print at option in the print dialog. It means that the print job will not be printed until it 
explicitly gets &apos;released&apos;.">On _hold</property>
                                     <property name="can-focus">1</property>
                                     <property name="has-tooltip">1</property>


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]