summaryrefslogtreecommitdiff
path: root/gdk
diff options
context:
space:
mode:
authorJeff Garzik <jgarzik@src.gnome.org>1998-12-24 17:47:02 +0000
committerJeff Garzik <jgarzik@src.gnome.org>1998-12-24 17:47:02 +0000
commit553fa4309eb849f592afa0aead4c669be21ac117 (patch)
tree9bbbce3406d299faa53aa53d5fc74789225c2c16 /gdk
parent9775547b4a062f9b73a3498a0667e12b99313a44 (diff)
downloadgtk+-553fa4309eb849f592afa0aead4c669be21ac117.tar.gz
removed unused var 64-bit cast point to const data Made const-correct.
* gdk/gdkfont.c: removed unused var * gdk/gdkim.c: 64-bit cast * gtk/gtkaccelgroup.c: point to const data * gtk/gtkdnd.[ch]: (gtk_drag_dest_set, gtk_drag_source_set): Made const-correct. * gtk/gtkfontsel.c: kill uninitialized var warning * gtk/gtkselection.[ch]: (gtk_target_list_new, gtk_target_list_add_table, gtk_selection_add_targets): Made const-correct. * gtk/testgtk.c: 64-bit cast
Diffstat (limited to 'gdk')
-rw-r--r--gdk/gdkfont.c1
-rw-r--r--gdk/gdkim.c2
-rw-r--r--gdk/x11/gdkfont-x11.c1
-rw-r--r--gdk/x11/gdkim-x11.c2
4 files changed, 2 insertions, 4 deletions
diff --git a/gdk/gdkfont.c b/gdk/gdkfont.c
index e36fde1708..c2bd18744a 100644
--- a/gdk/gdkfont.c
+++ b/gdk/gdkfont.c
@@ -521,7 +521,6 @@ gdk_text_extents_wc (GdkFont *font,
int direction;
int font_ascent;
int font_descent;
- gint i;
g_return_if_fail (font != NULL);
g_return_if_fail (text != NULL);
diff --git a/gdk/gdkim.c b/gdk/gdkim.c
index 182bb3b4e0..622b4c8e2d 100644
--- a/gdk/gdkim.c
+++ b/gdk/gdkim.c
@@ -731,7 +731,7 @@ gdk_ic_real_set_attr (GdkIC *ic,
if (mask & GDK_IC_LINE_SPACING)
{
arg->name = XNLineSpace;
- arg->value = (gpointer) attr->line_spacing;
+ arg->value = GINT_TO_POINTER( attr->line_spacing );
if (XSetICValues (xic, XNPreeditAttributes, arg, NULL))
error |= GDK_IC_LINE_SPACING;
diff --git a/gdk/x11/gdkfont-x11.c b/gdk/x11/gdkfont-x11.c
index e36fde1708..c2bd18744a 100644
--- a/gdk/x11/gdkfont-x11.c
+++ b/gdk/x11/gdkfont-x11.c
@@ -521,7 +521,6 @@ gdk_text_extents_wc (GdkFont *font,
int direction;
int font_ascent;
int font_descent;
- gint i;
g_return_if_fail (font != NULL);
g_return_if_fail (text != NULL);
diff --git a/gdk/x11/gdkim-x11.c b/gdk/x11/gdkim-x11.c
index 182bb3b4e0..622b4c8e2d 100644
--- a/gdk/x11/gdkim-x11.c
+++ b/gdk/x11/gdkim-x11.c
@@ -731,7 +731,7 @@ gdk_ic_real_set_attr (GdkIC *ic,
if (mask & GDK_IC_LINE_SPACING)
{
arg->name = XNLineSpace;
- arg->value = (gpointer) attr->line_spacing;
+ arg->value = GINT_TO_POINTER( attr->line_spacing );
if (XSetICValues (xic, XNPreeditAttributes, arg, NULL))
error |= GDK_IC_LINE_SPACING;