[perl-Gtk3] Hush a warning from Gtk3::ActionGroup::add_toggle_actions
- From: Torsten SchÃnfeld <tsch src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [perl-Gtk3] Hush a warning from Gtk3::ActionGroup::add_toggle_actions
- Date: Sat, 9 Feb 2013 22:09:30 +0000 (UTC)
commit 17caa61cbc7b46ee468ebb99ab1c60d52f66c7ab
Author: Torsten SchÃnfeld <kaffeetisch gmx de>
Date: Sat Feb 9 23:04:48 2013 +0100
Hush a warning from Gtk3::ActionGroup::add_toggle_actions
lib/Gtk3.pm | 2 +-
1 files changed, 1 insertions(+), 1 deletions(-)
---
diff --git a/lib/Gtk3.pm b/lib/Gtk3.pm
index 841f99a..4c91cfc 100644
--- a/lib/Gtk3.pm
+++ b/lib/Gtk3.pm
@@ -423,7 +423,7 @@ sub Gtk3::ActionGroup::add_toggle_actions {
my $action = Gtk3::ToggleAction->new (
$name, $label, $tooltip, $stock_id);
- $action->set_active ($is_active);
+ $action->set_active ($is_active) if defined $is_active;
if ($callback) {
$action->signal_connect ('activate', $callback, $user_data);
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]