[gtk+] printing: Make GtkPrinter have a useful icon by default
- From: Matthias Clasen <matthiasc src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gtk+] printing: Make GtkPrinter have a useful icon by default
- Date: Sat, 4 Oct 2014 16:21:20 +0000 (UTC)
commit c0573272f3457fa1bf9def4ace5f5a502cd409d4
Author: Matthias Clasen <mclasen redhat com>
Date: Sat Oct 4 12:19:15 2014 -0400
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".
gtk/gtkprinter.c | 2 +-
1 files changed, 1 insertions(+), 1 deletions(-)
---
diff --git a/gtk/gtkprinter.c b/gtk/gtkprinter.c
index 63d327b..c34eafb 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;
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]