~ubuntu-branches/ubuntu/trusty/irssi-plugin-xmpp/trusty

« back to all changes in this revision

Viewing changes to src/fe-text/xep/text-composing.c

  • Committer: Bazaar Package Importer
  • Author(s): David Ammouial
  • Date: 2009-06-19 23:14:39 UTC
  • mfrom: (1.1.4 upstream) (2.2.1 squeeze)
  • Revision ID: james.westby@ubuntu.com-20090619231439-xmcr03qdpzswarvi
Tags: 0.13+cvs20090617-1
* New CVS snapshot:
  - Some bugfixes and code cleanup.
  - Allow to build on ia64 (Closes: #530304).
* Bump Standards-Version to 3.8.2 (no changes). 

Show diffs side-by-side

added added

removed removed

Lines of Context:
1
1
/*
2
 
 * $Id: text-composing.c,v 1.1 2008/08/30 17:08:02 cdidier Exp $
 
2
 * $Id: text-composing.c,v 1.2 2009/06/03 16:25:35 cdidier Exp $
3
3
 *
4
4
 * Copyright (C) 2007 Colin DIDIER
5
5
 *
22
22
#include "module.h"
23
23
#include "module-formats.h"
24
24
#include "signals.h"
 
25
#include "statusbar-item.h"
25
26
#include "window-items.h"
26
27
 
27
 
/* in include/irssi/src/fe-text */
28
 
#include "statusbar.h"
29
 
 
30
28
#include "xmpp-servers.h"
31
29
#include "xmpp-queries.h"
32
30
 
33
31
static void
34
 
item_xmpp_composing(SBAR_ITEM_REC *item, int get_size_only)
 
32
item_xmpp_composing(struct SBAR_ITEM_REC *item, int get_size_only)
35
33
{
36
34
        XMPP_SERVER_REC *server;
37
35
        XMPP_QUERY_REC *query;
49
47
out:
50
48
        if (str == NULL) {
51
49
                if (get_size_only)
52
 
                        item->min_size = item->max_size = 0;
 
50
                        statusbar_item_set_size(item, 0, 0);
53
51
                return;
54
52
        }
55
53
        statusbar_item_default_handler(item, get_size_only,