summary | shortlog | log | commit | commitdiff | tree
raw | patch | inline | side by side (parent: 1dea520)
raw | patch | inline | side by side (parent: 1dea520)
author | joncruz <joncruz@users.sourceforge.net> | |
Sat, 5 Apr 2008 20:22:51 +0000 (20:22 +0000) | ||
committer | joncruz <joncruz@users.sourceforge.net> | |
Sat, 5 Apr 2008 20:22:51 +0000 (20:22 +0000) |
src/device-manager.cpp | patch | blob | history |
diff --git a/src/device-manager.cpp b/src/device-manager.cpp
index a9a8844abe4af682fdf5e55f1afc7b8ee66996a3..09fd7cb5f788cc7970ada63da52cfcd018d361ba 100644 (file)
--- a/src/device-manager.cpp
+++ b/src/device-manager.cpp
static void createFakeList() {
if ( !fakeList ) {
- fakeout[0].name = "pad";
+ fakeout[0].name = g_strdup("pad");
fakeout[0].source = GDK_SOURCE_PEN;
fakeout[0].mode = GDK_MODE_SCREEN;
fakeout[0].has_cursor = TRUE;
fakeout[0].num_keys = 8;
fakeout[0].keys = padKeys;
- fakeout[1].name = "eraser";
+ fakeout[1].name = g_strdup("eraser");
fakeout[1].source = GDK_SOURCE_ERASER;
fakeout[1].mode = GDK_MODE_SCREEN;
fakeout[1].has_cursor = TRUE;
fakeout[1].num_keys = 7;
fakeout[1].keys = eraserKeys;
- fakeout[2].name = "cursor";
+ fakeout[2].name = g_strdup("cursor");
fakeout[2].source = GDK_SOURCE_CURSOR;
fakeout[2].mode = GDK_MODE_SCREEN;
fakeout[2].has_cursor = TRUE;
fakeout[2].num_keys = 7;
fakeout[2].keys = cursorKeys;
- fakeout[3].name = "stylus";
+ fakeout[3].name = g_strdup("stylus");
fakeout[3].source = GDK_SOURCE_PEN;
fakeout[3].mode = GDK_MODE_SCREEN;
fakeout[3].has_cursor = TRUE;
if ( devList && devList->data ) {
fakeout[4] = *((GdkDevice*)devList->data);
} else {
- fakeout[4].name = "Core Pointer";
+ fakeout[4].name = g_strdup("Core Pointer");
fakeout[4].source = GDK_SOURCE_MOUSE;
fakeout[4].mode = GDK_MODE_SCREEN;
fakeout[4].has_cursor = TRUE;