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".
This commit is contained in:
Matthias Clasen
2014-10-04 12:19:15 -04:00
parent f634684eeb
commit c0573272f3

View File

@ -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;