mirror of
https://gitlab.gnome.org/GNOME/gtk.git
synced 2024-12-27 06:00:22 +00:00
Use strstr instead of g_strrstr.
Signed-off-by: Thomas Jaeger <ThJaeger@gmail.com>
This commit is contained in:
parent
6fef640deb
commit
bd51d930e8
@ -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;
|
||||
|
Loading…
Reference in New Issue
Block a user