Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
View | Details | Raw Unified | Return to bug 278047 | Differences between
and this patch

Collapse All | Expand All

(-)xfprint-manager/main.c.bak (-3 / +4 lines)
Lines 41-46 Link Here
41
#include <libxfprint/printer-list-window.h>
41
#include <libxfprint/printer-list-window.h>
42
42
43
#define CHANNEL         "xfprint"
43
#define CHANNEL         "xfprint"
44
#define PROP_PRINTING_SYSTEM  "/printing-system"
44
45
45
extern void mainwin_setup (void);
46
extern void mainwin_setup (void);
46
47
Lines 66-80 Link Here
66
  channel = xfconf_channel_new (CHANNEL);
67
  channel = xfconf_channel_new (CHANNEL);
67
  if (channel) {
68
  if (channel) {
68
69
69
    if (xfconf_channel_has_property (channel, "/XfPrint/system")) {
70
    if (xfconf_channel_has_property (channel, PROP_PRINTING_SYSTEM)) {
70
      const gchar *system_name = xfconf_channel_get_string (channel, "/XfPrint/system", "none");
71
      const gchar *system_name = xfconf_channel_get_string (channel, PROP_PRINTING_SYSTEM, "none");
71
      if (g_ascii_strcasecmp (system_name, "none") != 0) {
72
      if (g_ascii_strcasecmp (system_name, "none") != 0) {
72
        ps = printing_system_new (system_name);
73
        ps = printing_system_new (system_name);
73
        if (ps == NULL);
74
        if (ps == NULL);
74
          g_warning ("Unable to load printing system module %s", system_name);
75
          g_warning ("Unable to load printing system module %s", system_name);
75
      }
76
      }
76
    } else {
77
    } else {
77
      g_warning ("%s: XfPrint/system is not set", PACKAGE);
78
      g_warning ("%s: %s is not set", PACKAGE, PROP_PRINTING_SYSTEM);
78
    }
79
    }
79
  }
80
  }
80
81

Return to bug 278047