summary | shortlog | log | commit | commitdiff | tree
raw | patch | inline | side by side (parent: 5a0771c)
raw | patch | inline | side by side (parent: 5a0771c)
author | rwst <rwst@users.sourceforge.net> | |
Tue, 17 Jan 2006 10:46:36 +0000 (10:46 +0000) | ||
committer | rwst <rwst@users.sourceforge.net> | |
Tue, 17 Jan 2006 10:46:36 +0000 (10:46 +0000) |
src/dialogs/input.cpp | patch | blob | history |
diff --git a/src/dialogs/input.cpp b/src/dialogs/input.cpp
index da8eba196ccecfccb18f9872b1ddab403d426e18..501a4a21bea616eb3bc1bd97ab87e79d94cf5a05 100644 (file)
--- a/src/dialogs/input.cpp
+++ b/src/dialogs/input.cpp
#ifdef HAVE_CONFIG_H
# include "config.h"
#endif
-#include <gtk/gtk.h>
+#include <gtk/gtksignal.h>
+#include <gtk/gtkinputdialog.h>
+#include <glibmm/ustring.h>
#include "../inkscape.h"
#include "../macros.h"
}
const gchar *temp_ptr;
- std::string::size_type pos0;
- std::string::size_type pos1;
+ Glib::ustring::size_type pos0;
+ Glib::ustring::size_type pos1;
gint i;
gint j;
temp_ptr = repr->attribute("axes");
if (temp_ptr != NULL) {
- const std::string temp_str = temp_ptr;
+ const Glib::ustring temp_str = temp_ptr;
pos0 = pos1 = 0;
for (i=0; i < device->num_axes; i++) {
pos1 = temp_str.find(";", pos0);
- if (pos1 == std::string::npos)
+ if (pos1 == Glib::ustring::npos)
break; // Too few axis specifications
axis_use = GDK_AXIS_IGNORE;
temp_ptr = repr->attribute("keys");
if (temp_ptr != NULL) {
- const std::string temp_str = temp_ptr;
+ const Glib::ustring temp_str = temp_ptr;
pos0 = pos1 = 0;
for (i=0; i < device->num_keys; i++) {
pos1 = temp_str.find(";", pos0);
- if (pos1 == std::string::npos)
+ if (pos1 == Glib::ustring::npos)
break; // Too few key specifications
gtk_accelerator_parse(temp_str.substr(pos0, pos1-pos0).c_str(), &keyval, &modifier);
for (list_ptr = gdk_devices_list(); list_ptr != NULL; list_ptr = list_ptr->next) {
gint i;
- std::string temp_attribute;
+ Glib::ustring temp_attribute;
GdkDevice *device = static_cast<GdkDevice *>(list_ptr->data);
repr = sp_repr_lookup_child(devices, "id", device->name);