646 /*
647 * Check whether the gtk2 library is available and meets the minimum
648 * version requirement. If the library is already loaded this method has no
649 * effect and returns success.
650 * Returns FALSE on failure and TRUE on success.
651 */
652 gboolean gtk2_check_version();
653
654 /**
655 * Returns :
656 * NULL if the GTK+ library is compatible with the given version, or a string
657 * describing the version mismatch.
658 */
659 gchar* (*fp_gtk_check_version)(guint required_major, guint required_minor,
660 guint required_micro);
661 /*
662 * Load the gtk2 library. If the library is already loaded this method has no
663 * effect and returns success.
664 * Returns FALSE on failure and TRUE on success.
665 */
666 gboolean gtk2_load();
667
668 /*
669 * Loads fp_gtk_show_uri function pointer. This initialization is
670 * separated because the function is required only
671 * for java.awt.Desktop API. The function relies on initialization in
672 * gtk2_load, so it must be invoked only after a successful gtk2_load
673 * invocation
674 */
675 gboolean gtk2_show_uri_load();
676
677 /*
678 * Unload the gtk2 library. If the library is already unloaded this method has
679 * no effect and returns success.
680 * Returns FALSE on failure and TRUE on success.
681 */
682 gboolean gtk2_unload();
683
684 void gtk2_paint_arrow(WidgetType widget_type, GtkStateType state_type,
685 GtkShadowType shadow_type, const gchar *detail,
686 gint x, gint y, gint width, gint height,
|
646 /*
647 * Check whether the gtk2 library is available and meets the minimum
648 * version requirement. If the library is already loaded this method has no
649 * effect and returns success.
650 * Returns FALSE on failure and TRUE on success.
651 */
652 gboolean gtk2_check_version();
653
654 /**
655 * Returns :
656 * NULL if the GTK+ library is compatible with the given version, or a string
657 * describing the version mismatch.
658 */
659 gchar* (*fp_gtk_check_version)(guint required_major, guint required_minor,
660 guint required_micro);
661 /*
662 * Load the gtk2 library. If the library is already loaded this method has no
663 * effect and returns success.
664 * Returns FALSE on failure and TRUE on success.
665 */
666 gboolean gtk2_load(JNIEnv *env);
667
668 /*
669 * Loads fp_gtk_show_uri function pointer. This initialization is
670 * separated because the function is required only
671 * for java.awt.Desktop API. The function relies on initialization in
672 * gtk2_load, so it must be invoked only after a successful gtk2_load
673 * invocation
674 */
675 gboolean gtk2_show_uri_load();
676
677 /*
678 * Unload the gtk2 library. If the library is already unloaded this method has
679 * no effect and returns success.
680 * Returns FALSE on failure and TRUE on success.
681 */
682 gboolean gtk2_unload();
683
684 void gtk2_paint_arrow(WidgetType widget_type, GtkStateType state_type,
685 GtkShadowType shadow_type, const gchar *detail,
686 gint x, gint y, gint width, gint height,
|