[perl-Gtk2] Gtk2::ToggleAction: clarify documentation
- From: Torsten SchÃnfeld <tsch src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [perl-Gtk2] Gtk2::ToggleAction: clarify documentation
- Date: Tue, 16 Aug 2011 19:00:39 +0000 (UTC)
commit 9941192ca2015194b41ed3a336e05b444292b7fe
Author: Kevin Ryde <user42 zip com au>
Date: Tue Dec 28 09:43:43 2010 +1100
Gtk2::ToggleAction: clarify documentation
Say that new() is the Glib::Object new().
https://bugzilla.gnome.org/show_bug.cgi?id=638140
xs/GtkToggleAction.xs | 11 ++++++++---
1 files changed, 8 insertions(+), 3 deletions(-)
---
diff --git a/xs/GtkToggleAction.xs b/xs/GtkToggleAction.xs
index f2f8705..2c49343 100644
--- a/xs/GtkToggleAction.xs
+++ b/xs/GtkToggleAction.xs
@@ -17,9 +17,14 @@ MODULE = Gtk2::ToggleAction PACKAGE = Gtk2::ToggleAction PREFIX = gtk_toggle_act
my $action = Gtk2::ToggleAction->new (name => 'one',
tooltip => 'One');
-Note that the constructor slightly deviates from the convenience constructor in
-the C API. Instead of passing in a list of values for name, label, tooltip and
-stock-id, you just use key => value pairs like with Glib::Object::new.
+=for position DESCRIPTION
+
+=head1 DESCRIPTION
+
+Note that C<new> is the plain L<Glib::Object> C<new> (see
+L<Gtk2::Action>). The name, label, tooltip and stock_id arguments of
+the C code C<gtk_toggle_action_new()> can be given as key/value pairs,
+plus other property values like active or sensitive.
=cut
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]