1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
|
--- xfprint-manager/main.c 2009-02-24 21:34:16.000000000 +0000
+++ xfprint-manager/main.c.new 2010-07-15 21:30:51.098745852 +0000
@@ -41,6 +41,7 @@
#include <libxfprint/printer-list-window.h>
#define CHANNEL "xfprint"
+#define PROP_PRINTING_SYSTEM "/printing-system"
extern void mainwin_setup (void);
@@ -66,15 +67,15 @@
channel = xfconf_channel_new (CHANNEL);
if (channel) {
- if (xfconf_channel_has_property (channel, "/XfPrint/system")) {
- const gchar *system_name = xfconf_channel_get_string (channel, "/XfPrint/system", "none");
+ if (xfconf_channel_has_property (channel, PROP_PRINTING_SYSTEM)) {
+ const gchar *system_name = xfconf_channel_get_string (channel, PROP_PRINTING_SYSTEM, "none");
if (g_ascii_strcasecmp (system_name, "none") != 0) {
ps = printing_system_new (system_name);
if (ps == NULL);
g_warning ("Unable to load printing system module %s", system_name);
}
} else {
- g_warning ("%s: XfPrint/system is not set", PACKAGE);
+ g_warning ("%s: XfPrint/printing-system is not set", PACKAGE);
}
}
|