~ubuntu-branches/ubuntu/utopic/gossip/utopic

« back to all changes in this revision

Viewing changes to src/gossip-stock.c

  • Committer: Bazaar Package Importer
  • Author(s): Daniel Holbach
  • Date: 2006-10-17 11:15:38 UTC
  • mfrom: (1.1.12 upstream)
  • Revision ID: james.westby@ubuntu.com-20061017111538-8dhxm4g1uoesb0hm
Tags: 0.18-0ubuntu1
* New upstream release:
  - Fixed "Fix crash in src/gossip-galago.c due to missing presence states"
  - Fixed "Fix white space bugs"
  - Fixed "Redesign adding a contact to a GtkDialog instead of GnomeDruid"
  - Fixed "Fix wrong linking order"
  - Fixed "Does not compile on Ubuntu Dapper Drake" 
  - Fixed "Scroll to contact name in history window" 
  - Fixed "The accounts dialog should use widget sets for known protocols"
  - Fixed "Contact information window should appear on the same desktop"
  - Fixed "Remove protocol specific instances of gossip_account_[set,get]_*"
  - Fixed "Use g_base64_[decode/encode] instead of our version"
  - Fixed "Bad glist usage, use g_list_prepend instead"
  - Fixed "Use GtkLinkButton instead of GnomeHRef"
  - Fixed "Gossip fails to build with Galago enabled"
  - Fixed "Gossip fails to build due to some errors in peekaboo-galago.c"
  - Fixed "Implement gossip_account_has_param()"
  - Fixed "Empty resource results in invalid JID used to send messages"
  - Translations: Updated el, nl, sv, ne, fi.
* debian/control.in:
  - bumped glib Build-Dep, dropped galago Build-Dep.
  - drop galago references.
* debian/rules:
  - drop --enable-galago.

Show diffs side-by-side

added added

removed removed

Lines of Context:
28
28
static GtkIconFactory *icon_factory = NULL;
29
29
 
30
30
static GtkStockItem stock_items[] = {
31
 
        { GOSSIP_STOCK_OFFLINE,                 NULL },     
 
31
        { GOSSIP_STOCK_OFFLINE,                 NULL },
32
32
        { GOSSIP_STOCK_AVAILABLE,               NULL },
33
33
        { GOSSIP_STOCK_BUSY,                    NULL },
34
34
        { GOSSIP_STOCK_AWAY,                    NULL },
35
 
        { GOSSIP_STOCK_EXT_AWAY,                NULL },    
 
35
        { GOSSIP_STOCK_EXT_AWAY,                NULL },
36
36
        { GOSSIP_STOCK_PENDING,                 NULL },
37
37
        { GOSSIP_STOCK_MESSAGE,                 NULL },
38
38
        { GOSSIP_STOCK_TYPING,                  NULL },
45
45
{
46
46
        GtkIconSet *icon_set;
47
47
        gint        i;
48
 
        
 
48
 
49
49
        g_assert (icon_factory == NULL);
50
 
        
 
50
 
51
51
        gtk_stock_add (stock_items, G_N_ELEMENTS (stock_items));
52
 
        
 
52
 
53
53
        icon_factory = gtk_icon_factory_new ();
54
54
        gtk_icon_factory_add_default (icon_factory);
55
55
        g_object_unref (icon_factory);
56
 
        
 
56
 
57
57
        for (i = 0; i < G_N_ELEMENTS (stock_items); i++) {
58
58
                gchar     *path, *filename;
59
59
                GdkPixbuf *pixbuf;
63
63
                pixbuf = gdk_pixbuf_new_from_file (path, NULL);
64
64
                g_free (path);
65
65
                g_free (filename);
66
 
                
 
66
 
67
67
                icon_set = gtk_icon_set_new_from_pixbuf (pixbuf);
68
 
                
 
68
 
69
69
                gtk_icon_factory_add (icon_factory,
70
70
                                      stock_items[i].stock_id,
71
71
                                      icon_set);
72
 
                
 
72
 
73
73
                gtk_icon_set_unref (icon_set);
74
 
                
 
74
 
75
75
                g_object_unref (pixbuf);
76
76
        }
77
77
}
80
80
gossip_stock_finalize (void)
81
81
{
82
82
        g_assert (icon_factory != NULL);
83
 
        
 
83
 
84
84
        gtk_icon_factory_remove_default (icon_factory);
85
 
        
 
85
 
86
86
        icon_factory = NULL;
87
87
}