Commit 8eb36ebb authored by Shawn Amundson's avatar Shawn Amundson
Browse files

Several portability fixes from Michael Callahan <callahan@xmission.com>

        * Several portability fixes from Michael Callahan
          <callahan@xmission.com> including adding in missing
          #includes and adding void in function prototypes.

-Shawn
parent 39f02b63
Fri Jan 2 23:55:24 CST 1998 Shawn T. Amundson <amundson@gimp.org>
* Several portability fixes from Michael Callahan
<callahan@xmission.com> including adding in missing
#includes and adding void in function prototypes.
Fri Jan 2 19:28:52 1988 Jay Painter <jpaint@serv.net> Fri Jan 2 19:28:52 1988 Jay Painter <jpaint@serv.net>
* gtk/gtkclist.h: * gtk/gtkclist.h:
* gtk/gtkclist.c: * gtk/gtkclist.c:
......
Fri Jan 2 23:55:24 CST 1998 Shawn T. Amundson <amundson@gimp.org>
* Several portability fixes from Michael Callahan
<callahan@xmission.com> including adding in missing
#includes and adding void in function prototypes.
Fri Jan 2 19:28:52 1988 Jay Painter <jpaint@serv.net> Fri Jan 2 19:28:52 1988 Jay Painter <jpaint@serv.net>
* gtk/gtkclist.h: * gtk/gtkclist.h:
* gtk/gtkclist.c: * gtk/gtkclist.c:
......
Fri Jan 2 23:55:24 CST 1998 Shawn T. Amundson <amundson@gimp.org>
* Several portability fixes from Michael Callahan
<callahan@xmission.com> including adding in missing
#includes and adding void in function prototypes.
Fri Jan 2 19:28:52 1988 Jay Painter <jpaint@serv.net> Fri Jan 2 19:28:52 1988 Jay Painter <jpaint@serv.net>
* gtk/gtkclist.h: * gtk/gtkclist.h:
* gtk/gtkclist.c: * gtk/gtkclist.c:
......
Fri Jan 2 23:55:24 CST 1998 Shawn T. Amundson <amundson@gimp.org>
* Several portability fixes from Michael Callahan
<callahan@xmission.com> including adding in missing
#includes and adding void in function prototypes.
Fri Jan 2 19:28:52 1988 Jay Painter <jpaint@serv.net> Fri Jan 2 19:28:52 1988 Jay Painter <jpaint@serv.net>
* gtk/gtkclist.h: * gtk/gtkclist.h:
* gtk/gtkclist.c: * gtk/gtkclist.c:
......
Fri Jan 2 23:55:24 CST 1998 Shawn T. Amundson <amundson@gimp.org>
* Several portability fixes from Michael Callahan
<callahan@xmission.com> including adding in missing
#includes and adding void in function prototypes.
Fri Jan 2 19:28:52 1988 Jay Painter <jpaint@serv.net> Fri Jan 2 19:28:52 1988 Jay Painter <jpaint@serv.net>
* gtk/gtkclist.h: * gtk/gtkclist.h:
* gtk/gtkclist.c: * gtk/gtkclist.c:
......
Fri Jan 2 23:55:24 CST 1998 Shawn T. Amundson <amundson@gimp.org>
* Several portability fixes from Michael Callahan
<callahan@xmission.com> including adding in missing
#includes and adding void in function prototypes.
Fri Jan 2 19:28:52 1988 Jay Painter <jpaint@serv.net> Fri Jan 2 19:28:52 1988 Jay Painter <jpaint@serv.net>
* gtk/gtkclist.h: * gtk/gtkclist.h:
* gtk/gtkclist.c: * gtk/gtkclist.c:
......
Fri Jan 2 23:55:24 CST 1998 Shawn T. Amundson <amundson@gimp.org>
* Several portability fixes from Michael Callahan
<callahan@xmission.com> including adding in missing
#includes and adding void in function prototypes.
Fri Jan 2 19:28:52 1988 Jay Painter <jpaint@serv.net> Fri Jan 2 19:28:52 1988 Jay Painter <jpaint@serv.net>
* gtk/gtkclist.h: * gtk/gtkclist.h:
* gtk/gtkclist.c: * gtk/gtkclist.c:
......
...@@ -2233,6 +2233,7 @@ gdk_event_translate (GdkEvent *event, ...@@ -2233,6 +2233,7 @@ gdk_event_translate (GdkEvent *event,
return_val = window_private && !window_private->destroyed; return_val = window_private && !window_private->destroyed;
break; break;
default: default:
;
} }
break; break;
......
...@@ -197,7 +197,7 @@ typedef enum ...@@ -197,7 +197,7 @@ typedef enum
GDK_WA_COLORMAP = 1 << 5, GDK_WA_COLORMAP = 1 << 5,
GDK_WA_VISUAL = 1 << 6, GDK_WA_VISUAL = 1 << 6,
GDK_WA_WMCLASS = 1 << 7, GDK_WA_WMCLASS = 1 << 7,
GDK_WA_NOREDIR = 1 << 8, GDK_WA_NOREDIR = 1 << 8
} GdkWindowAttributesType; } GdkWindowAttributesType;
/* Size restriction enumeration. /* Size restriction enumeration.
......
...@@ -2233,6 +2233,7 @@ gdk_event_translate (GdkEvent *event, ...@@ -2233,6 +2233,7 @@ gdk_event_translate (GdkEvent *event,
return_val = window_private && !window_private->destroyed; return_val = window_private && !window_private->destroyed;
break; break;
default: default:
;
} }
break; break;
......
...@@ -15,6 +15,7 @@ ...@@ -15,6 +15,7 @@
* License along with this library; if not, write to the Free * License along with this library; if not, write to the Free
* Software Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA. * Software Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
*/ */
#include <string.h>
#include "gtkbutton.h" #include "gtkbutton.h"
#include "gtklabel.h" #include "gtklabel.h"
#include "gtkmain.h" #include "gtkmain.h"
......
...@@ -15,6 +15,7 @@ ...@@ -15,6 +15,7 @@
* License along with this library; if not, write to the Free * License along with this library; if not, write to the Free
* Software Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA. * Software Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
*/ */
#include <stdlib.h>
#include <string.h> #include <string.h>
#include <math.h> #include <math.h>
......
...@@ -58,7 +58,7 @@ struct _GtkFixedChild ...@@ -58,7 +58,7 @@ struct _GtkFixedChild
guint gtk_fixed_get_type (void); guint gtk_fixed_get_type (void);
GtkWidget* gtk_fixed_new (); GtkWidget* gtk_fixed_new (void);
void gtk_fixed_put (GtkFixed *fixed, void gtk_fixed_put (GtkFixed *fixed,
GtkWidget *widget, GtkWidget *widget,
gint16 x, gint16 x,
......
...@@ -15,6 +15,7 @@ ...@@ -15,6 +15,7 @@
* License along with this library; if not, write to the Free * License along with this library; if not, write to the Free
* Software Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA. * Software Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
*/ */
#include <string.h>
#include "gtkframe.h" #include "gtkframe.h"
......
...@@ -15,6 +15,7 @@ ...@@ -15,6 +15,7 @@
* License along with this library; if not, write to the Free * License along with this library; if not, write to the Free
* Software Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA. * Software Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
*/ */
#include <stdlib.h>
#include "gtksignal.h" #include "gtksignal.h"
#include "gtkhandlebox.h" #include "gtkhandlebox.h"
#include <gdk/gdkx.h> #include <gdk/gdkx.h>
......
...@@ -48,7 +48,7 @@ struct _GtkHPanedClass ...@@ -48,7 +48,7 @@ struct _GtkHPanedClass
guint gtk_hpaned_get_type (void); guint gtk_hpaned_get_type (void);
GtkWidget* gtk_hpaned_new (); GtkWidget* gtk_hpaned_new (void);
#ifdef __cplusplus #ifdef __cplusplus
......
...@@ -68,7 +68,7 @@ struct _GtkInputDialogClass ...@@ -68,7 +68,7 @@ struct _GtkInputDialogClass
guint gtk_input_dialog_get_type (void); guint gtk_input_dialog_get_type (void);
GtkWidget* gtk_input_dialog_new (); GtkWidget* gtk_input_dialog_new (void);
#ifdef __cplusplus #ifdef __cplusplus
......
...@@ -45,7 +45,7 @@ static gint gtk_type_compare (GtkType *a, ...@@ -45,7 +45,7 @@ static gint gtk_type_compare (GtkType *a,
static guint gtk_type_name_hash (const char *key); static guint gtk_type_name_hash (const char *key);
static gint gtk_type_name_compare (const char *a, static gint gtk_type_name_compare (const char *a,
const char *b); const char *b);
static void gtk_type_init_builtin_types (); static void gtk_type_init_builtin_types (void);
static int initialize = TRUE; static int initialize = TRUE;
...@@ -395,7 +395,7 @@ gtk_type_register_builtin (char *name, ...@@ -395,7 +395,7 @@ gtk_type_register_builtin (char *name,
return gtk_type_unique (parent, &info); return gtk_type_unique (parent, &info);
} }
extern void gtk_object_init_type (); extern void gtk_object_init_type (void);
GtkType gtk_type_builtins[GTK_TYPE_NUM_BUILTINS]; GtkType gtk_type_builtins[GTK_TYPE_NUM_BUILTINS];
......
...@@ -16,6 +16,7 @@ ...@@ -16,6 +16,7 @@
* Software Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA. * Software Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
*/ */
#include <string.h>
#include "gtk.h" #include "gtk.h"
typedef enum { typedef enum {
...@@ -35,7 +36,7 @@ typedef enum { ...@@ -35,7 +36,7 @@ typedef enum {
STRING, STRING,
TEXT, TEXT,
WINDOW, WINDOW,
LAST_SEL_TYPE, LAST_SEL_TYPE
} SelType; } SelType;
GdkAtom seltypes[LAST_SEL_TYPE]; GdkAtom seltypes[LAST_SEL_TYPE];
......
...@@ -16,6 +16,7 @@ ...@@ -16,6 +16,7 @@
* Software Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA. * Software Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
*/ */
#include <string.h>
#include "gtk.h" #include "gtk.h"
typedef enum { typedef enum {
...@@ -35,7 +36,7 @@ typedef enum { ...@@ -35,7 +36,7 @@ typedef enum {
STRING, STRING,
TEXT, TEXT,
WINDOW, WINDOW,
LAST_SEL_TYPE, LAST_SEL_TYPE
} SelType; } SelType;
GdkAtom seltypes[LAST_SEL_TYPE]; GdkAtom seltypes[LAST_SEL_TYPE];
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment