[perl-Gtk3] Simplify an expression



commit deffab6f1c00cbce2dd60bdcc435faf659df1a87
Author: Thierry Vignaud <thierry vignaud gmail com>
Date:   Sun Sep 1 15:01:58 2013 +0200

    Simplify an expression

 lib/Gtk3.pm |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)
---
diff --git a/lib/Gtk3.pm b/lib/Gtk3.pm
index 3e066ab..4a828ca 100644
--- a/lib/Gtk3.pm
+++ b/lib/Gtk3.pm
@@ -551,7 +551,7 @@ sub Gtk3::Builder::connect_signals {
     # care of that for us in all cases, so we only have signal_connect.
     # if we get a connect_object, just use that instead of user_data.
     $object->$func($signal_name => $handler,
-                   $connect_object ? $connect_object : $user_data);
+                   $connect_object || $user_data);
   };
 
   # $builder->connect_signals ($user_data)


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]