summaryrefslogtreecommitdiffstats
path: root/src/dialogs/input.cpp
diff options
context:
space:
mode:
authorRalf Stephan <ralf@ark.in-berlin.de>2006-01-17 10:46:36 +0000
committerrwst <rwst@users.sourceforge.net>2006-01-17 10:46:36 +0000
commit74168de7d3bc9b46c85b9060334843c6e003cf33 (patch)
tree42ba97f159662c27e1d128d8e40199a312636ec3 /src/dialogs/input.cpp
parentapplying patch #1368738 from yselkowitz (diff)
downloadinkscape-74168de7d3bc9b46c85b9060334843c6e003cf33.tar.gz
inkscape-74168de7d3bc9b46c85b9060334843c6e003cf33.zip
optimized includes, replaced std::string with Glib::string
(bzr r13)
Diffstat (limited to 'src/dialogs/input.cpp')
-rw-r--r--src/dialogs/input.cpp18
1 files changed, 10 insertions, 8 deletions
diff --git a/src/dialogs/input.cpp b/src/dialogs/input.cpp
index da8eba196..501a4a21b 100644
--- a/src/dialogs/input.cpp
+++ b/src/dialogs/input.cpp
@@ -14,7 +14,9 @@
#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"
@@ -91,8 +93,8 @@ sp_input_load_from_preferences (void)
}
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;
@@ -100,11 +102,11 @@ sp_input_load_from_preferences (void)
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;
@@ -123,11 +125,11 @@ sp_input_load_from_preferences (void)
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);
@@ -153,7 +155,7 @@ sp_input_save_to_preferences (void)
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);