Changeset 172

Show
Ignore:
Timestamp:
Tue May 22 13:40:24 2007
Author:
manatlan
Message:

- fullscreen mode : a "cross" icon on the delete button
- bug correcte : in fullscreen mode, deleting the last image throwed an
exception

Files:

Legend:

Unmodified
Added
Removed
Modified
  • trunk/jbrout.glade

    r164 r172  
    258 258                     <property name="n_columns">4</property>  
    259 259                     <child>  
    260                         <widget class="GtkButton" id="btn_yl">  
      260                       <widget class="GtkHBox" id="hboxcombodate">  
    260 260                         <property name="visible">True</property>  
    261                           <property name="can_focus">True</property>  
    262                           <property name="label" translatable="yes">&lt;&lt;</property>  
    263                           <property name="use_underline">True</property>  
    264                           <signal name="clicked" handler="on_btn_yl_clicked"/>  
      261                         <child>  
      262                           <widget class="GtkComboBox" id="comboboxmonth">  
      263                             <property name="visible">True</property>  
      264                             <property name="items" translatable="yes">January  
      265 February  
      266 March  
      267 April  
      268 May  
      269 June  
      270 July  
      271 August  
      272 September  
      273 October  
      274 November  
      275 December</property>  
      276                             <signal name="changed" handler="on_combodate_changed"/>  
      277                           </widget>  
      278                         </child>  
      279                         <child>  
      280                           <widget class="GtkComboBox" id="comboboxyear">  
      281                             <property name="visible">True</property>  
      282                             <signal name="changed" handler="on_combodate_changed"/>  
      283                           </widget>  
      284                           <packing>  
      285                             <property name="position">1</property>  
      286                           </packing>  
      287                         </child>  
    265 288                       </widget>  
    266 289                       <packing>  
    267                           <property name="top_attach">1</property>  
    268                           <property name="bottom_attach">2</property>  
      290                         <property name="right_attach">4</property>  
    269 291                         <property name="x_options">GTK_FILL</property>  
    270                           <property name="y_options"></property>  
      292                         <property name="y_options">GTK_FILL</property>  
    270 292                       </packing>  
    271 293                     </child>  
    272 294                     <child>  
    273                         <widget class="GtkButton" id="btn_ml">  
      295                       <widget class="GtkScrolledWindow" id="scrolledwindow3">  
    273 295                         <property name="visible">True</property>  
    274 296                         <property name="can_focus">True</property>  
    275                           <property name="label" translatable="yes">&lt;</property>  
      297                         <property name="hscrollbar_policy">GTK_POLICY_AUTOMATIC</property>  
      298                         <property name="vscrollbar_policy">GTK_POLICY_AUTOMATIC</property>  
      299                         <property name="shadow_type">GTK_SHADOW_IN</property>  
      300                         <child>  
      301                           <widget class="GtkTreeView" id="selectDate">  
      302                             <property name="visible">True</property>  
      303                             <property name="can_focus">True</property>  
      304                             <property name="headers_visible">False</property>  
      305                             <signal name="row_activated" handler="on_selectDate_row_activated"/>  
      306                           </widget>  
      307                         </child>  
      308                       </widget>  
      309                       <packing>  
      310                         <property name="right_attach">4</property>  
      311                         <property name="top_attach">2</property>  
      312                         <property name="bottom_attach">4</property>  
      313                       </packing>  
      314                     </child>  
      315                     <child>  
      316                       <widget class="GtkButton" id="btn_ym">  
      317                         <property name="visible">True</property>  
      318                         <property name="can_focus">True</property>  
      319                         <property name="label" translatable="yes">&gt;&gt;</property>  
    276 320                         <property name="use_underline">True</property>  
    277                           <signal name="clicked" handler="on_btn_ml_clicked"/>  
      321                         <signal name="clicked" handler="on_btn_ym_clicked"/>  
    277 321                       </widget>  
    278 322                       <packing>  
    279                           <property name="left_attach">1</property>  
    280                           <property name="right_attach">2</property>  
      323                         <property name="left_attach">3</property>  
      324                         <property name="right_attach">4</property>  
    281 325                         <property name="top_attach">1</property>  
    282 326                         <property name="bottom_attach">2</property>  
     
    307 351                     </child>  
    308 352                     <child>  
    309                         <widget class="GtkButton" id="btn_ym">  
      353                       <widget class="GtkButton" id="btn_ml">  
    309 353                         <property name="visible">True</property>  
    310 354                         <property name="can_focus">True</property>  
    311                           <property name="label" translatable="yes">&gt;&gt;</property>  
      355                         <property name="label" translatable="yes">&lt;</property>  
    311 355                         <property name="use_underline">True</property>  
    312                           <signal name="clicked" handler="on_btn_ym_clicked"/>  
      356                         <signal name="clicked" handler="on_btn_ml_clicked"/>  
    312 356                       </widget>  
    313 357                       <packing>  
    314                           <property name="left_attach">3</property>  
    315                           <property name="right_attach">4</property>  
      358                         <property name="left_attach">1</property>  
      359                         <property name="right_attach">2</property>  
    316 360                         <property name="top_attach">1</property>  
    317 361                         <property name="bottom_attach">2</property>  
     
    324 368                     </child>  
    325 369                     <child>  
    326                         <widget class="GtkScrolledWindow" id="scrolledwindow3">  
      370                       <widget class="GtkButton" id="btn_yl">  
    326 370                         <property name="visible">True</property>  
    327 371                         <property name="can_focus">True</property>  
    328                           <property name="hscrollbar_policy">GTK_POLICY_AUTOMATIC</property>  
    329                           <property name="vscrollbar_policy">GTK_POLICY_AUTOMATIC</property>  
    330                           <property name="shadow_type">GTK_SHADOW_IN</property>  
    331                           <child>  
    332                             <widget class="GtkTreeView" id="selectDate">  
    333                               <property name="visible">True</property>  
    334                               <property name="can_focus">True</property>  
    335                               <property name="headers_visible">False</property>  
    336                               <signal name="row_activated" handler="on_selectDate_row_activated"/>  
    337                             </widget>  
    338                           </child>  
    339                         </widget>  
    340                         <packing>  
    341                           <property name="right_attach">4</property>  
    342                           <property name="top_attach">2</property>  
    343                           <property name="bottom_attach">4</property>  
    344                         </packing>  
    345                       </child>  
    346                       <child>  
    347                         <widget class="GtkHBox" id="hboxcombodate">  
    348                           <property name="visible">True</property>  
    349                           <child>  
    350                             <widget class="GtkComboBox" id="comboboxmonth">  
    351                               <property name="visible">True</property>  
    352                               <property name="items" translatable="yes">January  
    353   February  
    354   March  
    355   April  
    356   May  
    357   June  
    358   July  
    359   August  
    360   September  
    361   October  
    362   November  
    363   December</property>  
    364                               <signal name="changed" handler="on_combodate_changed"/>  
    365                             </widget>  
    366                           </child>  
    367                           <child>  
    368                             <widget class="GtkComboBox" id="comboboxyear">  
    369                               <property name="visible">True</property>  
    370                               <signal name="changed" handler="on_combodate_changed"/>  
    371                             </widget>  
    372                             <packing>  
    373                               <property name="position">1</property>  
    374                             </packing>  
    375                           </child>  
      372                         <property name="label" translatable="yes">&lt;&lt;</property>  
      373                         <property name="use_underline">True</property>  
      374                         <signal name="clicked" handler="on_btn_yl_clicked"/>  
    376 375                       </widget>  
    377 376                       <packing>  
    378                           <property name="right_attach">4</property>  
      377                         <property name="top_attach">1</property>  
      378                         <property name="bottom_attach">2</property>  
    379 379                         <property name="x_options">GTK_FILL</property>  
    380                           <property name="y_options">GTK_FILL</property>  
      380                         <property name="y_options"></property>  
    380 380                       </packing>  
    381 381                     </child>  
     
    698 698             </child>  
    699 699             <child>  
    700                 <widget class="GtkLabel" id="label5">  
      700               <widget class="GtkHSeparator" id="hseparator1">  
    700 700                 <property name="visible">True</property>  
    701                   <property name="xalign">0</property>  
    702                   <property name="label" translatable="yes">Album / comment</property>  
    703 701               </widget>  
    704 702               <packing>  
    705                   <property name="top_attach">6</property>  
    706                   <property name="bottom_attach">7</property>  
      703                 <property name="right_attach">2</property>  
      704                 <property name="top_attach">8</property>  
      705                 <property name="bottom_attach">9</property>  
    707 706                 <property name="x_options">GTK_FILL</property>  
    708 707                 <property name="y_options"></property>  
      708                 <property name="y_padding">8</property>  
    709 709               </packing>  
    710 710             </child>  
    711 711             <child>  
    712                 <widget class="GtkLabel" id="label4">  
      712               <widget class="GtkEntry" id="e_acom">  
    712 712                 <property name="visible">True</property>  
    713                   <property name="xalign">0</property>  
    714                   <property name="label" translatable="yes">Photo comment</property>  
      713                 <property name="can_focus">True</property>  
      714                 <property name="invisible_char">*</property>  
    715 715               </widget>  
    716 716               <packing>  
    717                   <property name="top_attach">4</property>  
    718                   <property name="bottom_attach">5</property>  
    719                   <property name="x_options">GTK_FILL</property>  
      717                 <property name="right_attach">2</property>  
      718                 <property name="top_attach">7</property>  
      719                 <property name="bottom_attach">8</property>  
    720 720                 <property name="y_options"></property>  
    721 721               </packing>  
    722 722             </child>  
    723 723             <child>  
    724                 <widget class="GtkLabel" id="l_from">  
      724               <widget class="GtkLabel" id="label9">  
    724 724                 <property name="visible">True</property>  
    725 725                 <property name="xalign">0</property>  
    726                   <property name="label" translatable="yes">Period from</property>  
    727 726               </widget>  
    728 727               <packing>  
      728                 <property name="left_attach">1</property>  
      729                 <property name="right_attach">2</property>  
      730                 <property name="top_attach">10</property>  
      731                 <property name="bottom_attach">11</property>  
    729 732                 <property name="x_options">GTK_FILL</property>  
    730                   <property name="y_options"></property>  
    731 733               </packing>  
    732 734             </child>  
    733 735             <child>  
    734                 <widget class="GtkLabel" id="l_to">  
      736               <widget class="GtkEntry" id="e_pcom">  
    734 736                 <property name="visible">True</property>  
    735                   <property name="xalign">0</property>  
    736                   <property name="label" translatable="yes">to</property>  
      737                 <property name="can_focus">True</property>  
      738                 <property name="invisible_char">*</property>  
    737 739               </widget>  
    738 740               <packing>  
    739                   <property name="top_attach">2</property>  
    740                   <property name="bottom_attach">3</property>  
    741                   <property name="x_options">GTK_FILL</property>  
      741                 <property name="right_attach">2</property>  
      742                 <property name="top_attach">5</property>  
      743                 <property name="bottom_attach">6</property>  
    742 744                 <property name="y_options"></property>  
    743 745               </packing>  
    744 746             </child>  
    745 747             <child>  
    746                 <widget class="GtkHButtonBox" id="hbuttonbox1">  
      748               <widget class="GtkComboBox" id="cb_format">  
    746 748                 <property name="visible">True</property>  
    747                   <child>  
    748                     <widget class="GtkButton" id="btn_cancel">  
    749                       <property name="visible">True</property>  
    750                       <property name="can_focus">True</property>  
    751                       <property name="can_default">True</property>  
    752                       <property name="label">gtk-cancel</property>  
    753                       <property name="use_stock">True</property>  
    754                       <signal name="clicked" handler="on_btn_cancel_clicked"/>  
    755                     </widget>  
    756                   </child>  
    757                   <child>  
    758                     <widget class="GtkButton" id="btn_valid">  
    759                       <property name="visible">True</property>  
    760                       <property name="can_focus">True</property>  
    761                       <property name="can_default">True</property>  
    762                       <property name="label">gtk-ok</property>  
    763                       <property name="use_stock">True</property>  
    764                       <signal name="clicked" handler="on_btn_valid_clicked"/>  
    765                     </widget>  
    766                     <packing>  
    767                       <property name="position">1</property>  
    768                     </packing>  
    769                   </child>  
    770 749               </widget>  
    771 750               <packing>  
      751                 <property name="left_attach">1</property>  
    772 752                 <property name="right_attach">2</property>  
    773                   <property name="top_attach">11</property>  
    774                   <property name="bottom_attach">12</property>  
    775                   <property name="x_options"></property>  
      753                 <property name="top_attach">9</property>  
      754                 <property name="bottom_attach">10</property>  
      755                 <property name="x_options">GTK_FILL</property>  
    776 756                 <property name="y_options">GTK_FILL</property>  
    777 757               </packing>  
    778 758             </child>  
    779 759             <child>  
    780                 <widget class="GtkHScale" id="hs_to">  
      760               <widget class="GtkLabel" id="label8">  
    780 760                 <property name="visible">True</property>  
    781                   <property name="can_focus">True</property>  
    782                   <property name="adjustment">0 0 0 0 0 0</property>  
    783                   <property name="draw_value">False</property>  
    784                   <signal name="value_changed" handler="on_hs_to_value_changed"/>  
      761                 <property name="xalign">0</property>  
      762                 <property name="label" translatable="yes">Format</property>  
    785 763               </widget>  
    786 764               <packing>  
    787                   <property name="right_attach">2</property>  
    788                   <property name="top_attach">3</property>  
    789                   <property name="bottom_attach">4</property>  
    790                   <property name="y_options">GTK_FILL</property>  
      765                 <property name="top_attach">9</property>  
      766                 <property name="bottom_attach">10</property>  
      767                 <property name="x_options">GTK_FILL</property>  
      768                 <property name="y_options"></property>  
    791 769               </packing>  
    792 770             </child>  
     
    813 791             </child>  
    814 792             <child>  
    815                 <widget class="GtkLabel" id="label8">  
      793               <widget class="GtkHScale" id="hs_to">  
    815 793                 <property name="visible">True</property>  
    816                   <property name="xalign">0</property>  
    817                   <property name="label" translatable="yes">Format</property>  
      794                 <property name="can_focus">True</property>  
      795                 <property name="adjustment">0 0 0 0 0 0</property>  
      796                 <property name="draw_value">False</property>  
      797                 <signal name="value_changed" handler="on_hs_to_value_changed"/>  
    818 798               </widget>  
    819 799               <packing>  
    820                   <property name="top_attach">9</property>  
    821                   <property name="bottom_attach">10</property>  
    822                   <property name="x_options">GTK_FILL</property>  
    823                   <property name="y_options"></property>  
      800                 <property name="right_attach">2</property>  
      801                 <property name="top_attach">3</property>  
      802                 <property name="bottom_attach">4</property>  
      803                 <property name="y_options">GTK_FILL</property>  
    824 804               </packing>  
    825 805             </child>  
    826 806             <child>  
    827                 <widget class="GtkComboBox" id="cb_format">  
      807               <widget class="GtkHButtonBox" id="hbuttonbox1">  
    827 807                 <property name="visible">True</property>  
      808                 <child>  
      809                   <widget class="GtkButton" id="btn_cancel">  
      810                     <property name="visible">True</property>  
      811                     <property name="can_focus">True</property>  
      812                     <property name="can_default">True</property>  
      813                     <property name="label">gtk-cancel</property>  
      814                     <property name="use_stock">True</property>  
      815                     <signal name="clicked" handler="on_btn_cancel_clicked"/>  
      816                   </widget>  
      817                 </child>  
      818                 <child>  
      819                   <widget class="GtkButton" id="btn_valid">  
      820                     <property name="visible">True</property>  
      821                     <property name="can_focus">True</property>  
      822                     <property name="can_default">True</property>  
      823                     <property name="label">gtk-ok</property>  
      824                     <property name="use_stock">True</property>  
      825                     <signal name="clicked" handler="on_btn_valid_clicked"/>  
      826                   </widget>  
      827                   <packing>  
      828                     <property name="position">1</property>  
      829                   </packing>  
      830                 </child>  
    828 831               </widget>  
    829 832               <packing>  
    830                   <property name="left_attach">1</property>  
    831 833                 <property name="right_attach">2</property>  
    832                   <property name="top_attach">9</property>  
    833                   <property name="bottom_attach">10</property>  
    834                   <property name="x_options">GTK_FILL</property>  
      834                 <property name="top_attach">11</property>  
      835                 <property name="bottom_attach">12</property>  
      836                 <property name="x_options"></property>  
    835 837                 <property name="y_options">GTK_FILL</property>  
    836 838               </packing>  
    837 839             </child>  
    838 840             <child>  
    839                 <widget class="GtkEntry" id="e_pcom">  
      841               <widget class="GtkLabel" id="l_to">  
    839 841                 <property name="visible">True</property>  
    840                   <property name="can_focus">True</property>  
    841                   <property name="invisible_char">*</property>  
      842                 <property name="xalign">0</property>  
      843                 <property name="label" translatable="yes">to</property>  
    842 844               </widget>  
    843 845               <packing>  
    844                   <property name="right_attach">2</property>  
    845                   <property name="top_attach">5</property>  
    846                   <property name="bottom_attach">6</property>  
      846                 <property name="top_attach">2</property>  
      847                 <property name="bottom_attach">3</property>  
      848                 <property name="x_options">GTK_FILL</property>  
    847 849                 <property name="y_options"></property>  
    848 850               </packing>  
    849 851             </child>  
    850 852             <child>  
    851                 <widget class="GtkLabel" id="label9">  
      853               <widget class="GtkLabel" id="l_from">  
    851 853                 <property name="visible">True</property>  
    852 854                 <property name="xalign">0</property>  
      855                 <property name="label" translatable="yes">Period from</property>  
    853 856               </widget>  
    854 857               <packing>  
    855                   <property name="left_attach">1</property>  
    856                   <property name="right_attach">2</property>  
    857                   <property name="top_attach">10</property>  
    858                   <property name="bottom_attach">11</property>  
    859 858                 <property name="x_options">GTK_FILL</property>  
      859                 <property name="y_options"></property>  
    860 860               </packing>  
    861 861             </child>  
    862 862             <child>  
    863                 <widget class="GtkEntry" id="e_acom">  
      863               <widget class="GtkLabel" id="label4">  
    863 863                 <property name="visible">True</property>  
    864                   <property name="can_focus">True</property>  
    865                   <property name="invisible_char">*</property>  
      864                 <property name="xalign">0</property>  
      865                 <property name="label" translatable="yes">Photo comment</property>  
    866 866               </widget>  
    867 867               <packing>  
    868                   <property name="right_attach">2</property>  
    869                   <property name="top_attach">7</property>  
    870                   <property name="bottom_attach">8</property>  
      868                 <property name="top_attach">4</property>  
      869                 <property name="bottom_attach">5</property>  
      870                 <property name="x_options">GTK_FILL</property>  
    871 871                 <property name="y_options"></property>  
    872 872               </packing>  
    873 873             </child>  
    874 874             <child>  
    875                 <widget class="GtkHSeparator" id="hseparator1">  
      875               <widget class="GtkLabel" id="label5">  
    875 875                 <property name="visible">True</property>  
      876                 <property name="xalign">0</property>  
      877                 <property name="label" translatable="yes">Album / comment</property>  
    876 878               </widget>  
    877 879               <packing>  
    878                   <property name="right_attach">2</property>  
    879                   <property name="top_attach">8</property>  
    880                   <property name="bottom_attach">9</property>  
      880                 <property name="top_attach">6</property>  
      881                 <property name="bottom_attach">7</property>  
    881 882                 <property name="x_options">GTK_FILL</property>  
    882 883                 <property name="y_options"></property>  
    883                   <property name="y_padding">8</property>  
    884 884               </packing>  
    885 885             </child>  
     
    961 961                         <property name="visible">True</property>  
    962 962                         <property name="events">GDK_POINTER_MOTION_MASK | GDK_POINTER_MOTION_HINT_MASK | GDK_BUTTON_PRESS_MASK | GDK_BUTTON_RELEASE_MASK</property>  
    963                           <property name="stock_id">gtk-delete</property>  
      963                         <property name="stock_id">gtk-cancel</property>  
    963 963                         <signal name="clicked" handler="on_delete_clicked"/>  
    964 964                       </widget>  
  • trunk/winshow.py

    r165 r172  
    166 166             self.idx = 0  
    167 167  
    168           node = self.ln[self.idx]  
      168         try:  
      169             node = self.ln[self.idx]  
      170         except IndexError:  
      171             self.quit()  
      172             return  
    169 173         try:  
    170 174             info = node.getInfo()