mirror of
https://gitlab.gnome.org/GNOME/nautilus
synced 2024-08-24 18:25:50 +00:00
Replace deprecated gdk_pixbuf_unref with g_object_unref
svn path=/trunk/; revision=14930
This commit is contained in:
parent
b99a650dd9
commit
178c1bef77
16
ChangeLog
16
ChangeLog
|
@ -1,3 +1,19 @@
|
|||
2009-02-09 Thomas H.P. Andersen <phomes@gmail.com>
|
||||
|
||||
* src/file-manager/fm-empty-view.c: (fm_empty_view_add_file):
|
||||
* src/file-manager/fm-directory-view.c: (connect_proxy):
|
||||
* src/nautilus-spatial-window.c:
|
||||
(got_file_info_for_location_menu_callback),
|
||||
(nautilus_spatial_window_set_location_button):
|
||||
* src/nautilus-property-browser.c: (make_drag_image),
|
||||
(make_color_drag_image):
|
||||
* src/nautilus-bookmarks-window.c: (update_bookmark_from_text):
|
||||
* libnautilus-private/nautilus-icon-canvas-item.c:
|
||||
(nautilus_icon_canvas_item_get_image):
|
||||
* libnautilus-private/nautilus-thumbnails.c:
|
||||
(async_thumbnail_read_image):
|
||||
Don't use deprecated gdk_pixbuf_unref. Bug #570953
|
||||
|
||||
2009-02-06 A. Walton <awalton@gnome.org>
|
||||
|
||||
* libnautilus-private/nautilus-link.c (get_language),
|
||||
|
|
|
@ -598,7 +598,7 @@ nautilus_icon_canvas_item_get_image (NautilusIconCanvasItem *item,
|
|||
draw_label_text (item, GDK_DRAWABLE (pixmap), FALSE, icon_rect);
|
||||
draw_label_text (item, GDK_DRAWABLE (*mask), TRUE, icon_rect);
|
||||
|
||||
gdk_pixbuf_unref (pixbuf);
|
||||
g_object_unref (pixbuf);
|
||||
|
||||
return pixmap;
|
||||
}
|
||||
|
|
|
@ -549,7 +549,7 @@ async_thumbnail_read_image (GObject *source_object,
|
|||
pixbuf, scale_x, scale_y,
|
||||
handle->load_func_user_data);
|
||||
|
||||
gdk_pixbuf_unref (pixbuf);
|
||||
g_object_unref (pixbuf);
|
||||
|
||||
g_object_unref (handle->cancellable);
|
||||
g_free (handle->file_path);
|
||||
|
|
|
@ -6827,7 +6827,7 @@ connect_proxy (FMDirectoryView *view,
|
|||
image = gtk_image_new_from_pixbuf (pixbuf);
|
||||
gtk_image_menu_item_set_image (GTK_IMAGE_MENU_ITEM (proxy), image);
|
||||
|
||||
gdk_pixbuf_unref (pixbuf);
|
||||
g_object_unref (pixbuf);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
|
@ -66,7 +66,7 @@ fm_empty_view_add_file (FMDirectoryView *view, NautilusFile *file, NautilusDirec
|
|||
elaps = g_timer_elapsed (timer, NULL);
|
||||
g_timer_stop (timer);
|
||||
|
||||
gdk_pixbuf_unref (icon);
|
||||
g_object_unref (icon);
|
||||
|
||||
cumu += elaps;
|
||||
g_message ("entire loading: %.3f, cumulative %.3f", elaps, cumu);
|
||||
|
|
|
@ -857,7 +857,7 @@ update_bookmark_from_text (void)
|
|||
g_signal_handler_unblock (bookmark_list_store,
|
||||
row_changed_signal_id);
|
||||
|
||||
gdk_pixbuf_unref (pixbuf);
|
||||
g_object_unref (pixbuf);
|
||||
g_free (name);
|
||||
}
|
||||
}
|
||||
|
|
|
@ -762,7 +762,7 @@ make_drag_image (NautilusPropertyBrowser *property_browser, const char* file_nam
|
|||
pixbuf = eel_gdk_pixbuf_scale_down_to_fit (orig_pixbuf, MAX_ICON_WIDTH, MAX_ICON_HEIGHT);
|
||||
}
|
||||
|
||||
gdk_pixbuf_unref (orig_pixbuf);
|
||||
g_object_unref (orig_pixbuf);
|
||||
|
||||
return pixbuf;
|
||||
}
|
||||
|
@ -806,7 +806,7 @@ make_color_drag_image (NautilusPropertyBrowser *property_browser, const char *co
|
|||
ret = nautilus_customization_make_pattern_chit (color_square,
|
||||
property_browser->details->property_chit,
|
||||
trim_edges, FALSE);
|
||||
gdk_pixbuf_unref (color_square);
|
||||
g_object_unref (color_square);
|
||||
} else {
|
||||
ret = color_square;
|
||||
}
|
||||
|
|
|
@ -565,7 +565,7 @@ got_file_info_for_location_menu_callback (NautilusFile *file,
|
|||
|
||||
if (pixbuf != NULL) {
|
||||
icon = gtk_image_new_from_pixbuf (pixbuf);
|
||||
gdk_pixbuf_unref (pixbuf);
|
||||
g_object_unref (pixbuf);
|
||||
} else {
|
||||
icon = gtk_image_new_from_stock (GTK_STOCK_OPEN, GTK_ICON_SIZE_MENU);
|
||||
}
|
||||
|
@ -834,7 +834,7 @@ nautilus_spatial_window_set_location_button (NautilusSpatialWindow *window,
|
|||
|
||||
if (pixbuf != NULL) {
|
||||
gtk_image_set_from_pixbuf (GTK_IMAGE (window->details->location_icon), pixbuf);
|
||||
gdk_pixbuf_unref (pixbuf);
|
||||
g_object_unref (pixbuf);
|
||||
} else {
|
||||
gtk_image_set_from_stock (GTK_IMAGE (window->details->location_icon),
|
||||
GTK_STOCK_OPEN, GTK_ICON_SIZE_MENU);
|
||||
|
|
Loading…
Reference in a new issue