~ubuntu-branches/ubuntu/jaunty/libglib-perl/jaunty

« back to all changes in this revision

Viewing changes to GSignal.xs

  • Committer: Bazaar Package Importer
  • Author(s): Marc 'HE' Brockschmidt
  • Date: 2008-03-15 09:40:14 UTC
  • mfrom: (1.1.10 upstream)
  • Revision ID: james.westby@ubuntu.com-20080315094014-af0fqrtad5fq1u0f
Tags: 1:1.181-1
New upstream release (only changes in the build system irrelevant for
Debian, but for completeness' sake...)

Show diffs side-by-side

added added

removed removed

Lines of Context:
16
16
 * along with this library; if not, write to the Free Software Foundation,
17
17
 * Inc., 59 Temple Place - Suite 330, Boston, MA  02111-1307  USA.
18
18
 *
19
 
 * $Header: /cvsroot/gtk2-perl/gtk2-perl-xs/Glib/GSignal.xs,v 1.28 2006/08/07 18:17:19 kaffeetisch Exp $
 
19
 * $Header: /cvsroot/gtk2-perl/gtk2-perl-xs/Glib/GSignal.xs,v 1.31 2008/01/07 18:50:06 kaffeetisch Exp $
20
20
 */
21
21
 
22
22
=head2 GSignal
390
390
{
391
391
        GType gtype;
392
392
 
393
 
        if (object_or_class_name &&
394
 
            SvOK (object_or_class_name) &&
 
393
        if (gperl_sv_is_defined (object_or_class_name) &&
395
394
            SvROK (object_or_class_name)) {
396
395
                GObject * object = SvGObject (object_or_class_name);
397
396
                if (!object)
629
628
##                                           guint              *signal_id_p,
630
629
##                                           GQuark             *detail_p,
631
630
##                                           gboolean            force_detail_quark);
 
631
 
632
632
##GSignalInvocationHint* g_signal_get_invocation_hint (gpointer    instance);
633
 
##
634
 
##
 
633
=for apidoc
 
634
=for signature $ihint = $instance->signal_get_invocation_hint
 
635
Get a reference to a hash describing the innermost signal currently active
 
636
on C<$instance>.  Returns undef if no signal emission is active.  This
 
637
invocation hint is the same object passed to signal emission hooks, and
 
638
contains these keys:
 
639
 
 
640
=over
 
641
 
 
642
=item signal_name
 
643
 
 
644
The name of the signal being emitted.
 
645
 
 
646
=item detail
 
647
 
 
648
The detail passed on for this emission.  For example, a C<notify> signal will
 
649
have the property name as the detail.
 
650
 
 
651
=item run_type
 
652
 
 
653
The current stage of signal emission, one of "run-first", "run-last", or
 
654
"run-cleanup".
 
655
 
 
656
=back
 
657
 
 
658
=cut
 
659
SV*
 
660
g_signal_get_invocation_hint (GObject *instance)
 
661
    PREINIT:
 
662
        GSignalInvocationHint *ihint;
 
663
    CODE:
 
664
        ihint = g_signal_get_invocation_hint (instance);
 
665
        RETVAL = ihint ? newSVGSignalInvocationHint (ihint) : &PL_sv_undef;
 
666
    OUTPUT:
 
667
        RETVAL
 
668
 
 
669
 
635
670
##/* --- signal emissions --- */
636
671
##void  g_signal_stop_emission              (gpointer             instance,
637
672
##                                           guint                signal_id,