Ticket #976: patch

File patch, 74.7 KB (added by rohan013, 10 years ago)

Adds an option in the interface panel of preferences tab to minimize to tray on close. My first patch, so sorry if there are errors.

  • deluge/ui/gtkui/glade/preferences_dialog.ui

    diff --git a/deluge/ui/gtkui/glade/preferences_dialog.ui b/deluge/ui/gtkui/glade/preferences_dialog.ui
    index 5dcbf5c..efdc34f 100644
    a b  
    344344            <child> 
    345345              <object class="GtkButton" id="button_cancel"> 
    346346                <property name="label">gtk-cancel</property> 
    347                 <property name="use_action_appearance">False</property> 
    348347                <property name="visible">True</property> 
    349348                <property name="can_focus">True</property> 
    350349                <property name="receives_default">True</property> 
     350                <property name="use_action_appearance">False</property> 
    351351                <property name="use_stock">True</property> 
    352352                <signal name="clicked" handler="on_button_cancel_clicked" swapped="no"/> 
    353353              </object> 
     
    360360            <child> 
    361361              <object class="GtkButton" id="button_apply"> 
    362362                <property name="label">gtk-apply</property> 
    363                 <property name="use_action_appearance">False</property> 
    364363                <property name="visible">True</property> 
    365364                <property name="can_focus">True</property> 
    366365                <property name="receives_default">True</property> 
     366                <property name="use_action_appearance">False</property> 
    367367                <property name="use_stock">True</property> 
    368368                <signal name="clicked" handler="on_button_apply_clicked" swapped="no"/> 
    369369              </object> 
     
    376376            <child> 
    377377              <object class="GtkButton" id="button_ok"> 
    378378                <property name="label">gtk-ok</property> 
    379                 <property name="use_action_appearance">False</property> 
    380379                <property name="visible">True</property> 
    381380                <property name="can_focus">True</property> 
    382381                <property name="receives_default">True</property> 
     382                <property name="use_action_appearance">False</property> 
    383383                <property name="use_stock">True</property> 
    384384                <signal name="clicked" handler="on_button_ok_clicked" swapped="no"/> 
    385385              </object> 
     
    489489                                        <child> 
    490490                                          <object class="GtkCheckButton" id="chk_move_completed"> 
    491491                                            <property name="label" translatable="yes">Move completed to:</property> 
    492                                             <property name="use_action_appearance">False</property> 
    493492                                            <property name="visible">True</property> 
    494493                                            <property name="can_focus">True</property> 
    495494                                            <property name="receives_default">False</property> 
     495                                            <property name="use_action_appearance">False</property> 
    496496                                            <property name="draw_indicator">True</property> 
    497497                                            <signal name="toggled" handler="on_toggle" swapped="no"/> 
    498498                                          </object> 
     
    505505                                        <child> 
    506506                                          <object class="GtkCheckButton" id="chk_copy_torrent_file"> 
    507507                                            <property name="label" translatable="yes">Copy of .torrent files to:</property> 
    508                                             <property name="use_action_appearance">False</property> 
    509508                                            <property name="visible">True</property> 
    510509                                            <property name="can_focus">True</property> 
    511510                                            <property name="receives_default">False</property> 
     511                                            <property name="use_action_appearance">False</property> 
    512512                                            <property name="draw_indicator">True</property> 
    513513                                            <signal name="toggled" handler="on_toggle" swapped="no"/> 
    514514                                          </object> 
     
    521521                                        <child> 
    522522                                          <object class="GtkCheckButton" id="chk_del_copy_torrent_file"> 
    523523                                            <property name="label" translatable="yes">Delete copy of torrent file on remove</property> 
    524                                             <property name="use_action_appearance">False</property> 
    525524                                            <property name="visible">True</property> 
    526525                                            <property name="can_focus">True</property> 
    527526                                            <property name="receives_default">False</property> 
    528527                                            <property name="tooltip_text" translatable="yes">Delete the copy of the torrent file created when the torrent is removed</property> 
     528                                            <property name="use_action_appearance">False</property> 
    529529                                            <property name="draw_indicator">True</property> 
    530530                                          </object> 
    531531                                          <packing> 
     
    722722                                        <child> 
    723723                                          <object class="GtkRadioButton" id="radio_full_allocation"> 
    724724                                            <property name="label" translatable="yes">Use Full Allocation</property> 
    725                                             <property name="use_action_appearance">False</property> 
    726725                                            <property name="visible">True</property> 
    727726                                            <property name="can_focus">True</property> 
    728727                                            <property name="receives_default">False</property> 
    729728                                            <property name="tooltip_text" translatable="yes">Full allocation preallocates all of the space that is needed for the torrent and prevents disk fragmentation</property> 
     729                                            <property name="use_action_appearance">False</property> 
    730730                                            <property name="active">True</property> 
    731731                                            <property name="draw_indicator">True</property> 
    732732                                            <signal name="toggled" handler="on_alocation_toggled" swapped="no"/> 
     
    740740                                        <child> 
    741741                                          <object class="GtkRadioButton" id="radio_compact_allocation"> 
    742742                                            <property name="label" translatable="yes">Use Compact Allocation</property> 
    743                                             <property name="use_action_appearance">False</property> 
    744743                                            <property name="visible">True</property> 
    745744                                            <property name="can_focus">True</property> 
    746745                                            <property name="receives_default">False</property> 
    747746                                            <property name="tooltip_text" translatable="yes">Compact allocation only allocates space as needed</property> 
     747                                            <property name="use_action_appearance">False</property> 
    748748                                            <property name="draw_indicator">True</property> 
    749749                                            <property name="group">radio_full_allocation</property> 
    750750                                            <signal name="toggled" handler="on_alocation_toggled" swapped="no"/> 
     
    795795                                        <child> 
    796796                                          <object class="GtkCheckButton" id="chk_prioritize_first_last_pieces"> 
    797797                                            <property name="label" translatable="yes">Prioritize first and last pieces of torrent</property> 
    798                                             <property name="use_action_appearance">False</property> 
    799798                                            <property name="visible">True</property> 
    800799                                            <property name="can_focus">True</property> 
    801800                                            <property name="receives_default">False</property> 
    802801                                            <property name="tooltip_text" translatable="yes">Prioritize first and last pieces of files in torrent</property> 
     802                                            <property name="use_action_appearance">False</property> 
    803803                                            <property name="draw_indicator">True</property> 
    804804                                          </object> 
    805805                                          <packing> 
     
    811811                                        <child> 
    812812                                          <object class="GtkCheckButton" id="chk_sequential_download"> 
    813813                                            <property name="label" translatable="yes">Sequential download</property> 
    814                                             <property name="use_action_appearance">False</property> 
    815814                                            <property name="visible">True</property> 
    816815                                            <property name="can_focus">True</property> 
    817816                                            <property name="receives_default">False</property> 
    sequence instead of rarest first. 
    821820Enabling sequential download will affect the piece 
    822821distribution negatively in the swarm. It should be 
    823822used sparingly.</property> 
     823                                            <property name="use_action_appearance">False</property> 
    824824                                            <property name="draw_indicator">True</property> 
    825825                                          </object> 
    826826                                          <packing> 
    used sparingly.</property> 
    832832                                        <child> 
    833833                                          <object class="GtkCheckButton" id="chk_add_paused"> 
    834834                                            <property name="label" translatable="yes">Add torrents in Paused state</property> 
    835                                             <property name="use_action_appearance">False</property> 
    836835                                            <property name="visible">True</property> 
    837836                                            <property name="can_focus">True</property> 
    838837                                            <property name="receives_default">False</property> 
     838                                            <property name="use_action_appearance">False</property> 
    839839                                            <property name="draw_indicator">True</property> 
    840840                                          </object> 
    841841                                          <packing> 
    used sparingly.</property> 
    948948                                            <child> 
    949949                                              <object class="GtkCheckButton" id="chk_random_port"> 
    950950                                                <property name="label" translatable="yes">Use Random Ports</property> 
    951                                                 <property name="use_action_appearance">False</property> 
    952951                                                <property name="visible">True</property> 
    953952                                                <property name="can_focus">True</property> 
    954953                                                <property name="receives_default">False</property> 
    955954                                                <property name="tooltip_text" translatable="yes">Deluge will automatically choose a different port to use every time.</property> 
     955                                                <property name="use_action_appearance">False</property> 
    956956                                                <property name="draw_indicator">True</property> 
    957957                                                <signal name="toggled" handler="on_toggle" swapped="no"/> 
    958958                                              </object> 
    used sparingly.</property> 
    10911091                                            <child> 
    10921092                                              <object class="GtkButton" id="btn_testport"> 
    10931093                                                <property name="label" translatable="yes">Test Active Port</property> 
    1094                                                 <property name="use_action_appearance">False</property> 
    10951094                                                <property name="visible">True</property> 
    10961095                                                <property name="can_focus">True</property> 
    10971096                                                <property name="receives_default">True</property> 
     1097                                                <property name="use_action_appearance">False</property> 
    10981098                                                <signal name="clicked" handler="on_test_port_clicked" swapped="no"/> 
    10991099                                              </object> 
    11001100                                              <packing> 
    used sparingly.</property> 
    11691169                                        <child> 
    11701170                                          <object class="GtkCheckButton" id="chk_random_outgoing_ports"> 
    11711171                                            <property name="label" translatable="yes">Use Random Ports</property> 
    1172                                             <property name="use_action_appearance">False</property> 
    11731172                                            <property name="visible">True</property> 
    11741173                                            <property name="can_focus">True</property> 
    11751174                                            <property name="receives_default">False</property> 
     1175                                            <property name="use_action_appearance">False</property> 
    11761176                                            <property name="draw_indicator">True</property> 
    11771177                                            <signal name="toggled" handler="on_toggle" swapped="no"/> 
    11781178                                          </object> 
    used sparingly.</property> 
    14451445                                        <child> 
    14461446                                          <object class="GtkCheckButton" id="chk_upnp"> 
    14471447                                            <property name="label" translatable="yes">UPnP</property> 
    1448                                             <property name="use_action_appearance">False</property> 
    14491448                                            <property name="visible">True</property> 
    14501449                                            <property name="can_focus">True</property> 
    14511450                                            <property name="receives_default">False</property> 
    14521451                                            <property name="tooltip_text" translatable="yes">Universal Plug and Play</property> 
     1452                                            <property name="use_action_appearance">False</property> 
    14531453                                            <property name="use_underline">True</property> 
    14541454                                            <property name="active">True</property> 
    14551455                                            <property name="draw_indicator">True</property> 
    used sparingly.</property> 
    14611461                                        <child> 
    14621462                                          <object class="GtkCheckButton" id="chk_natpmp"> 
    14631463                                            <property name="label" translatable="yes">NAT-PMP</property> 
    1464                                             <property name="use_action_appearance">False</property> 
    14651464                                            <property name="visible">True</property> 
    14661465                                            <property name="can_focus">True</property> 
    14671466                                            <property name="receives_default">False</property> 
    14681467                                            <property name="tooltip_text" translatable="yes">NAT Port Mapping Protocol</property> 
     1468                                            <property name="use_action_appearance">False</property> 
    14691469                                            <property name="use_underline">True</property> 
    14701470                                            <property name="active">True</property> 
    14711471                                            <property name="draw_indicator">True</property> 
    used sparingly.</property> 
    14791479                                        <child> 
    14801480                                          <object class="GtkCheckButton" id="chk_utpex"> 
    14811481                                            <property name="label" translatable="yes">Peer Exchange</property> 
    1482                                             <property name="use_action_appearance">False</property> 
    14831482                                            <property name="visible">True</property> 
    14841483                                            <property name="can_focus">True</property> 
    14851484                                            <property name="receives_default">False</property> 
    14861485                                            <property name="tooltip_text" translatable="yes">Peer Exchange</property> 
     1486                                            <property name="use_action_appearance">False</property> 
    14871487                                            <property name="use_underline">True</property> 
    14881488                                            <property name="active">True</property> 
    14891489                                            <property name="draw_indicator">True</property> 
    used sparingly.</property> 
    14971497                                        <child> 
    14981498                                          <object class="GtkCheckButton" id="chk_lsd"> 
    14991499                                            <property name="label" translatable="yes">LSD</property> 
    1500                                             <property name="use_action_appearance">False</property> 
    15011500                                            <property name="visible">True</property> 
    15021501                                            <property name="can_focus">True</property> 
    15031502                                            <property name="receives_default">False</property> 
    15041503                                            <property name="tooltip_text" translatable="yes">Local Service Discovery finds local peers on your network.</property> 
     1504                                            <property name="use_action_appearance">False</property> 
    15051505                                            <property name="draw_indicator">True</property> 
    15061506                                          </object> 
    15071507                                          <packing> 
    used sparingly.</property> 
    15131513                                        <child> 
    15141514                                          <object class="GtkCheckButton" id="chk_dht"> 
    15151515                                            <property name="label" translatable="yes">DHT</property> 
    1516                                             <property name="use_action_appearance">False</property> 
    15171516                                            <property name="visible">True</property> 
    15181517                                            <property name="can_focus">True</property> 
    15191518                                            <property name="receives_default">False</property> 
    15201519                                            <property name="tooltip_text" translatable="yes">Distributed hash table may improve the amount of active connections.</property> 
     1520                                            <property name="use_action_appearance">False</property> 
    15211521                                            <property name="use_underline">True</property> 
    15221522                                            <property name="draw_indicator">True</property> 
    15231523                                          </object> 
    used sparingly.</property> 
    17031703                                            <child> 
    17041704                                              <object class="GtkCheckButton" id="chk_pref_rc4"> 
    17051705                                                <property name="label" translatable="yes">Encrypt entire stream</property> 
    1706                                                 <property name="use_action_appearance">False</property> 
    17071706                                                <property name="visible">True</property> 
    17081707                                                <property name="can_focus">True</property> 
    17091708                                                <property name="receives_default">False</property> 
     1709                                                <property name="use_action_appearance">False</property> 
    17101710                                                <property name="use_underline">True</property> 
    17111711                                                <property name="draw_indicator">True</property> 
    17121712                                              </object> 
    used sparingly.</property> 
    20652065                                            <child> 
    20662066                                              <object class="GtkCheckButton" id="chk_ignore_limits_on_local_network"> 
    20672067                                                <property name="label" translatable="yes">Ignore limits on local network</property> 
    2068                                                 <property name="use_action_appearance">False</property> 
    20692068                                                <property name="visible">True</property> 
    20702069                                                <property name="can_focus">True</property> 
    20712070                                                <property name="receives_default">False</property> 
     2071                                                <property name="use_action_appearance">False</property> 
    20722072                                                <property name="active">True</property> 
    20732073                                                <property name="draw_indicator">True</property> 
    20742074                                              </object> 
    used sparingly.</property> 
    20882088                                            <child> 
    20892089                                              <object class="GtkCheckButton" id="chk_rate_limit_ip_overhead"> 
    20902090                                                <property name="label" translatable="yes">Rate limit IP overhead</property> 
    2091                                                 <property name="use_action_appearance">False</property> 
    20922091                                                <property name="visible">True</property> 
    20932092                                                <property name="can_focus">True</property> 
    20942093                                                <property name="receives_default">False</property> 
    20952094                                                <property name="tooltip_text" translatable="yes">If checked, the estimated TCP/IP overhead is drained from the rate limiters, to avoid exceeding the limits with the total traffic</property> 
     2095                                                <property name="use_action_appearance">False</property> 
    20962096                                                <property name="active">True</property> 
    20972097                                                <property name="draw_indicator">True</property> 
    20982098                                              </object> 
    used sparingly.</property> 
    23862386                                    <child> 
    23872387                                      <object class="GtkCheckButton" id="chk_classic_mode"> 
    23882388                                        <property name="label" translatable="yes">Enable</property> 
    2389                                         <property name="use_action_appearance">False</property> 
    23902389                                        <property name="visible">True</property> 
    23912390                                        <property name="can_focus">True</property> 
    23922391                                        <property name="receives_default">False</property> 
    23932392                                        <property name="tooltip_text" translatable="yes">Classic Mode will hide most of the daemon functionality and will make Deluge appear to be a single application.  Use this if you do not want to take advantage of running Deluge as a daemon. You need to restart Deluge for this setting to take effect.</property> 
     2393                                        <property name="use_action_appearance">False</property> 
    23942394                                        <property name="draw_indicator">True</property> 
    23952395                                      </object> 
    23962396                                    </child> 
    used sparingly.</property> 
    24322432                                        <child> 
    24332433                                          <object class="GtkCheckButton" id="chk_show_rate_in_title"> 
    24342434                                            <property name="label" translatable="yes">Show session speed in titlebar</property> 
    2435                                             <property name="use_action_appearance">False</property> 
    24362435                                            <property name="visible">True</property> 
    24372436                                            <property name="can_focus">True</property> 
    24382437                                            <property name="receives_default">False</property> 
     2438                                            <property name="use_action_appearance">False</property> 
    24392439                                            <property name="draw_indicator">True</property> 
    24402440                                          </object> 
    24412441                                          <packing> 
    used sparingly.</property> 
    24472447                                        <child> 
    24482448                                          <object class="GtkCheckButton" id="chk_focus_main_window_on_add"> 
    24492449                                            <property name="label" translatable="yes">Focus window when adding torrent</property> 
    2450                                             <property name="use_action_appearance">False</property> 
    24512450                                            <property name="visible">True</property> 
    24522451                                            <property name="can_focus">True</property> 
    24532452                                            <property name="receives_default">False</property> 
    24542453                                            <property name="events">GDK_POINTER_MOTION_MASK | GDK_POINTER_MOTION_HINT_MASK | GDK_BUTTON_PRESS_MASK | GDK_BUTTON_RELEASE_MASK</property> 
     2454                                            <property name="use_action_appearance">False</property> 
    24552455                                            <property name="draw_indicator">True</property> 
    24562456                                          </object> 
    24572457                                          <packing> 
    used sparingly.</property> 
    24612461                                          </packing> 
    24622462                                        </child> 
    24632463                                        <child> 
     2464                                          <object class="GtkCheckButton" id="piecesbar_toggle"> 
     2465                                            <property name="visible">True</property> 
     2466                                            <property name="can_focus">True</property> 
     2467                                            <property name="receives_default">False</property> 
     2468                                            <property name="tooltip_text" translatable="yes">Besides being experimental, using the pieces bar 
     2469will increase the bandwidth used between client 
     2470and daemon(does not apply in classic mode). 
     2471Use at your own risk if you wish to help us debug 
     2472this new feature.</property> 
     2473                                            <property name="use_action_appearance">False</property> 
     2474                                            <property name="draw_indicator">True</property> 
     2475                                            <signal name="toggled" handler="on_piecesbar_toggle_toggled" swapped="no"/> 
     2476                                            <child> 
     2477                                              <object class="GtkLabel" id="label62"> 
     2478                                                <property name="visible">True</property> 
     2479                                                <property name="can_focus">False</property> 
     2480                                                <property name="label" translatable="yes">Show a pieces bar in the torrent's 
     2481status tab (&lt;b&gt;EXPERIMENTAL!!!&lt;/b&gt;)</property> 
     2482                                                <property name="use_markup">True</property> 
     2483                                              </object> 
     2484                                            </child> 
     2485                                          </object> 
     2486                                          <packing> 
     2487                                            <property name="expand">True</property> 
     2488                                            <property name="fill">True</property> 
     2489                                            <property name="position">2</property> 
     2490                                          </packing> 
     2491                                        </child> 
     2492                                        <child> 
    24642493                                          <object class="GtkExpander" id="piecebar_colors_expander"> 
    24652494                                            <property name="can_focus">True</property> 
    24662495                                            <child> 
    used sparingly.</property> 
    24892518                                                    </child> 
    24902519                                                    <child> 
    24912520                                                      <object class="GtkColorButton" id="completed_color"> 
    2492                                                         <property name="use_action_appearance">False</property> 
    24932521                                                        <property name="visible">True</property> 
    24942522                                                        <property name="can_focus">True</property> 
    24952523                                                        <property name="receives_default">True</property> 
     2524                                                        <property name="use_action_appearance">False</property> 
    24962525                                                        <property name="xalign">0</property> 
    24972526                                                        <property name="color">#000000000000</property> 
    24982527                                                        <signal name="color-set" handler="on_completed_color_set" swapped="no"/> 
    used sparingly.</property> 
    25182547                                                    </child> 
    25192548                                                    <child> 
    25202549                                                      <object class="GtkColorButton" id="downloading_color"> 
    2521                                                         <property name="use_action_appearance">False</property> 
    25222550                                                        <property name="visible">True</property> 
    25232551                                                        <property name="can_focus">True</property> 
    25242552                                                        <property name="receives_default">True</property> 
     2553                                                        <property name="use_action_appearance">False</property> 
    25252554                                                        <property name="xalign">0</property> 
    25262555                                                        <property name="color">#000000000000</property> 
    25272556                                                        <signal name="color-set" handler="on_downloading_color_set" swapped="no"/> 
    used sparingly.</property> 
    25492578                                                    </child> 
    25502579                                                    <child> 
    25512580                                                      <object class="GtkColorButton" id="waiting_color"> 
    2552                                                         <property name="use_action_appearance">False</property> 
    25532581                                                        <property name="visible">True</property> 
    25542582                                                        <property name="can_focus">True</property> 
    25552583                                                        <property name="receives_default">True</property> 
     2584                                                        <property name="use_action_appearance">False</property> 
    25562585                                                        <property name="xalign">0</property> 
    25572586                                                        <property name="color">#000000000000</property> 
    25582587                                                        <signal name="color-set" handler="on_waiting_color_set" swapped="no"/> 
    used sparingly.</property> 
    25802609                                                    </child> 
    25812610                                                    <child> 
    25822611                                                      <object class="GtkColorButton" id="missing_color"> 
    2583                                                         <property name="use_action_appearance">False</property> 
    25842612                                                        <property name="visible">True</property> 
    25852613                                                        <property name="can_focus">True</property> 
    25862614                                                        <property name="receives_default">True</property> 
     2615                                                        <property name="use_action_appearance">False</property> 
    25872616                                                        <property name="xalign">0</property> 
    25882617                                                        <property name="color">#000000000000</property> 
    25892618                                                        <signal name="color-set" handler="on_missing_color_set" swapped="no"/> 
    used sparingly.</property> 
    25992628                                                    <child> 
    26002629                                                      <object class="GtkButton" id="revert_color_completed"> 
    26012630                                                        <property name="label">gtk-revert-to-saved</property> 
    2602                                                         <property name="use_action_appearance">False</property> 
    26032631                                                        <property name="visible">True</property> 
    26042632                                                        <property name="sensitive">False</property> 
    26052633                                                        <property name="can_focus">True</property> 
    26062634                                                        <property name="receives_default">True</property> 
    26072635                                                        <property name="tooltip_text" translatable="yes">Revert color to default</property> 
     2636                                                        <property name="use_action_appearance">False</property> 
    26082637                                                        <property name="use_stock">True</property> 
    26092638                                                        <property name="image_position">right</property> 
    26102639                                                        <signal name="clicked" handler="on_revert_color_completed_clicked" swapped="no"/> 
    used sparingly.</property> 
    26182647                                                    <child> 
    26192648                                                      <object class="GtkButton" id="revert_color_downloading"> 
    26202649                                                        <property name="label">gtk-revert-to-saved</property> 
    2621                                                         <property name="use_action_appearance">False</property> 
    26222650                                                        <property name="visible">True</property> 
    26232651                                                        <property name="sensitive">False</property> 
    26242652                                                        <property name="can_focus">True</property> 
    26252653                                                        <property name="receives_default">True</property> 
    26262654                                                        <property name="tooltip_text" translatable="yes">Revert color to default</property> 
     2655                                                        <property name="use_action_appearance">False</property> 
    26272656                                                        <property name="use_stock">True</property> 
    26282657                                                        <property name="image_position">right</property> 
    26292658                                                        <signal name="clicked" handler="on_revert_color_downloading_clicked" swapped="no"/> 
    used sparingly.</property> 
    26392668                                                    <child> 
    26402669                                                      <object class="GtkButton" id="revert_color_waiting"> 
    26412670                                                        <property name="label">gtk-revert-to-saved</property> 
    2642                                                         <property name="use_action_appearance">False</property> 
    26432671                                                        <property name="visible">True</property> 
    26442672                                                        <property name="sensitive">False</property> 
    26452673                                                        <property name="can_focus">True</property> 
    26462674                                                        <property name="receives_default">True</property> 
    26472675                                                        <property name="tooltip_text" translatable="yes">Revert color to default</property> 
     2676                                                        <property name="use_action_appearance">False</property> 
    26482677                                                        <property name="use_stock">True</property> 
    26492678                                                        <property name="image_position">right</property> 
    26502679                                                        <signal name="clicked" handler="on_revert_color_waiting_clicked" swapped="no"/> 
    used sparingly.</property> 
    26602689                                                    <child> 
    26612690                                                      <object class="GtkButton" id="revert_color_missing"> 
    26622691                                                        <property name="label">gtk-revert-to-saved</property> 
    2663                                                         <property name="use_action_appearance">False</property> 
    26642692                                                        <property name="visible">True</property> 
    26652693                                                        <property name="sensitive">False</property> 
    26662694                                                        <property name="can_focus">True</property> 
    26672695                                                        <property name="receives_default">True</property> 
    26682696                                                        <property name="tooltip_text" translatable="yes">Revert color to default</property> 
     2697                                                        <property name="use_action_appearance">False</property> 
    26692698                                                        <property name="use_stock">True</property> 
    26702699                                                        <property name="image_position">right</property> 
    26712700                                                        <signal name="clicked" handler="on_revert_color_missing_clicked" swapped="no"/> 
    used sparingly.</property> 
    26962725                                            <property name="position">2</property> 
    26972726                                          </packing> 
    26982727                                        </child> 
    2699                                         <child> 
    2700                                           <object class="GtkCheckButton" id="piecesbar_toggle"> 
    2701                                             <property name="use_action_appearance">False</property> 
    2702                                             <property name="visible">True</property> 
    2703                                             <property name="can_focus">True</property> 
    2704                                             <property name="receives_default">False</property> 
    2705                                             <property name="tooltip_text" translatable="yes">Besides being experimental, using the pieces bar 
    2706 will increase the bandwidth used between client 
    2707 and daemon(does not apply in classic mode). 
    2708 Use at your own risk if you wish to help us debug 
    2709 this new feature.</property> 
    2710                                             <property name="draw_indicator">True</property> 
    2711                                             <signal name="toggled" handler="on_piecesbar_toggle_toggled" swapped="no"/> 
    2712                                             <child> 
    2713                                               <object class="GtkLabel" id="label62"> 
    2714                                                 <property name="visible">True</property> 
    2715                                                 <property name="can_focus">False</property> 
    2716                                                 <property name="label" translatable="yes">Show a pieces bar in the torrent's 
    2717 status tab (&lt;b&gt;EXPERIMENTAL!!!&lt;/b&gt;)</property> 
    2718                                                 <property name="use_markup">True</property> 
    2719                                               </object> 
    2720                                             </child> 
    2721                                           </object> 
    2722                                           <packing> 
    2723                                             <property name="expand">True</property> 
    2724                                             <property name="fill">True</property> 
    2725                                             <property name="position">2</property> 
    2726                                           </packing> 
    2727                                         </child> 
    27282728                                      </object> 
    27292729                                    </child> 
    27302730                                  </object> 
    status tab (&lt;b&gt;EXPERIMENTAL!!!&lt;/b&gt;)</property> 
    27652765                                        <child> 
    27662766                                          <object class="GtkCheckButton" id="chk_show_dialog"> 
    27672767                                            <property name="label" translatable="yes">Always show</property> 
    2768                                             <property name="use_action_appearance">False</property> 
    27692768                                            <property name="visible">True</property> 
    27702769                                            <property name="can_focus">True</property> 
    27712770                                            <property name="receives_default">False</property> 
     2771                                            <property name="use_action_appearance">False</property> 
    27722772                                            <property name="draw_indicator">True</property> 
    27732773                                            <signal name="toggled" handler="on_toggle" swapped="no"/> 
    27742774                                          </object> 
    status tab (&lt;b&gt;EXPERIMENTAL!!!&lt;/b&gt;)</property> 
    27852785                                            <child> 
    27862786                                              <object class="GtkCheckButton" id="chk_focus_dialog"> 
    27872787                                                <property name="label" translatable="yes">Bring the dialog to focus</property> 
    2788                                                 <property name="use_action_appearance">False</property> 
    27892788                                                <property name="visible">True</property> 
    27902789                                                <property name="can_focus">True</property> 
    27912790                                                <property name="receives_default">False</property> 
     2791                                                <property name="use_action_appearance">False</property> 
    27922792                                                <property name="draw_indicator">True</property> 
    27932793                                              </object> 
    27942794                                            </child> 
    status tab (&lt;b&gt;EXPERIMENTAL!!!&lt;/b&gt;)</property> 
    28392839                                        <child> 
    28402840                                          <object class="GtkCheckButton" id="chk_use_tray"> 
    28412841                                            <property name="label" translatable="yes">Enable system tray icon</property> 
    2842                                             <property name="use_action_appearance">False</property> 
    28432842                                            <property name="visible">True</property> 
    28442843                                            <property name="can_focus">False</property> 
    28452844                                            <property name="receives_default">False</property> 
     2845                                            <property name="use_action_appearance">False</property> 
    28462846                                            <property name="use_underline">True</property> 
    28472847                                            <property name="draw_indicator">True</property> 
    28482848                                            <signal name="toggled" handler="on_toggle" swapped="no"/> 
    status tab (&lt;b&gt;EXPERIMENTAL!!!&lt;/b&gt;)</property> 
    28612861                                            <child> 
    28622862                                              <object class="GtkCheckButton" id="chk_min_on_close"> 
    28632863                                                <property name="label" translatable="yes">Minimize to tray on close</property> 
    2864                                                 <property name="use_action_appearance">False</property> 
    28652864                                                <property name="visible">True</property> 
    28662865                                                <property name="sensitive">False</property> 
    28672866                                                <property name="can_focus">False</property> 
    28682867                                                <property name="receives_default">False</property> 
     2868                                                <property name="use_action_appearance">False</property> 
    28692869                                                <property name="use_underline">True</property> 
    28702870                                                <property name="draw_indicator">True</property> 
    28712871                                              </object> 
    status tab (&lt;b&gt;EXPERIMENTAL!!!&lt;/b&gt;)</property> 
    28782878                                          </packing> 
    28792879                                        </child> 
    28802880                                        <child> 
     2881                                          <object class="GtkAlignment" id="alignment11"> 
     2882                                            <property name="visible">True</property> 
     2883                                            <property name="can_focus">False</property> 
     2884                                            <property name="left_padding">10</property> 
     2885                                            <child> 
     2886                                              <object class="GtkCheckButton" id="chk_min_on_min"> 
     2887                                                <property name="label" translatable="yes">Minimize to tray on minimize</property> 
     2888                                                <property name="visible">True</property> 
     2889                                                <property name="sensitive">False</property> 
     2890                                                <property name="can_focus">True</property> 
     2891                                                <property name="receives_default">False</property> 
     2892                                                <property name="use_action_appearance">False</property> 
     2893                                                <property name="use_underline">True</property> 
     2894                                                <property name="draw_indicator">True</property> 
     2895                                              </object> 
     2896                                            </child> 
     2897                                          </object> 
     2898                                          <packing> 
     2899                                            <property name="expand">True</property> 
     2900                                            <property name="fill">True</property> 
     2901                                            <property name="position">2</property> 
     2902                                          </packing> 
     2903                                        </child> 
     2904                                        <child> 
    28812905                                          <object class="GtkAlignment" id="alignment16"> 
    28822906                                            <property name="visible">True</property> 
    28832907                                            <property name="can_focus">False</property> 
    status tab (&lt;b&gt;EXPERIMENTAL!!!&lt;/b&gt;)</property> 
    28852909                                            <child> 
    28862910                                              <object class="GtkCheckButton" id="chk_start_in_tray"> 
    28872911                                                <property name="label" translatable="yes">Start in tray</property> 
    2888                                                 <property name="use_action_appearance">False</property> 
    28892912                                                <property name="visible">True</property> 
    28902913                                                <property name="sensitive">False</property> 
    28912914                                                <property name="can_focus">False</property> 
    28922915                                                <property name="receives_default">False</property> 
     2916                                                <property name="use_action_appearance">False</property> 
    28932917                                                <property name="use_underline">True</property> 
    28942918                                                <property name="draw_indicator">True</property> 
    28952919                                              </object> 
    status tab (&lt;b&gt;EXPERIMENTAL!!!&lt;/b&gt;)</property> 
    28982922                                          <packing> 
    28992923                                            <property name="expand">True</property> 
    29002924                                            <property name="fill">True</property> 
    2901                                             <property name="position">2</property> 
     2925                                            <property name="position">3</property> 
    29022926                                          </packing> 
    29032927                                        </child> 
    29042928                                        <child> 
    status tab (&lt;b&gt;EXPERIMENTAL!!!&lt;/b&gt;)</property> 
    29092933                                            <child> 
    29102934                                              <object class="GtkCheckButton" id="chk_enable_appindicator"> 
    29112935                                                <property name="label" translatable="yes">Enable Application Indicator</property> 
    2912                                                 <property name="use_action_appearance">False</property> 
    29132936                                                <property name="visible">True</property> 
    29142937                                                <property name="sensitive">False</property> 
    29152938                                                <property name="can_focus">False</property> 
    29162939                                                <property name="receives_default">False</property> 
     2940                                                <property name="use_action_appearance">False</property> 
    29172941                                                <property name="use_underline">True</property> 
    29182942                                                <property name="draw_indicator">True</property> 
    29192943                                              </object> 
    status tab (&lt;b&gt;EXPERIMENTAL!!!&lt;/b&gt;)</property> 
    29222946                                          <packing> 
    29232947                                            <property name="expand">True</property> 
    29242948                                            <property name="fill">True</property> 
    2925                                             <property name="position">3</property> 
     2949                                            <property name="position">4</property> 
    29262950                                          </packing> 
    29272951                                        </child> 
    29282952                                        <child> 
    status tab (&lt;b&gt;EXPERIMENTAL!!!&lt;/b&gt;)</property> 
    29342958                                            <child> 
    29352959                                              <object class="GtkCheckButton" id="chk_lock_tray"> 
    29362960                                                <property name="label" translatable="yes">Password protect system tray</property> 
    2937                                                 <property name="use_action_appearance">False</property> 
    29382961                                                <property name="visible">True</property> 
    29392962                                                <property name="sensitive">False</property> 
    29402963                                                <property name="can_focus">True</property> 
    29412964                                                <property name="receives_default">False</property> 
     2965                                                <property name="use_action_appearance">False</property> 
    29422966                                                <property name="use_underline">True</property> 
    29432967                                                <property name="draw_indicator">True</property> 
    29442968                                                <signal name="toggled" handler="on_toggle" swapped="no"/> 
    status tab (&lt;b&gt;EXPERIMENTAL!!!&lt;/b&gt;)</property> 
    29482972                                          <packing> 
    29492973                                            <property name="expand">False</property> 
    29502974                                            <property name="fill">True</property> 
    2951                                             <property name="position">4</property> 
     2975                                            <property name="position">5</property> 
    29522976                                          </packing> 
    29532977                                        </child> 
    29542978                                        <child> 
    status tab (&lt;b&gt;EXPERIMENTAL!!!&lt;/b&gt;)</property> 
    30013025                                          <packing> 
    30023026                                            <property name="expand">True</property> 
    30033027                                            <property name="fill">True</property> 
    3004                                             <property name="position">5</property> 
     3028                                            <property name="position">6</property> 
    30053029                                          </packing> 
    30063030                                        </child> 
    30073031                                      </object> 
    status tab (&lt;b&gt;EXPERIMENTAL!!!&lt;/b&gt;)</property> 
    31103134                                            <child> 
    31113135                                              <object class="GtkCheckButton" id="chk_show_new_releases"> 
    31123136                                                <property name="label" translatable="yes">Be alerted about new releases</property> 
    3113                                                 <property name="use_action_appearance">False</property> 
    31143137                                                <property name="visible">True</property> 
    31153138                                                <property name="can_focus">True</property> 
    31163139                                                <property name="receives_default">False</property> 
    31173140                                                <property name="tooltip_text" translatable="yes">Deluge will check our servers and will tell you if a newer version has been released</property> 
     3141                                                <property name="use_action_appearance">False</property> 
    31183142                                                <property name="draw_indicator">True</property> 
    31193143                                              </object> 
    31203144                                            </child> 
    status tab (&lt;b&gt;EXPERIMENTAL!!!&lt;/b&gt;)</property> 
    31843208                                            <child> 
    31853209                                              <object class="GtkCheckButton" id="chk_send_info"> 
    31863210                                                <property name="label" translatable="yes">Yes, please send anonymous statistics</property> 
    3187                                                 <property name="use_action_appearance">False</property> 
    31883211                                                <property name="visible">True</property> 
    31893212                                                <property name="can_focus">True</property> 
    31903213                                                <property name="receives_default">False</property> 
     3214                                                <property name="use_action_appearance">False</property> 
    31913215                                                <property name="draw_indicator">True</property> 
    31923216                                              </object> 
    31933217                                            </child> 
    status tab (&lt;b&gt;EXPERIMENTAL!!!&lt;/b&gt;)</property> 
    33143338                                    <property name="layout_style">start</property> 
    33153339                                    <child> 
    33163340                                      <object class="GtkButton" id="button_associate_magnet"> 
    3317                                         <property name="use_action_appearance">False</property> 
    33183341                                        <property name="visible">True</property> 
    33193342                                        <property name="can_focus">True</property> 
    33203343                                        <property name="receives_default">True</property> 
     3344                                        <property name="use_action_appearance">False</property> 
    33213345                                        <signal name="clicked" handler="on_button_associate_magnet_clicked" swapped="no"/> 
    33223346                                        <child> 
    33233347                                          <object class="GtkHBox" id="hbox16"> 
    status tab (&lt;b&gt;EXPERIMENTAL!!!&lt;/b&gt;)</property> 
    35213545                                    <child> 
    35223546                                      <object class="GtkCheckButton" id="chk_allow_remote_connections"> 
    35233547                                        <property name="label" translatable="yes">Allow Remote Connections</property> 
    3524                                         <property name="use_action_appearance">False</property> 
    35253548                                        <property name="visible">True</property> 
    35263549                                        <property name="can_focus">True</property> 
    35273550                                        <property name="receives_default">False</property> 
     3551                                        <property name="use_action_appearance">False</property> 
    35283552                                        <property name="draw_indicator">True</property> 
    35293553                                      </object> 
    35303554                                    </child> 
    status tab (&lt;b&gt;EXPERIMENTAL!!!&lt;/b&gt;)</property> 
    35613585                                    <child> 
    35623586                                      <object class="GtkCheckButton" id="chk_new_releases"> 
    35633587                                        <property name="label" translatable="yes">Periodically check the website for new releases</property> 
    3564                                         <property name="use_action_appearance">False</property> 
    35653588                                        <property name="visible">True</property> 
    35663589                                        <property name="can_focus">True</property> 
    35673590                                        <property name="receives_default">False</property> 
     3591                                        <property name="use_action_appearance">False</property> 
    35683592                                        <property name="draw_indicator">True</property> 
    35693593                                      </object> 
    35703594                                    </child> 
    status tab (&lt;b&gt;EXPERIMENTAL!!!&lt;/b&gt;)</property> 
    36223646                                            <child> 
    36233647                                              <object class="GtkButton" id="accounts_add"> 
    36243648                                                <property name="label">gtk-add</property> 
    3625                                                 <property name="use_action_appearance">False</property> 
    36263649                                                <property name="visible">True</property> 
    36273650                                                <property name="can_focus">True</property> 
    36283651                                                <property name="receives_default">True</property> 
     3652                                                <property name="use_action_appearance">False</property> 
    36293653                                                <property name="use_stock">True</property> 
    36303654                                                <signal name="clicked" handler="on_accounts_add_clicked" swapped="no"/> 
    36313655                                              </object> 
    status tab (&lt;b&gt;EXPERIMENTAL!!!&lt;/b&gt;)</property> 
    36383662                                            <child> 
    36393663                                              <object class="GtkButton" id="accounts_edit"> 
    36403664                                                <property name="label">gtk-edit</property> 
    3641                                                 <property name="use_action_appearance">False</property> 
    36423665                                                <property name="visible">True</property> 
    36433666                                                <property name="sensitive">False</property> 
    36443667                                                <property name="can_focus">True</property> 
    36453668                                                <property name="receives_default">True</property> 
     3669                                                <property name="use_action_appearance">False</property> 
    36463670                                                <property name="use_stock">True</property> 
    36473671                                                <signal name="clicked" handler="on_accounts_edit_clicked" swapped="no"/> 
    36483672                                              </object> 
    status tab (&lt;b&gt;EXPERIMENTAL!!!&lt;/b&gt;)</property> 
    36553679                                            <child> 
    36563680                                              <object class="GtkButton" id="accounts_delete"> 
    36573681                                                <property name="label">gtk-delete</property> 
    3658                                                 <property name="use_action_appearance">False</property> 
    36593682                                                <property name="visible">True</property> 
    36603683                                                <property name="sensitive">False</property> 
    36613684                                                <property name="can_focus">True</property> 
    36623685                                                <property name="receives_default">True</property> 
     3686                                                <property name="use_action_appearance">False</property> 
    36633687                                                <property name="use_stock">True</property> 
    36643688                                                <signal name="clicked" handler="on_accounts_delete_clicked" swapped="no"/> 
    36653689                                              </object> 
    status tab (&lt;b&gt;EXPERIMENTAL!!!&lt;/b&gt;)</property> 
    37863810                                            <child> 
    37873811                                              <object class="GtkCheckButton" id="chk_queue_new_top"> 
    37883812                                                <property name="label" translatable="yes">Queue new torrents to top</property> 
    3789                                                 <property name="use_action_appearance">False</property> 
    37903813                                                <property name="visible">True</property> 
    37913814                                                <property name="can_focus">True</property> 
    37923815                                                <property name="receives_default">False</property> 
     3816                                                <property name="use_action_appearance">False</property> 
    37933817                                                <property name="draw_indicator">True</property> 
    37943818                                              </object> 
    37953819                                              <packing> 
    status tab (&lt;b&gt;EXPERIMENTAL!!!&lt;/b&gt;)</property> 
    39493973                                            <child> 
    39503974                                              <object class="GtkCheckButton" id="chk_dont_count_slow_torrents"> 
    39513975                                                <property name="label" translatable="yes">Do not count slow torrents</property> 
    3952                                                 <property name="use_action_appearance">False</property> 
    39533976                                                <property name="visible">True</property> 
    39543977                                                <property name="can_focus">True</property> 
    39553978                                                <property name="receives_default">False</property> 
     3979                                                <property name="use_action_appearance">False</property> 
    39563980                                                <property name="draw_indicator">True</property> 
    39573981                                              </object> 
    39583982                                              <packing> 
    status tab (&lt;b&gt;EXPERIMENTAL!!!&lt;/b&gt;)</property> 
    39643988                                            <child> 
    39653989                                              <object class="GtkCheckButton" id="chk_auto_manage_prefer_seeds"> 
    39663990                                                <property name="label" translatable="yes">Prefer Seeding over Downloading</property> 
    3967                                                 <property name="use_action_appearance">False</property> 
    39683991                                                <property name="visible">True</property> 
    39693992                                                <property name="can_focus">True</property> 
    39703993                                                <property name="receives_default">False</property> 
     3994                                                <property name="use_action_appearance">False</property> 
    39713995                                                <property name="draw_indicator">True</property> 
    39723996                                              </object> 
    39733997                                              <packing> 
    status tab (&lt;b&gt;EXPERIMENTAL!!!&lt;/b&gt;)</property> 
    41314155                                                <child> 
    41324156                                                  <object class="GtkCheckButton" id="chk_seed_ratio"> 
    41334157                                                    <property name="label" translatable="yes">Stop seeding when share ratio reaches:</property> 
    4134                                                     <property name="use_action_appearance">False</property> 
    41354158                                                    <property name="visible">True</property> 
    41364159                                                    <property name="can_focus">True</property> 
    41374160                                                    <property name="receives_default">False</property> 
     4161                                                    <property name="use_action_appearance">False</property> 
    41384162                                                    <property name="draw_indicator">True</property> 
    41394163                                                    <signal name="toggled" handler="on_toggle" swapped="no"/> 
    41404164                                                  </object> 
    status tab (&lt;b&gt;EXPERIMENTAL!!!&lt;/b&gt;)</property> 
    41794203                                                <child> 
    41804204                                                  <object class="GtkCheckButton" id="chk_remove_ratio"> 
    41814205                                                    <property name="label" translatable="yes">Remove torrent when share ratio reached</property> 
    4182                                                     <property name="use_action_appearance">False</property> 
    41834206                                                    <property name="visible">True</property> 
    41844207                                                    <property name="sensitive">False</property> 
    41854208                                                    <property name="can_focus">True</property> 
    41864209                                                    <property name="receives_default">False</property> 
     4210                                                    <property name="use_action_appearance">False</property> 
    41874211                                                    <property name="draw_indicator">True</property> 
    41884212                                                  </object> 
    41894213                                                </child> 
    status tab (&lt;b&gt;EXPERIMENTAL!!!&lt;/b&gt;)</property> 
    56595683                                                    <child> 
    56605684                                                      <object class="GtkButton" id="button_cache_refresh"> 
    56615685                                                        <property name="label">gtk-refresh</property> 
    5662                                                         <property name="use_action_appearance">False</property> 
    56635686                                                        <property name="visible">True</property> 
    56645687                                                        <property name="can_focus">True</property> 
    56655688                                                        <property name="receives_default">True</property> 
     5689                                                        <property name="use_action_appearance">False</property> 
    56665690                                                        <property name="use_stock">True</property> 
    56675691                                                        <signal name="clicked" handler="on_button_cache_refresh_clicked" swapped="no"/> 
    56685692                                                      </object> 
    status tab (&lt;b&gt;EXPERIMENTAL!!!&lt;/b&gt;)</property> 
    59896013                                <property name="layout_style">center</property> 
    59906014                                <child> 
    59916015                                  <object class="GtkButton" id="button_plugin_install"> 
    5992                                     <property name="use_action_appearance">False</property> 
    59936016                                    <property name="visible">True</property> 
    59946017                                    <property name="can_focus">True</property> 
    59956018                                    <property name="receives_default">True</property> 
     6019                                    <property name="use_action_appearance">False</property> 
    59966020                                    <signal name="clicked" handler="on_button_plugin_install_clicked" swapped="no"/> 
    59976021                                    <child> 
    59986022                                      <object class="GtkHBox" id="hbox17"> 
    status tab (&lt;b&gt;EXPERIMENTAL!!!&lt;/b&gt;)</property> 
    60366060                                </child> 
    60376061                                <child> 
    60386062                                  <object class="GtkButton" id="button_rescan_plugins"> 
    6039                                     <property name="use_action_appearance">False</property> 
    60406063                                    <property name="visible">True</property> 
    60416064                                    <property name="can_focus">True</property> 
    60426065                                    <property name="receives_default">True</property> 
     6066                                    <property name="use_action_appearance">False</property> 
    60436067                                    <signal name="clicked" handler="on_button_rescan_plugins_clicked" swapped="no"/> 
    60446068                                    <child> 
    60456069                                      <object class="GtkHBox" id="hbox18"> 
    status tab (&lt;b&gt;EXPERIMENTAL!!!&lt;/b&gt;)</property> 
    60946118                                <property name="can_focus">False</property> 
    60956119                                <child> 
    60966120                                  <object class="GtkButton" id="button_find_plugins"> 
    6097                                     <property name="use_action_appearance">False</property> 
    60986121                                    <property name="visible">True</property> 
    60996122                                    <property name="can_focus">True</property> 
    61006123                                    <property name="receives_default">True</property> 
     6124                                    <property name="use_action_appearance">False</property> 
    61016125                                    <signal name="clicked" handler="on_button_find_plugins_clicked" swapped="no"/> 
    61026126                                    <child> 
    61036127                                      <object class="GtkHBox" id="hbox19"> 
  • deluge/ui/gtkui/gtkui.py

    diff --git a/deluge/ui/gtkui/gtkui.py b/deluge/ui/gtkui/gtkui.py
    index 28b892d..04f5f72 100644
    a b def start(): 
    9999    "focus_add_dialog": True, 
    100100    "enable_system_tray": True, 
    101101    "close_to_tray": False, 
     102    "minimize_to_tray": False, 
    102103    "start_in_tray": False, 
    103104    "enable_appindicator": False, 
    104105    "lock_tray": False, 
  • deluge/ui/gtkui/preferences.py

    diff --git a/deluge/ui/gtkui/preferences.py b/deluge/ui/gtkui/preferences.py
    index 2755a33..2f0788b 100644
    a b def _show(self): 
    543543            self.gtkui_config["enable_system_tray"]) 
    544544        self.builder.get_object("chk_min_on_close").set_active( 
    545545            self.gtkui_config["close_to_tray"]) 
     546        self.builder.get_object("chk_min_on_min").set_active( 
     547            self.gtkui_config["minimize_to_tray"])       
    546548        self.builder.get_object("chk_start_in_tray").set_active( 
    547549            self.gtkui_config["start_in_tray"]) 
    548550        self.builder.get_object("chk_enable_appindicator").set_active( 
    def set_config(self, hide=False): 
    727729            self.builder.get_object("chk_use_tray").get_active() 
    728730        new_gtkui_config["close_to_tray"] = \ 
    729731            self.builder.get_object("chk_min_on_close").get_active() 
     732        new_gtkui_config["minimize_to_tray"] = \ 
     733            self.builder.get_object("chk_min_on_min").get_active() 
    730734        new_gtkui_config["start_in_tray"] = \ 
    731735            self.builder.get_object("chk_start_in_tray").get_active() 
    732736        new_gtkui_config["enable_appindicator"] = \ 
    def on_toggle(self, widget): 
    915919                "chk_random_outgoing_ports": {"spin_outgoing_port_min": False, 
    916920                                              "spin_outgoing_port_max": False}, 
    917921                "chk_use_tray": {"chk_min_on_close": True, 
     922                                 "chk_min_on_min": True, 
    918923                                 "chk_start_in_tray": True, 
    919924                                 "chk_enable_appindicator": True, 
    920925                                 "chk_lock_tray": True},