[PATCH] Use strstr instead of g_strrstr.
- From: Thomas Jaeger <ThJaeger gmail com>
- Subject: [PATCH] Use strstr instead of g_strrstr.
- Date: Mon, 28 Sep 2009 20:21:33 -0400
Signed-off-by: Thomas Jaeger <ThJaeger gmail com>
---
gdk/x11/gdkinput-x11.c | 8 ++++----
1 files changed, 4 insertions(+), 4 deletions(-)
diff --git a/gdk/x11/gdkinput-x11.c b/gdk/x11/gdkinput-x11.c
index 1daa7eb..6386a8f 100644
--- a/gdk/x11/gdkinput-x11.c
+++ b/gdk/x11/gdkinput-x11.c
@@ -116,12 +116,12 @@ gdk_input_device_new (GdkDisplay *display,
tmp_name = g_ascii_strdown (gdkdev->info.name, -1);
- if (g_strrstr (tmp_name, "eraser"))
+ if (strstr (tmp_name, "eraser"))
gdkdev->info.source = GDK_SOURCE_ERASER;
- else if (g_strrstr (tmp_name, "cursor"))
+ else if (strstr (tmp_name, "cursor"))
gdkdev->info.source = GDK_SOURCE_CURSOR;
- else if (g_strrstr (tmp_name, "wacom") ||
- g_strrstr (tmp_name, "pen"))
+ else if (strstr (tmp_name, "wacom") ||
+ strstr (tmp_name, "pen"))
gdkdev->info.source = GDK_SOURCE_PEN;
else
gdkdev->info.source = GDK_SOURCE_MOUSE;
--
1.6.3.3
--------------030402060401090509060701--
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]