Commit bd51d930 authored by Thomas Jaeger's avatar Thomas Jaeger Committed by Alexander Larsson

Use strstr instead of g_strrstr.

Signed-off-by: default avatarThomas Jaeger <>
parent 6fef640d
...@@ -111,12 +111,12 @@ gdk_input_device_new (GdkDisplay *display, ...@@ -111,12 +111,12 @@ gdk_input_device_new (GdkDisplay *display,
tmp_name = g_ascii_strdown (gdkdev->, -1); tmp_name = g_ascii_strdown (gdkdev->, -1);
if (g_strrstr (tmp_name, "eraser")) if (strstr (tmp_name, "eraser"))
gdkdev->info.source = GDK_SOURCE_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; gdkdev->info.source = GDK_SOURCE_CURSOR;
else if (g_strrstr (tmp_name, "wacom") || else if (strstr (tmp_name, "wacom") ||
g_strrstr (tmp_name, "pen")) strstr (tmp_name, "pen"))
gdkdev->info.source = GDK_SOURCE_PEN; gdkdev->info.source = GDK_SOURCE_PEN;
else else
gdkdev->info.source = GDK_SOURCE_MOUSE; gdkdev->info.source = GDK_SOURCE_MOUSE;
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment