diff options
author | Matthias Clasen <mclasen@redhat.com> | 2014-10-04 12:19:15 -0400 |
---|---|---|
committer | Matthias Clasen <mclasen@redhat.com> | 2014-10-04 12:20:17 -0400 |
commit | c0573272f3457fa1bf9def4ace5f5a502cd409d4 (patch) | |
tree | 9cc92dc2ffdd2da8afe92b4b35fb339e1589a678 | |
parent | f634684eeb094216acbc4c2bcb84862574db60e5 (diff) | |
download | gtk+-c0573272f3457fa1bf9def4ace5f5a502cd409d4.tar.gz |
printing: Make GtkPrinter have a useful icon by default
It causes complication elsewhere if gtk_printer_get_icon_name()
returns NULL initially. So make the icon name default to
"printer".
-rw-r--r-- | gtk/gtkprinter.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/gtk/gtkprinter.c b/gtk/gtkprinter.c index 63d327b972..c34eafb136 100644 --- a/gtk/gtkprinter.c +++ b/gtk/gtkprinter.c @@ -243,7 +243,7 @@ gtk_printer_init (GtkPrinter *printer) priv->name = NULL; priv->location = NULL; priv->description = NULL; - priv->icon_name = NULL; + priv->icon_name = g_strdup ("printer"); priv->is_active = TRUE; priv->is_paused = FALSE; |