[Commits] [SCM] clawsker branch, master, updated. 1.3.2-5-gfdd56a1

mones at claws-mail.org mones at claws-mail.org
Sun Feb 7 16:09:16 UTC 2021


The branch, master has been updated
       via  fdd56a16603ec37de7077cadfc6780d79accfa30 (commit)
      from  0082185bc7f0a5a5abd1f246bed14e92f99cc8a8 (commit)

Summary of changes:
 clawsker | 30 +++++++++++++++++++++++++++---
 1 file changed, 27 insertions(+), 3 deletions(-)


- Log -----------------------------------------------------------------
commit fdd56a16603ec37de7077cadfc6780d79accfa30
Author: Ricardo Mones <ricardo at mones.org>
Date:   Sun Feb 7 17:09:01 2021 +0100

    Add support for Python console sizes

diff --git a/clawsker b/clawsker
index 87338a8..dadcd8f 100755
--- a/clawsker
+++ b/clawsker
@@ -2167,6 +2167,25 @@ sub new_accounts_page() {
         '2',
         'PerlPlugin',
     ],
+    # python
+    py_consw => [
+        'console_win_width',
+        $xl::s{l_win_w},
+        $xl::s{h_win_w},
+        'int,0,3000', # 0 pixels - 3000 pixels
+        '3.17.3.1',
+        '-1',
+        'Python',
+    ],
+    py_consh => [
+        'console_win_height',
+        $xl::s{l_win_h},
+        $xl::s{h_win_h},
+        'int,0,3000', # 0 pixels - 3000 pixels
+        '3.17.3.1',
+        '-1',
+        'Python',
+    ],
 );
 
 sub new_plugins_page() {
@@ -2190,19 +2209,24 @@ sub new_plugins_page() {
         ])],
         'PerlPlugin' => [
             new_selection_box_for (\%pr::plu, 'prl_flvb', $PLHPVALUE{'PerlPlugin'})
-        ]
+        ],
+        'Python' => [
+            new_text_box_for_int (\%pr::plu, 'py_consw', $PLHPVALUE{'Python'}),
+            new_text_box_for_int (\%pr::plu, 'py_consh', $PLHPVALUE{'Python'})
+        ],
     );
     foreach my $pk (@PLUGINS) {
         foreach my $wg (@{$widget{$pk}}) {
             $wg->set_sensitive (defined $PLHPVALUE{$pk});
         }
     }
-    return new_grid_pack (3, 14, [
+    return new_grid_pack (3, 18, [
         [ _('Attachment remover') ], $widget{'AttRemover'}, [ '--' ],
         [ _('GPG') ], $widget{'GPG'}, [ '--' ],
         [ _('Sieve manager') ], $widget{'ManageSieve'}, [ '--' ],
         [ _('Libravatar') ], $widget{'Libravatar'}, [ '--' ],
-        [ _('Perl') ], $widget{'PerlPlugin'}
+        [ _('Perl') ], $widget{'PerlPlugin'}, [ '--' ],
+        [ _('Python console') ], $widget{'Python'}
     ]);
 }
 

-----------------------------------------------------------------------


hooks/post-receive
-- 
Hidden preferences editor for Claws Mail


More information about the Commits mailing list