summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorTimm Bäder <mail@baedert.org>2018-12-30 06:25:57 +0100
committerMatthias Clasen <mclasen@redhat.com>2019-02-05 08:11:43 -0500
commit7abcd5ba3b0b188f10969f437a80ddb6aa9f2deb (patch)
treee7075d20cf157ef6a58b5171a9830fea848d69f0
parent3489ed087dc25d0a452c21a26659f6cdbe67c2cf (diff)
downloadgtk+-7abcd5ba3b0b188f10969f437a80ddb6aa9f2deb.tar.gz
window: Remove set_icon_from_file
Not all backends support setting window icons from raw pixel data, so remove the public API in GtkWindow for it.
-rw-r--r--gtk/gtkwindow.c32
-rw-r--r--gtk/gtkwindow.h4
2 files changed, 0 insertions, 36 deletions
diff --git a/gtk/gtkwindow.c b/gtk/gtkwindow.c
index 44b83e678a..491c4aa291 100644
--- a/gtk/gtkwindow.c
+++ b/gtk/gtkwindow.c
@@ -4978,38 +4978,6 @@ load_texture_verbosely (const char *filename,
}
/**
- * gtk_window_set_icon_from_file:
- * @window: a #GtkWindow
- * @filename: (type filename): location of icon file
- * @err: (allow-none): location to store error, or %NULL.
- *
- * Sets the icon for @window.
- * Warns on failure if @err is %NULL.
- *
- * This function is equivalent to calling gtk_window_set_icon()
- * with a surface created by loading the image from @filename.
- *
- * Returns: %TRUE if setting the icon succeeded.
- **/
-gboolean
-gtk_window_set_icon_from_file (GtkWindow *window,
- const gchar *filename,
- GError **err)
-{
- GdkTexture *texture = load_texture_verbosely (filename, err);
-
- if (texture)
- {
- gtk_window_set_icon (window, texture);
- g_object_unref (texture);
-
- return TRUE;
- }
- else
- return FALSE;
-}
-
-/**
* gtk_window_set_default_icon_list:
* @list: (element-type GdkTexture) (transfer container): a list of #GdkTextures
*
diff --git a/gtk/gtkwindow.h b/gtk/gtkwindow.h
index 35143ab700..889ca89656 100644
--- a/gtk/gtkwindow.h
+++ b/gtk/gtkwindow.h
@@ -284,10 +284,6 @@ GDK_AVAILABLE_IN_ALL
void gtk_window_set_icon_name (GtkWindow *window,
const gchar *name);
GDK_AVAILABLE_IN_ALL
-gboolean gtk_window_set_icon_from_file (GtkWindow *window,
- const gchar *filename,
- GError **err);
-GDK_AVAILABLE_IN_ALL
GdkTexture * gtk_window_get_icon (GtkWindow *window);
GDK_AVAILABLE_IN_ALL
const gchar * gtk_window_get_icon_name (GtkWindow *window);