Use strstr instead of g_strrstr.

Signed-off-by: Thomas Jaeger <ThJaeger@gmail.com>
This commit is contained in:
Thomas Jaeger 2009-09-28 20:21:33 -04:00 committed by Alexander Larsson
parent 6fef640deb
commit bd51d930e8

View File

@ -111,12 +111,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;