summaryrefslogtreecommitdiff
path: root/gtk/gtkaboutdialog.c
diff options
context:
space:
mode:
authorTimm Bäder <mail@baedert.org>2018-12-30 06:53:35 +0100
committerMatthias Clasen <mclasen@redhat.com>2019-02-05 08:11:43 -0500
commite6c5b9348dc856a76edc92d1e0588bcd3767fca7 (patch)
tree76bf0058fffaf4a8164ef6b30785a23312142206 /gtk/gtkaboutdialog.c
parent55b99e99167db7b832bf99d810e3c8cd50411a6c (diff)
downloadgtk+-e6c5b9348dc856a76edc92d1e0588bcd3767fca7.tar.gz
window: Remove default icon list
Diffstat (limited to 'gtk/gtkaboutdialog.c')
-rw-r--r--gtk/gtkaboutdialog.c20
1 files changed, 1 insertions, 19 deletions
diff --git a/gtk/gtkaboutdialog.c b/gtk/gtkaboutdialog.c
index 6fcfc1f764..3af89576ed 100644
--- a/gtk/gtkaboutdialog.c
+++ b/gtk/gtkaboutdialog.c
@@ -553,7 +553,7 @@ gtk_about_dialog_class_init (GtkAboutDialogClass *klass)
props[PROP_LOGO] =
g_param_spec_object ("logo",
P_("Logo"),
- P_("A logo for the about box. If this is not set, it defaults to gtk_window_get_default_icon_list()"),
+ P_("A logo for the about box."),
GDK_TYPE_PAINTABLE,
GTK_PARAM_READWRITE | G_PARAM_EXPLICIT_NOTIFY);
@@ -1745,18 +1745,6 @@ gtk_about_dialog_set_logo (GtkAboutDialog *about,
if (logo != NULL)
gtk_image_set_from_paintable (GTK_IMAGE (priv->logo_image), logo);
- else
- {
- GList *surfaces = gtk_window_get_default_icon_list ();
-
- if (surfaces != NULL)
- {
- gtk_image_set_from_paintable (GTK_IMAGE (priv->logo_image),
- GDK_PAINTABLE (surfaces->data));
-
- g_list_free (surfaces);
- }
- }
g_object_notify_by_pspec (G_OBJECT (about), props[PROP_LOGO]);
@@ -1800,7 +1788,6 @@ gtk_about_dialog_set_logo_icon_name (GtkAboutDialog *about,
const gchar *icon_name)
{
GtkAboutDialogPrivate *priv = gtk_about_dialog_get_instance_private (about);
- GList *icons;
g_return_if_fail (GTK_IS_ABOUT_DIALOG (about));
@@ -1840,11 +1827,6 @@ gtk_about_dialog_set_logo_icon_name (GtkAboutDialog *about,
gtk_image_set_from_icon_name (GTK_IMAGE (priv->logo_image), icon_name);
gtk_image_set_pixel_size (GTK_IMAGE (priv->logo_image), best_size);
}
- else if ((icons = gtk_window_get_default_icon_list ()))
- {
- gtk_image_set_from_paintable (GTK_IMAGE (priv->logo_image), icons->data);
- g_list_free (icons);
- }
else
{
gtk_image_clear (GTK_IMAGE (priv->logo_image));