[gnome-settings-daemon] print-notifications: Match lower-case properly
- From: Bastien Nocera <hadess src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gnome-settings-daemon] print-notifications: Match lower-case properly
- Date: Fri, 9 Sep 2011 16:31:56 +0000 (UTC)
commit fa8b90f9f37ad0add83e903fbf5fd83c9e9c0eb5
Author: Bastien Nocera <hadess hadess net>
Date: Fri Sep 9 17:29:52 2011 +0100
print-notifications: Match lower-case properly
The lower-cased string needs to be checked against a lower-case
string, or it's never going to match.
plugins/print-notifications/gsd-printer.c | 2 +-
1 files changed, 1 insertions(+), 1 deletions(-)
---
diff --git a/plugins/print-notifications/gsd-printer.c b/plugins/print-notifications/gsd-printer.c
index 239a614..70676d4 100644
--- a/plugins/print-notifications/gsd-printer.c
+++ b/plugins/print-notifications/gsd-printer.c
@@ -726,7 +726,7 @@ printer_autoconfigure (gchar *printer_name)
commands = get_dest_attr (printer_name, "printer-commands");
commands_lowercase = g_ascii_strdown (commands, -1);
- if (g_strrstr (commands_lowercase, "AutoConfigure")) {
+ if (g_strrstr (commands_lowercase, "autoconfigure")) {
response = execute_maintenance_command (printer_name,
"AutoConfigure",
("Automatic configuration"));
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]