Changeset 181

Show
Ignore:
Timestamp:
Wed Jun 27 07:06:45 2007
Author:
manatlan
Message:

- bug corrected in the "export plugin" about the max side combo

Files:

Legend:

Unmodified
Added
Removed
Modified
  • trunk/plugins/multiexport/winexport.py

    r162 r181  
    176 176         self.__conf[type+".percent"]=self.hsResize.get_value()  
    177 177         self.__conf[type+".quality"]=self.hsQuality.get_value()  
    178           self.__conf[type+".maxside"]=self.tbMaxSide.get_text()  
      178         self.__conf[type+".maxside"]=self.eMaxSide.get_text()  
    178 178         self.__conf[type+".order"]=self.cbOrder.get_active()  
    179 179  
     
    185 185         if t==0:    # no  
    186 186             self.hsResize.set_sensitive(False)  
    187               self.tbMaxSide.set_sensitive(False)  
      187             #self.tbMaxSide.set_sensitive(False)  
    187 187             self.cbMaxSide.set_sensitive(False)  
    188 188             self.hsQuality.set_sensitive(False)  
    189 189         elif t==1:  # resize  
    190 190             self.hsResize.set_sensitive(True)  
    191               self.tbMaxSide.set_sensitive(False)  
      191             #self.tbMaxSide.set_sensitive(False)  
    191 191             self.cbMaxSide.set_sensitive(False)  
    192 192             self.hsQuality.set_sensitive(True)  
    193 193         else:       # max side  
    194 194             self.hsResize.set_sensitive(False)  
    195               self.tbMaxSide.set_sensitive(True)  
      195             #self.tbMaxSide.set_sensitive(True)  
    195 195             self.cbMaxSide.set_sensitive(True)  
    196 196             self.hsQuality.set_sensitive(True)  
     
    211 211         self.hsResize.set_value(float(self.__conf[tp+".percent"]))  
    212 212         self.hsQuality.set_value(float(self.__conf[tp+".quality"]))  
    213           self.tbMaxSide.set_text(str(self.__conf[tp+".maxside"]))  
      213         self.eMaxSide.set_text(str(self.__conf[tp+".maxside"]))    #combobox  
    213 213         self.cbOrder.set_active(int(self.__conf[tp+".order"]))  
    214 214  
  • trunk/plugins/multiexport/winexport.glade

    r180 r181  
    100 100                 </child>  
    101 101                 <child>  
    102                     <widget class="GtkCombo" id="cbMaxSide">  
    103                       <property name="visible">True</property>  
    104                       <property name="enable_arrows_always">False</property>  
    105                     </widget>  
    106                     <packing>  
    107                       <property name="left_attach">1</property>  
    108                       <property name="right_attach">2</property>  
    109                       <property name="top_attach">2</property>  
    110                       <property name="bottom_attach">3</property>  
    111                       <property name="y_options"></property>  
    112                     </packing>  
    113                   </child>  
    114                   <child>  
    115 102                   <widget class="GtkRadioButton" id="rbMaxSide">  
    116 103                     <property name="visible">True</property>  
     
    145 132                   </packing>  
    146 133                 </child>  
      134                 <child>  
      135                   <widget class="GtkComboBoxEntry" id="cbMaxSide">  
      136                     <property name="visible">True</property>  
      137                     <property name="events">GDK_POINTER_MOTION_MASK | GDK_POINTER_MOTION_HINT_MASK | GDK_BUTTON_PRESS_MASK | GDK_BUTTON_RELEASE_MASK</property>  
      138                     <property name="items" translatable="yes">640  
      139 800  
      140 1024  
      141 1280  
      142 1600</property>  
      143                     <child internal-child="entry">  
      144                       <widget class="GtkEntry" id="eMaxSide">  
      145                         <property name="visible">True</property>  
      146                         <property name="can_focus">True</property>  
      147                         <property name="events">GDK_POINTER_MOTION_MASK | GDK_POINTER_MOTION_HINT_MASK | GDK_BUTTON_PRESS_MASK | GDK_BUTTON_RELEASE_MASK</property>  
      148                       </widget>  
      149                     </child>  
      150                   </widget>  
      151                   <packing>  
      152                     <property name="left_attach">1</property>  
      153                     <property name="right_attach">2</property>  
      154                     <property name="top_attach">2</property>  
      155                     <property name="bottom_attach">3</property>  
      156                     <property name="y_options"></property>  
      157                   </packing>  
      158                 </child>  
    147 159               </widget>  
    148 160             </child>