[Commits] [SCM] clawsker branch, master, updated. 1.2.0-13-g7d95a74

mones at claws-mail.org mones at claws-mail.org
Sat Nov 10 19:45:46 CET 2018


The branch, master has been updated
       via  7d95a74afb79b9272433ae74fd9f764a32615b9d (commit)
      from  6c484cf3d7d9e764bdab2d9c027c0fff608bd16d (commit)

Summary of changes:
 clawsker |    4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)


- Log -----------------------------------------------------------------
commit 7d95a74afb79b9272433ae74fd9f764a32615b9d
Author: Ricardo Mones <ricardo at mones.org>
Date:   Sat Nov 10 19:42:46 2018 +0100

    Use the new ComboBoxText
    
    Error was “Can't locate object method "new_text" via package "Gtk3::ComboBox"
    at /usr/lib/x86_64-linux-gnu/perl5/5.24/Glib.pm line 222.”
    
    See: https://developer.gnome.org/gtk3/stable/GtkComboBoxText.html

diff --git a/clawsker b/clawsker
index 0400419..805ba18 100755
--- a/clawsker
+++ b/clawsker
@@ -628,11 +628,11 @@ sub new_selection_box_for($$$) {
     my $label = $$hash{$key}[LABEL];
     #
     my $glabel = Gtk3::Label->new ($label);
-    my $combo = Gtk3::ComboBox->new_text;
+    my $combo = Gtk3::ComboBoxText->new;
     my @options = split (';', $$hash{$key}[TYPE]);
     foreach my $opt (@options) {
         my ($index, $textkey) = split ('=', $opt);
-        $combo->insert_text ($index, $xl::s{$textkey});
+        $combo->insert (-1, $index, $xl::s{$textkey});
     }
     $combo->signal_connect ('changed' => sub {
             my ($w, $e) = @_;

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


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


More information about the Commits mailing list