diff --git a/gtk/gdktextureutils.c b/gtk/gdktextureutils.c index f84a93b4d4..ea5614eb6c 100644 --- a/gtk/gdktextureutils.c +++ b/gtk/gdktextureutils.c @@ -526,17 +526,17 @@ make_symbolic_pixbuf_from_resource (const char *path, } static GdkPixbuf * -make_symbolic_pixbuf_from_path (const char *path, - int width, - int height, - double scale, - GError **error) +make_symbolic_pixbuf_from_filename (const char *filename, + int width, + int height, + double scale, + GError **error) { char *data; gsize size; GdkPixbuf *pixbuf; - if (!g_file_get_contents (path, &data, &size, error)) + if (!g_file_get_contents (filename, &data, &size, error)) return NULL; pixbuf = gtk_make_symbolic_pixbuf_from_data (data, size, width, height, scale, NULL, error); @@ -692,17 +692,17 @@ gdk_texture_new_from_resource_at_scale (const char *path, /* {{{ Symbolic texture API */ GdkTexture * -gdk_texture_new_from_path_symbolic (const char *path, - int width, - int height, - double scale, - gboolean *only_fg, - GError **error) +gdk_texture_new_from_filename_symbolic (const char *filename, + int width, + int height, + double scale, + gboolean *only_fg, + GError **error) { GdkPixbuf *pixbuf; GdkTexture *texture = NULL; - pixbuf = make_symbolic_pixbuf_from_path (path, width, height, scale, error); + pixbuf = make_symbolic_pixbuf_from_filename (filename, width, height, scale, error); if (pixbuf) { *only_fg = pixbuf_is_only_fg (pixbuf); @@ -864,15 +864,15 @@ gdk_paintable_new_from_bytes_scaled (GBytes *bytes, } GdkPaintable * -gdk_paintable_new_from_path_scaled (const char *path, - double scale) +gdk_paintable_new_from_filename_scaled (const char *filename, + double scale) { char *contents; gsize length; GBytes *bytes; GdkPaintable *paintable; - if (!g_file_get_contents (path, &contents, &length, NULL)) + if (!g_file_get_contents (filename, &contents, &length, NULL)) return NULL; bytes = g_bytes_new_take (contents, length); diff --git a/gtk/gdktextureutilsprivate.h b/gtk/gdktextureutilsprivate.h index aa23701173..2a4e74fb8d 100644 --- a/gtk/gdktextureutilsprivate.h +++ b/gtk/gdktextureutilsprivate.h @@ -52,7 +52,7 @@ GdkTexture *gdk_texture_new_from_resource_at_scale (const char *path, gboolean *only_fg, GError **error); -GdkTexture *gdk_texture_new_from_path_symbolic (const char *path, +GdkTexture *gdk_texture_new_from_filename_symbolic (const char *path, int width, int height, double scale, @@ -72,9 +72,9 @@ GdkTexture *gdk_texture_new_from_resource_symbolic (const char *path, GError **error); GdkTexture *gtk_load_symbolic_texture_from_file (GFile *file); -GdkTexture *gtk_load_symbolic_texture_from_resource (const char *data); +GdkTexture *gtk_load_symbolic_texture_from_resource (const char *path); -GdkPaintable *gdk_paintable_new_from_path_scaled (const char *path, +GdkPaintable *gdk_paintable_new_from_filename_scaled (const char *filename, double scale); GdkPaintable *gdk_paintable_new_from_resource_scaled (const char *path, double scale); diff --git a/gtk/gtkicontheme.c b/gtk/gtkicontheme.c index 4700010b65..036610f29a 100644 --- a/gtk/gtkicontheme.c +++ b/gtk/gtkicontheme.c @@ -3762,11 +3762,11 @@ icon_ensure_texture__locked (GtkIconPaintable *icon, if (icon->is_svg) { if (icon->is_symbolic) - icon->texture = gdk_texture_new_from_path_symbolic (icon->filename, - pixel_size, pixel_size, - icon->desired_scale, - &only_fg, - &load_error); + icon->texture = gdk_texture_new_from_filename_symbolic (icon->filename, + pixel_size, pixel_size, + icon->desired_scale, + &only_fg, + &load_error); else { GFile *file = g_file_new_for_path (icon->filename); diff --git a/gtk/gtkimage.c b/gtk/gtkimage.c index fa0d5f7d0e..f0fc8f6fcb 100644 --- a/gtk/gtkimage.c +++ b/gtk/gtkimage.c @@ -598,7 +598,7 @@ gtk_image_set_from_file (GtkImage *image, } scale_factor = gtk_widget_get_scale_factor (GTK_WIDGET (image)); - paintable = gdk_paintable_new_from_path_scaled (filename, scale_factor); + paintable = gdk_paintable_new_from_filename_scaled (filename, scale_factor); if (paintable == NULL) {