summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDarin Adler <darin@src.gnome.org>2002-02-08 19:12:34 +0000
committerDarin Adler <darin@src.gnome.org>2002-02-08 19:12:34 +0000
commit6ec06edbbfeed89767a720694ca7e7a091e18e66 (patch)
tree7c87496b8e9b271a06a924f618e14abfa4b35cd9
parent27fec072e3fc9800f257897fab3a80a54cbf3e96 (diff)
downloadgtk+-6ec06edbbfeed89767a720694ca7e7a091e18e66.tar.gz
isspace -> g_ascii_isspace Remove gdki8n.h include. Remove <ctype.h>
* demos/gtk-demo/main.c: (load_file): isspace -> g_ascii_isspace * gdk/x11/gdkim-x11.c: Remove gdki8n.h include. * gdk/x11/gdkkeys-x11.c: Remove <ctype.h> include. * gdk/x11/gdkmain-x11.c: Remove <ctype.h> include. * gtk/fnmatch.c: Remove <ctype.h> include. * gtk/gtkaccelgroup.c: Remove <ctype.h> include. * gtk/gtkaccellabel.c: (gtk_accel_label_refetch): toupper -> g_unichar_toupper, toupper -> g_unichar_totile * gtk/gtkbindings.c: Remove <ctype.h> include. * gtk/gtkfontsel.c: Remove <ctype.h> include. * gtk/gtkiconfactory.c: Remove <ctype.h> include. * gtk/gtkinputdialog.c: Remove <ctype.h> include. * gtk/gtklabel.c: Remove <ctype.h> include. * gtk/gtkmain.c: Remove <ctype.h> include. * gtk/gtkmenu.c: Remove <ctype.h> include. * gtk/gtkoldeditable.c: Remove <ctype.h> include. * gtk/gtkrc.c: Remove <ctype.h> include. * gtk/gtktextbtree.c: Remove <ctype.h> include. * gtk/gtktextiter.c: Remove <ctype.h> include. * gtk/gtktextsegment.c: Remove <ctype.h> include.
-rw-r--r--ChangeLog23
-rw-r--r--ChangeLog.pre-2-023
-rw-r--r--ChangeLog.pre-2-1023
-rw-r--r--ChangeLog.pre-2-223
-rw-r--r--ChangeLog.pre-2-423
-rw-r--r--ChangeLog.pre-2-623
-rw-r--r--ChangeLog.pre-2-823
-rw-r--r--demos/gtk-demo/main.c13
-rw-r--r--gdk/x11/gdkim-x11.c2
-rw-r--r--gdk/x11/gdkkeys-x11.c1
-rw-r--r--gdk/x11/gdkmain-x11.c1
-rw-r--r--gtk/fnmatch.c1
-rw-r--r--gtk/gtkaccelgroup.c1
-rw-r--r--gtk/gtkaccellabel.c5
-rw-r--r--gtk/gtkbindings.c1
-rw-r--r--gtk/gtkfontsel.c1
-rw-r--r--gtk/gtkiconfactory.c1
-rw-r--r--gtk/gtkinputdialog.c1
-rw-r--r--gtk/gtklabel.c1
-rw-r--r--gtk/gtkmain.c1
-rw-r--r--gtk/gtkmenu.c1
-rw-r--r--gtk/gtkoldeditable.c1
-rw-r--r--gtk/gtkrc.c1
-rw-r--r--gtk/gtktextbtree.c1
-rw-r--r--gtk/gtktextiter.c1
-rw-r--r--gtk/gtktextsegment.c1
26 files changed, 170 insertions, 27 deletions
diff --git a/ChangeLog b/ChangeLog
index 5fa9ba68be..c903cd4db3 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,26 @@
+2002-02-08 Darin Adler <darin@bentspoon.com>
+
+ * demos/gtk-demo/main.c: (load_file): isspace -> g_ascii_isspace
+ * gdk/x11/gdkim-x11.c: Remove gdki8n.h include.
+ * gdk/x11/gdkkeys-x11.c: Remove <ctype.h> include.
+ * gdk/x11/gdkmain-x11.c: Remove <ctype.h> include.
+ * gtk/fnmatch.c: Remove <ctype.h> include.
+ * gtk/gtkaccelgroup.c: Remove <ctype.h> include.
+ * gtk/gtkaccellabel.c: (gtk_accel_label_refetch): toupper ->
+ g_unichar_toupper, toupper -> g_unichar_totile
+ * gtk/gtkbindings.c: Remove <ctype.h> include.
+ * gtk/gtkfontsel.c: Remove <ctype.h> include.
+ * gtk/gtkiconfactory.c: Remove <ctype.h> include.
+ * gtk/gtkinputdialog.c: Remove <ctype.h> include.
+ * gtk/gtklabel.c: Remove <ctype.h> include.
+ * gtk/gtkmain.c: Remove <ctype.h> include.
+ * gtk/gtkmenu.c: Remove <ctype.h> include.
+ * gtk/gtkoldeditable.c: Remove <ctype.h> include.
+ * gtk/gtkrc.c: Remove <ctype.h> include.
+ * gtk/gtktextbtree.c: Remove <ctype.h> include.
+ * gtk/gtktextiter.c: Remove <ctype.h> include.
+ * gtk/gtktextsegment.c: Remove <ctype.h> include.
+
2002-02-08 Sven Neumann <sven@gimp.org>
* gtk/gtkfilesel.c
diff --git a/ChangeLog.pre-2-0 b/ChangeLog.pre-2-0
index 5fa9ba68be..c903cd4db3 100644
--- a/ChangeLog.pre-2-0
+++ b/ChangeLog.pre-2-0
@@ -1,3 +1,26 @@
+2002-02-08 Darin Adler <darin@bentspoon.com>
+
+ * demos/gtk-demo/main.c: (load_file): isspace -> g_ascii_isspace
+ * gdk/x11/gdkim-x11.c: Remove gdki8n.h include.
+ * gdk/x11/gdkkeys-x11.c: Remove <ctype.h> include.
+ * gdk/x11/gdkmain-x11.c: Remove <ctype.h> include.
+ * gtk/fnmatch.c: Remove <ctype.h> include.
+ * gtk/gtkaccelgroup.c: Remove <ctype.h> include.
+ * gtk/gtkaccellabel.c: (gtk_accel_label_refetch): toupper ->
+ g_unichar_toupper, toupper -> g_unichar_totile
+ * gtk/gtkbindings.c: Remove <ctype.h> include.
+ * gtk/gtkfontsel.c: Remove <ctype.h> include.
+ * gtk/gtkiconfactory.c: Remove <ctype.h> include.
+ * gtk/gtkinputdialog.c: Remove <ctype.h> include.
+ * gtk/gtklabel.c: Remove <ctype.h> include.
+ * gtk/gtkmain.c: Remove <ctype.h> include.
+ * gtk/gtkmenu.c: Remove <ctype.h> include.
+ * gtk/gtkoldeditable.c: Remove <ctype.h> include.
+ * gtk/gtkrc.c: Remove <ctype.h> include.
+ * gtk/gtktextbtree.c: Remove <ctype.h> include.
+ * gtk/gtktextiter.c: Remove <ctype.h> include.
+ * gtk/gtktextsegment.c: Remove <ctype.h> include.
+
2002-02-08 Sven Neumann <sven@gimp.org>
* gtk/gtkfilesel.c
diff --git a/ChangeLog.pre-2-10 b/ChangeLog.pre-2-10
index 5fa9ba68be..c903cd4db3 100644
--- a/ChangeLog.pre-2-10
+++ b/ChangeLog.pre-2-10
@@ -1,3 +1,26 @@
+2002-02-08 Darin Adler <darin@bentspoon.com>
+
+ * demos/gtk-demo/main.c: (load_file): isspace -> g_ascii_isspace
+ * gdk/x11/gdkim-x11.c: Remove gdki8n.h include.
+ * gdk/x11/gdkkeys-x11.c: Remove <ctype.h> include.
+ * gdk/x11/gdkmain-x11.c: Remove <ctype.h> include.
+ * gtk/fnmatch.c: Remove <ctype.h> include.
+ * gtk/gtkaccelgroup.c: Remove <ctype.h> include.
+ * gtk/gtkaccellabel.c: (gtk_accel_label_refetch): toupper ->
+ g_unichar_toupper, toupper -> g_unichar_totile
+ * gtk/gtkbindings.c: Remove <ctype.h> include.
+ * gtk/gtkfontsel.c: Remove <ctype.h> include.
+ * gtk/gtkiconfactory.c: Remove <ctype.h> include.
+ * gtk/gtkinputdialog.c: Remove <ctype.h> include.
+ * gtk/gtklabel.c: Remove <ctype.h> include.
+ * gtk/gtkmain.c: Remove <ctype.h> include.
+ * gtk/gtkmenu.c: Remove <ctype.h> include.
+ * gtk/gtkoldeditable.c: Remove <ctype.h> include.
+ * gtk/gtkrc.c: Remove <ctype.h> include.
+ * gtk/gtktextbtree.c: Remove <ctype.h> include.
+ * gtk/gtktextiter.c: Remove <ctype.h> include.
+ * gtk/gtktextsegment.c: Remove <ctype.h> include.
+
2002-02-08 Sven Neumann <sven@gimp.org>
* gtk/gtkfilesel.c
diff --git a/ChangeLog.pre-2-2 b/ChangeLog.pre-2-2
index 5fa9ba68be..c903cd4db3 100644
--- a/ChangeLog.pre-2-2
+++ b/ChangeLog.pre-2-2
@@ -1,3 +1,26 @@
+2002-02-08 Darin Adler <darin@bentspoon.com>
+
+ * demos/gtk-demo/main.c: (load_file): isspace -> g_ascii_isspace
+ * gdk/x11/gdkim-x11.c: Remove gdki8n.h include.
+ * gdk/x11/gdkkeys-x11.c: Remove <ctype.h> include.
+ * gdk/x11/gdkmain-x11.c: Remove <ctype.h> include.
+ * gtk/fnmatch.c: Remove <ctype.h> include.
+ * gtk/gtkaccelgroup.c: Remove <ctype.h> include.
+ * gtk/gtkaccellabel.c: (gtk_accel_label_refetch): toupper ->
+ g_unichar_toupper, toupper -> g_unichar_totile
+ * gtk/gtkbindings.c: Remove <ctype.h> include.
+ * gtk/gtkfontsel.c: Remove <ctype.h> include.
+ * gtk/gtkiconfactory.c: Remove <ctype.h> include.
+ * gtk/gtkinputdialog.c: Remove <ctype.h> include.
+ * gtk/gtklabel.c: Remove <ctype.h> include.
+ * gtk/gtkmain.c: Remove <ctype.h> include.
+ * gtk/gtkmenu.c: Remove <ctype.h> include.
+ * gtk/gtkoldeditable.c: Remove <ctype.h> include.
+ * gtk/gtkrc.c: Remove <ctype.h> include.
+ * gtk/gtktextbtree.c: Remove <ctype.h> include.
+ * gtk/gtktextiter.c: Remove <ctype.h> include.
+ * gtk/gtktextsegment.c: Remove <ctype.h> include.
+
2002-02-08 Sven Neumann <sven@gimp.org>
* gtk/gtkfilesel.c
diff --git a/ChangeLog.pre-2-4 b/ChangeLog.pre-2-4
index 5fa9ba68be..c903cd4db3 100644
--- a/ChangeLog.pre-2-4
+++ b/ChangeLog.pre-2-4
@@ -1,3 +1,26 @@
+2002-02-08 Darin Adler <darin@bentspoon.com>
+
+ * demos/gtk-demo/main.c: (load_file): isspace -> g_ascii_isspace
+ * gdk/x11/gdkim-x11.c: Remove gdki8n.h include.
+ * gdk/x11/gdkkeys-x11.c: Remove <ctype.h> include.
+ * gdk/x11/gdkmain-x11.c: Remove <ctype.h> include.
+ * gtk/fnmatch.c: Remove <ctype.h> include.
+ * gtk/gtkaccelgroup.c: Remove <ctype.h> include.
+ * gtk/gtkaccellabel.c: (gtk_accel_label_refetch): toupper ->
+ g_unichar_toupper, toupper -> g_unichar_totile
+ * gtk/gtkbindings.c: Remove <ctype.h> include.
+ * gtk/gtkfontsel.c: Remove <ctype.h> include.
+ * gtk/gtkiconfactory.c: Remove <ctype.h> include.
+ * gtk/gtkinputdialog.c: Remove <ctype.h> include.
+ * gtk/gtklabel.c: Remove <ctype.h> include.
+ * gtk/gtkmain.c: Remove <ctype.h> include.
+ * gtk/gtkmenu.c: Remove <ctype.h> include.
+ * gtk/gtkoldeditable.c: Remove <ctype.h> include.
+ * gtk/gtkrc.c: Remove <ctype.h> include.
+ * gtk/gtktextbtree.c: Remove <ctype.h> include.
+ * gtk/gtktextiter.c: Remove <ctype.h> include.
+ * gtk/gtktextsegment.c: Remove <ctype.h> include.
+
2002-02-08 Sven Neumann <sven@gimp.org>
* gtk/gtkfilesel.c
diff --git a/ChangeLog.pre-2-6 b/ChangeLog.pre-2-6
index 5fa9ba68be..c903cd4db3 100644
--- a/ChangeLog.pre-2-6
+++ b/ChangeLog.pre-2-6
@@ -1,3 +1,26 @@
+2002-02-08 Darin Adler <darin@bentspoon.com>
+
+ * demos/gtk-demo/main.c: (load_file): isspace -> g_ascii_isspace
+ * gdk/x11/gdkim-x11.c: Remove gdki8n.h include.
+ * gdk/x11/gdkkeys-x11.c: Remove <ctype.h> include.
+ * gdk/x11/gdkmain-x11.c: Remove <ctype.h> include.
+ * gtk/fnmatch.c: Remove <ctype.h> include.
+ * gtk/gtkaccelgroup.c: Remove <ctype.h> include.
+ * gtk/gtkaccellabel.c: (gtk_accel_label_refetch): toupper ->
+ g_unichar_toupper, toupper -> g_unichar_totile
+ * gtk/gtkbindings.c: Remove <ctype.h> include.
+ * gtk/gtkfontsel.c: Remove <ctype.h> include.
+ * gtk/gtkiconfactory.c: Remove <ctype.h> include.
+ * gtk/gtkinputdialog.c: Remove <ctype.h> include.
+ * gtk/gtklabel.c: Remove <ctype.h> include.
+ * gtk/gtkmain.c: Remove <ctype.h> include.
+ * gtk/gtkmenu.c: Remove <ctype.h> include.
+ * gtk/gtkoldeditable.c: Remove <ctype.h> include.
+ * gtk/gtkrc.c: Remove <ctype.h> include.
+ * gtk/gtktextbtree.c: Remove <ctype.h> include.
+ * gtk/gtktextiter.c: Remove <ctype.h> include.
+ * gtk/gtktextsegment.c: Remove <ctype.h> include.
+
2002-02-08 Sven Neumann <sven@gimp.org>
* gtk/gtkfilesel.c
diff --git a/ChangeLog.pre-2-8 b/ChangeLog.pre-2-8
index 5fa9ba68be..c903cd4db3 100644
--- a/ChangeLog.pre-2-8
+++ b/ChangeLog.pre-2-8
@@ -1,3 +1,26 @@
+2002-02-08 Darin Adler <darin@bentspoon.com>
+
+ * demos/gtk-demo/main.c: (load_file): isspace -> g_ascii_isspace
+ * gdk/x11/gdkim-x11.c: Remove gdki8n.h include.
+ * gdk/x11/gdkkeys-x11.c: Remove <ctype.h> include.
+ * gdk/x11/gdkmain-x11.c: Remove <ctype.h> include.
+ * gtk/fnmatch.c: Remove <ctype.h> include.
+ * gtk/gtkaccelgroup.c: Remove <ctype.h> include.
+ * gtk/gtkaccellabel.c: (gtk_accel_label_refetch): toupper ->
+ g_unichar_toupper, toupper -> g_unichar_totile
+ * gtk/gtkbindings.c: Remove <ctype.h> include.
+ * gtk/gtkfontsel.c: Remove <ctype.h> include.
+ * gtk/gtkiconfactory.c: Remove <ctype.h> include.
+ * gtk/gtkinputdialog.c: Remove <ctype.h> include.
+ * gtk/gtklabel.c: Remove <ctype.h> include.
+ * gtk/gtkmain.c: Remove <ctype.h> include.
+ * gtk/gtkmenu.c: Remove <ctype.h> include.
+ * gtk/gtkoldeditable.c: Remove <ctype.h> include.
+ * gtk/gtkrc.c: Remove <ctype.h> include.
+ * gtk/gtktextbtree.c: Remove <ctype.h> include.
+ * gtk/gtktextiter.c: Remove <ctype.h> include.
+ * gtk/gtktextsegment.c: Remove <ctype.h> include.
+
2002-02-08 Sven Neumann <sven@gimp.org>
* gtk/gtkfilesel.c
diff --git a/demos/gtk-demo/main.c b/demos/gtk-demo/main.c
index 7fe3b45428..c59bf3184a 100644
--- a/demos/gtk-demo/main.c
+++ b/demos/gtk-demo/main.c
@@ -2,7 +2,6 @@
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
-#include <ctype.h>
#include <gtk/gtk.h>
@@ -460,7 +459,7 @@ load_file (const gchar *filename)
{
case 0:
/* Reading title */
- while (*p == '/' || *p == '*' || isspace (*p))
+ while (*p == '/' || *p == '*' || g_ascii_isspace (*p))
p++;
r = p;
while (*r != '/' && strlen (r))
@@ -468,7 +467,7 @@ load_file (const gchar *filename)
if (strlen (r) > 0)
p = r + 1;
q = p + strlen (p);
- while (q > p && isspace (*(q - 1)))
+ while (q > p && g_ascii_isspace (*(q - 1)))
q--;
if (q > p)
@@ -492,7 +491,7 @@ load_file (const gchar *filename)
case 1:
/* Reading body of info section */
- while (isspace (*p))
+ while (g_ascii_isspace (*p))
p++;
if (*p == '*' && *(p + 1) == '/')
{
@@ -503,11 +502,11 @@ load_file (const gchar *filename)
{
int len;
- while (*p == '*' || isspace (*p))
+ while (*p == '*' || g_ascii_isspace (*p))
p++;
len = strlen (p);
- while (isspace (*(p + len - 1)))
+ while (g_ascii_isspace (*(p + len - 1)))
len--;
if (len > 0)
@@ -529,7 +528,7 @@ load_file (const gchar *filename)
case 2:
/* Skipping blank lines */
- while (isspace (*p))
+ while (g_ascii_isspace (*p))
p++;
if (*p)
{
diff --git a/gdk/x11/gdkim-x11.c b/gdk/x11/gdkim-x11.c
index fbf2ac49bf..875e36241d 100644
--- a/gdk/x11/gdkim-x11.c
+++ b/gdk/x11/gdkim-x11.c
@@ -25,10 +25,10 @@
*/
#include <locale.h>
+#include <stdlib.h>
#include "gdk.h" /* For gdk_flush() */
#include "gdkpixmap.h"
-#include "gdki18n.h"
#include "gdkinternals.h"
#include "gdkprivate-x11.h"
diff --git a/gdk/x11/gdkkeys-x11.c b/gdk/x11/gdkkeys-x11.c
index 4e0a928837..139ab9fb7f 100644
--- a/gdk/x11/gdkkeys-x11.c
+++ b/gdk/x11/gdkkeys-x11.c
@@ -24,7 +24,6 @@
* GTK+ at ftp://ftp.gtk.org/pub/gtk/.
*/
-#include <ctype.h>
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
diff --git a/gdk/x11/gdkmain-x11.c b/gdk/x11/gdkmain-x11.c
index 5f852bd9bc..b6383a0dd4 100644
--- a/gdk/x11/gdkmain-x11.c
+++ b/gdk/x11/gdkmain-x11.c
@@ -26,7 +26,6 @@
#include "config.h"
-#include <ctype.h>
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
diff --git a/gtk/fnmatch.c b/gtk/fnmatch.c
index b4ba3c7f0d..06576cb561 100644
--- a/gtk/fnmatch.c
+++ b/gtk/fnmatch.c
@@ -38,7 +38,6 @@
/* We need glib.h for G_DIR_SEPARATOR and G_OS_WIN32 */
#include <glib.h>
-#include <ctype.h>
/* Comment out all this code if we are using the GNU C Library, and are not
diff --git a/gtk/gtkaccelgroup.c b/gtk/gtkaccelgroup.c
index 70db40aee5..8ee2a8ba6b 100644
--- a/gtk/gtkaccelgroup.c
+++ b/gtk/gtkaccelgroup.c
@@ -29,7 +29,6 @@
#include "gtkmarshalers.h"
#include "gtksignal.h"
-#include <ctype.h>
#include <string.h>
#include <stdlib.h>
diff --git a/gtk/gtkaccellabel.c b/gtk/gtkaccellabel.c
index efbd6b7386..98c6a99610 100644
--- a/gtk/gtkaccellabel.c
+++ b/gtk/gtkaccellabel.c
@@ -33,7 +33,6 @@
#include "gtkintl.h"
#include <string.h>
-#include <ctype.h>
enum {
PROP_0,
@@ -532,7 +531,7 @@ gtk_accel_label_refetch (GtkAccelLabel *accel_label)
g_string_append (gstring, "Backslash");
break;
default:
- g_string_append_unichar (gstring, toupper (key->accel_key));
+ g_string_append_unichar (gstring, g_unichar_toupper (key->accel_key));
break;
}
}
@@ -542,7 +541,7 @@ gtk_accel_label_refetch (GtkAccelLabel *accel_label)
tmp = gtk_accelerator_name (key->accel_key, 0);
if (tmp[0] != 0 && tmp[1] == 0)
- tmp[0] = toupper (tmp[0]);
+ tmp[0] = g_unichar_totitle (tmp[0]);
g_string_append (gstring, tmp);
g_free (tmp);
}
diff --git a/gtk/gtkbindings.c b/gtk/gtkbindings.c
index d80f6cfb51..edcfbdf139 100644
--- a/gtk/gtkbindings.c
+++ b/gtk/gtkbindings.c
@@ -27,7 +27,6 @@
* GTK+ at ftp://ftp.gtk.org/pub/gtk/.
*/
-#include <ctype.h>
#include <string.h>
#include <stdarg.h>
#include "gtkbindings.h"
diff --git a/gtk/gtkfontsel.c b/gtk/gtkfontsel.c
index 3ecf53e14f..62f7b86659 100644
--- a/gtk/gtkfontsel.c
+++ b/gtk/gtkfontsel.c
@@ -32,7 +32,6 @@
#include <stdlib.h>
#include <stdio.h>
#include <string.h>
-#include <ctype.h>
#include "gdk/gdk.h"
#include "gdk/gdkkeysyms.h"
diff --git a/gtk/gtkiconfactory.c b/gtk/gtkiconfactory.c
index df12354eec..304ffdb35f 100644
--- a/gtk/gtkiconfactory.c
+++ b/gtk/gtkiconfactory.c
@@ -30,7 +30,6 @@
#include "gtkintl.h"
#include <stdlib.h>
#include <errno.h>
-#include <ctype.h>
#include <string.h>
static GSList *all_icon_factories = NULL;
diff --git a/gtk/gtkinputdialog.c b/gtk/gtkinputdialog.c
index 31a4f1c41d..7d9a3af7a1 100644
--- a/gtk/gtkinputdialog.c
+++ b/gtk/gtkinputdialog.c
@@ -34,7 +34,6 @@
#include <stdio.h>
#include <stdlib.h>
-#include <ctype.h>
#include "gdk/gdkkeysyms.h"
#include "gtkbutton.h"
#include "gtkentry.h"
diff --git a/gtk/gtklabel.c b/gtk/gtklabel.c
index 290ff6ac42..e038ba4119 100644
--- a/gtk/gtklabel.c
+++ b/gtk/gtklabel.c
@@ -32,7 +32,6 @@
#include "gtkwindow.h"
#include "gdk/gdkkeysyms.h"
#include "gtkclipboard.h"
-#include "gdk/gdki18n.h"
#include <pango/pango.h>
#include "gtkimagemenuitem.h"
#include "gtkintl.h"
diff --git a/gtk/gtkmain.c b/gtk/gtkmain.c
index 1b7bb1092e..37eb587fc9 100644
--- a/gtk/gtkmain.c
+++ b/gtk/gtkmain.c
@@ -59,7 +59,6 @@
#include "gtkwidget.h"
#include "gtkwindow.h"
#include "gtkprivate.h"
-#include "gdk/gdki18n.h"
#include "config.h"
#include "gtkdebug.h"
#include "gtkintl.h"
diff --git a/gtk/gtkmenu.c b/gtk/gtkmenu.c
index 3ff6da6d02..29de7faa4d 100644
--- a/gtk/gtkmenu.c
+++ b/gtk/gtkmenu.c
@@ -24,7 +24,6 @@
* GTK+ at ftp://ftp.gtk.org/pub/gtk/.
*/
-#include <ctype.h>
#include <string.h> /* memset */
#include "gdk/gdkkeysyms.h"
#include "gtkaccelmap.h"
diff --git a/gtk/gtkoldeditable.c b/gtk/gtkoldeditable.c
index d723ebd0a4..ee65d32010 100644
--- a/gtk/gtkoldeditable.c
+++ b/gtk/gtkoldeditable.c
@@ -24,7 +24,6 @@
* GTK+ at ftp://ftp.gtk.org/pub/gtk/.
*/
-#include <ctype.h>
#include <string.h>
#include "gdk/gdkkeysyms.h"
#include "gdk/gdki18n.h"
diff --git a/gtk/gtkrc.c b/gtk/gtkrc.c
index b9a2fe7b91..2905e79e4b 100644
--- a/gtk/gtkrc.c
+++ b/gtk/gtkrc.c
@@ -27,7 +27,6 @@
#include "config.h"
#include <locale.h>
-#include <ctype.h>
#ifdef HAVE_UNISTD_H
#include <unistd.h>
#endif
diff --git a/gtk/gtktextbtree.c b/gtk/gtktextbtree.c
index 6696480313..5f00fc088f 100644
--- a/gtk/gtktextbtree.c
+++ b/gtk/gtktextbtree.c
@@ -55,7 +55,6 @@
#define GTK_TEXT_USE_INTERNAL_UNSUPPORTED_API
#include "gtktextbtree.h"
#include <string.h>
-#include <ctype.h>
#include <stdlib.h>
#include <stdio.h>
#include "gtksignal.h"
diff --git a/gtk/gtktextiter.c b/gtk/gtktextiter.c
index 34086c704b..166ddde49d 100644
--- a/gtk/gtktextiter.c
+++ b/gtk/gtktextiter.c
@@ -30,7 +30,6 @@
#include "gtktextiterprivate.h"
#include "gtkdebug.h"
#include <string.h>
-#include <ctype.h>
#define FIX_OVERFLOWS(varname) if ((varname) == G_MININT) (varname) = G_MININT + 1
diff --git a/gtk/gtktextsegment.c b/gtk/gtktextsegment.c
index d9634dfea9..5660b628d7 100644
--- a/gtk/gtktextsegment.c
+++ b/gtk/gtktextsegment.c
@@ -53,7 +53,6 @@
#define GTK_TEXT_USE_INTERNAL_UNSUPPORTED_API
#include "gtktextbtree.h"
#include <string.h>
-#include <ctype.h>
#include <stdlib.h>
#include <stdio.h>
#include "gtktexttag.h"