--- np2/x11/gtk2/xnp2.h 2005/03/12 12:36:57 1.3 +++ np2/x11/gtk2/xnp2.h 2011/01/15 19:16:59 1.8 @@ -1,5 +1,3 @@ -/* $Id: xnp2.h,v 1.3 2005/03/12 12:36:57 monaka Exp $ */ - /* * Copyright (c) 2003 NONAKA Kimihiro * All rights reserved. @@ -28,12 +26,25 @@ #ifndef NP2_GTK2_XNP2_H__ #define NP2_GTK2_XNP2_H__ +#ifndef G_DISABLE_DEPRECATED +#define G_DISABLE_DEPRECATED +#endif + +#ifndef GLIB_DISABLE_DEPRECATED +#define GLIB_DISABLE_DEPRECATED +#endif + +#ifndef GDK_DISABLE_DEPRECATED +#define GDK_DISABLE_DEPRECATED +#endif +#ifndef GTK_DISABLE_DEPRECATED +#define GTK_DISABLE_DEPRECATED +#endif + #include #include -#ifdef __cplusplus -extern "C" { -#endif +G_BEGIN_DECLS extern GtkWidget *main_window; extern GtkWidget *drawarea; @@ -47,12 +58,13 @@ typedef struct { void install_idle_process(void); void uninstall_idle_process(void); -void gdk_window_set_pointer(GdkWindow *w, gint x, gint y); void gtk_scale_set_default_values(GtkScale *scale); -int gdk_window_get_pixmap_format(GdkWindow *w, GdkVisual *visual, pixmap_format_t *fmtp); +void gdk_window_set_pointer(GdkWindow *w, gint x, gint y); +gboolean gdk_window_get_pixmap_format(GdkWindow *w, GdkVisual *visual, pixmap_format_t *fmtp); +gboolean gtk_window_init_fullscreen(GtkWidget *widget); +void gtk_window_fullscreen_mode(GtkWidget *widget); +void gtk_window_restore_mode(GtkWidget *widget); -#ifdef __cplusplus -} -#endif +G_END_DECLS #endif /* NP2_GTK2_XNP2_H__ */