Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- --- twitux-0.69/src/twitux-network.h
- +++ twitux-0.69/src/twitux-network.h
- @@ -72,7 +72,7 @@
- GList *twitux_network_get_followers (void);
- /* Get an image from servers */
- -void twitux_network_get_image (const gchar *url_image,
- +void twitux_network_get_image (const TwituxUser *user,
- GtkTreeIter iter);
- /* Add a user to follow */
- only in patch2:
- unchanged:
- --- twitux-0.69/src/twitux-parser.c
- +++ twitux-0.69/src/twitux-parser.c
- @@ -278,8 +278,7 @@
- g_free (tweet);
- /* Get Image */
- - twitux_network_get_image (status->user->image_url,
- - iter);
- + twitux_network_get_image (status->user, iter);
- /* Free struct */
- parser_free_user (status->user);
- only in patch2:
- unchanged:
- --- twitux-0.69/src/twitux-network.c
- +++ twitux-0.69/src/twitux-network.c
- @@ -379,7 +379,7 @@
- /* Get an image from servers */
- void
- -twitux_network_get_image (const gchar *url_image,
- +twitux_network_get_image (const TwituxUser *user,
- GtkTreeIter iter)
- {
- gchar *image_file;
- @@ -387,13 +387,16 @@
- TwituxImage *image;
- - /* save using the filename */
- - image_name = strrchr (url_image, '/');
- - if (image_name && image_name[1] != '\0') {
- - image_name++;
- - } else {
- - image_name = "twitux_unknown_image";
- - }
- + /* save using the username as the filename */
- + /* Bugfix #412390 */
- + if (user->screen_name)
- + {
- + image_name = user->screen_name;
- + }
- + else
- + {
- + image_name = "twitux_unknown_image";
- + }
- image_file = g_build_filename (g_get_home_dir(), ".gnome2",
- TWITUX_CACHE_IMAGES,
- @@ -414,7 +417,7 @@
- g_free (image_file);
- /* Note: 'image' will be freed in 'network_cb_on_image' */
- - network_get_data (url_image, network_cb_on_image, image);
- + network_get_data (user->image_url, network_cb_on_image, image);
- }
- only in patch2:
- unchanged:
- --- twitux-0.69/src/twitux-app.c
- +++ twitux-0.69/src/twitux-app.c
- @@ -1470,7 +1470,7 @@
- GdkPixbuf *pixbuf;
- GError *error = NULL;
- - pixbuf = gdk_pixbuf_new_from_file (file, &error);
- + pixbuf = gdk_pixbuf_new_from_file_at_size (file, 48, 48, &error);
- if (!pixbuf){
- twitux_debug (DEBUG_DOMAIN_SETUP, "Image error: %s: %s",
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement