summaryrefslogtreecommitdiff
path: root/gtk/gtkprinter.c
diff options
context:
space:
mode:
authorMatthias Clasen <mclasen@redhat.com>2014-10-04 12:19:15 -0400
committerMatthias Clasen <mclasen@redhat.com>2014-10-04 12:20:17 -0400
commitc0573272f3457fa1bf9def4ace5f5a502cd409d4 (patch)
tree9cc92dc2ffdd2da8afe92b4b35fb339e1589a678 /gtk/gtkprinter.c
parentf634684eeb094216acbc4c2bcb84862574db60e5 (diff)
downloadgtk+-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".
Diffstat (limited to 'gtk/gtkprinter.c')
-rw-r--r--gtk/gtkprinter.c2
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;