~ubuntu-branches/ubuntu/maverick/transmission/maverick-updates

« back to all changes in this revision

Viewing changes to gtk/icons.c

  • Committer: Bazaar Package Importer
  • Author(s): Chris Coulson, Krzysztof Klimonda, Chris Coulson
  • Date: 2009-09-09 09:06:11 UTC
  • mfrom: (1.1.27 upstream)
  • Revision ID: james.westby@ubuntu.com-20090909090611-09ai2hyo66h1dhv8
Tags: 1.74-0ubuntu1
[ Krzysztof Klimonda ]
* Merge from debian unstable, remaining changes:
  - debian/control:
    + Added replaces & provides clutch (now included as part of transmission).
    + add liblaunchpad-integration to Build-Depends
  - debian/rules:
    + Create a PO template during package build.
  - debian/patches/01_lpi.patch:
    + Integrate Transmission with Launchpad
  - debian/patches/20_add_X-Ubuntu-Gettext-Domain.diff:
    + Add X-Ubuntu-Gettext-Domain to .desktop file.
* debian/control:
  - add lsb-release to Build-Depends
* This includes the QT client in transmission-qt.

[ Chris Coulson ]
* Update to new upstream version 1.74 (LP: #418367):
  - Better data recovery in the case of an OS or Transmission crash
  - If a data file is moved, stop the torrent instead of redownloading 
    it (LP: #419304).
  - Fix bug that didn't list some peers in the resume file and in PEX
  - More helpful torrent error messages
  - DHT now honors the bind-address-ipv4 configuration option
  - Fix Debian build error with miniupnpc
  - Fix Cygwin build error with strtold
  - Update to a newer snapshot of miniupnpc
  - Fix crash that occurred when adding torrents on some desktops
  - Synchronize the statusbar's and torrent list's speeds
  - Fix the Properties dialog's "Origin" field for multiple torrents
* debian/rules, debian/control:
  - Don't run autoreconf at build time and don't build-dep on libtool.
* debian/control:
  - transmission-common replaces transmission-gtk (<< 1.74) rather than
    (<= 1.73-1).
* Refreshed patches:
  - 01_lpi.patch.
  - dont_build_libevent.patch.
  - qt_client_use_system_libevent.patch.
* Dropped patches not needed anymore:
  - updateminiupnpcstrings_double_escape_slash.patch
* Added 99_autoreconf.patch for autotools update.

Show diffs side-by-side

added added

removed removed

Lines of Context:
18
18
static const char *
19
19
get_static_string( const char *s )
20
20
{
21
 
    static GHashTable *static_strings = NULL;
22
 
    const char *result;
23
 
 
24
 
    if ( s == NULL )
25
 
        return NULL;
26
 
 
27
 
    if ( static_strings == NULL )
28
 
        static_strings = g_hash_table_new_full (g_str_hash, g_str_equal, g_free, NULL);
29
 
 
30
 
    if ( ! g_hash_table_lookup_extended( static_strings, s, (gpointer) &result, NULL )) {
31
 
        result = g_strdup( s );
32
 
        g_hash_table_insert( static_strings,
33
 
                             (gpointer) result,
34
 
                             GINT_TO_POINTER( 1 ));
35
 
    }
36
 
 
37
 
    return result;
 
21
    static GStringChunk * static_strings = NULL;
 
22
 
 
23
     if( s == NULL )
 
24
         return NULL;
 
25
 
 
26
     if( static_strings == NULL )
 
27
         static_strings = g_string_chunk_new( 1024 );
 
28
 
 
29
    return g_string_chunk_insert_const( static_strings, s );
38
30
}
39
31
#endif
40
32
 
138
130
                        int           size,
139
131
                        GtkIconTheme *icon_theme )
140
132
{
141
 
    char        ** icon_names;
 
133
    char        ** icon_names = NULL;
142
134
    GtkIconInfo  * icon_info;
143
135
    GdkPixbuf    * pixbuf;
144
136
    GError       * error = NULL;
215
207
        g_object_ref( pixbuf );
216
208
        return pixbuf;
217
209
    }
218
 
        
 
210
 
219
211
    pixbuf = _get_icon_pixbuf( icon, icon_cache->icon_size, icon_cache->icon_theme );
220
 
    g_hash_table_insert( icon_cache->cache, (gpointer) key, g_object_ref( pixbuf ));
 
212
    if( pixbuf != NULL )
 
213
        g_hash_table_insert( icon_cache->cache, (gpointer) key, g_object_ref( pixbuf ) );
221
214
        
222
215
    return pixbuf;
223
216
}