~ubuntu-branches/ubuntu/oneiric/irssi/oneiric

« back to all changes in this revision

Viewing changes to src/perl/perl-sources.c

  • Committer: Bazaar Package Importer
  • Author(s): Andres Rodriguez
  • Date: 2009-05-05 15:50:50 UTC
  • mfrom: (1.1.3 upstream)
  • Revision ID: james.westby@ubuntu.com-20090505155050-aoqlnpes7che9rtd
Tags: 0.8.13-1ubuntu1
* Merge from debian unstable (LP: #372411), remaining changes:
  - debian/patches: 03firsttimer_text
    + Adapt it so it tells you about connecting to irc.ubuntu.com and
      joining #ubuntu instead of irc.debian.org and #debian.
  - debian/patches: 90irc-ubuntu-com
* Fixed debian/patches/90irc-ubuntu-com for new irssi.conf.

Show diffs side-by-side

added added

removed removed

Lines of Context:
123
123
{
124
124
        PERL_SCRIPT_REC *script;
125
125
        PERL_SOURCE_REC *rec;
126
 
        GIOChannel *channel;
127
126
        const char *pkg;
128
127
 
129
128
        pkg = perl_get_package();
138
137
        rec->func = perl_func_sv_inc(func, pkg);
139
138
        rec->data = SvREFCNT_inc(data);
140
139
 
141
 
        channel = g_io_channel_unix_new(source);
142
 
        rec->tag = g_input_add(channel, condition,
 
140
        rec->tag = g_input_add_poll(source, G_PRIORITY_DEFAULT, condition,
143
141
                               (GInputFunction) perl_source_event, rec);
144
 
        g_io_channel_unref(channel);
145
142
 
146
143
        perl_sources = g_slist_append(perl_sources, rec);
147
144
        return rec->tag;