Hide exported glib/gtk symbols on win32
This commit is contained in:
parent
358e28e2a0
commit
4b35896c54
@ -21,6 +21,15 @@
|
||||
#endif /* __WIN32__ */
|
||||
|
||||
#if !GLIB_CHECK_VERSION(2,8,0)
|
||||
#ifdef __WIN32__
|
||||
#define g_mapped_file_new _moo_g_mapped_file_new
|
||||
#define g_mapped_file_get_length _moo_g_mapped_file_get_length
|
||||
#define g_mapped_file_get_contents _moo_g_mapped_file_get_contents
|
||||
#define g_mapped_file_free _moo_g_mapped_file_free
|
||||
#define g_mkdir_with_parents _moo_g_mkdir_with_parents
|
||||
#define g_g_listenv _moo_g_listenv
|
||||
#endif
|
||||
|
||||
#include "mooutils/newgtk/gmappedfile.h"
|
||||
|
||||
int g_mkdir_with_parents (const gchar *pathname,
|
||||
@ -29,6 +38,34 @@ gchar **g_listenv (void);
|
||||
#endif /* !GLIB_CHECK_VERSION(2,8,0) */
|
||||
|
||||
#if !GTK_CHECK_VERSION(2,4,0)
|
||||
#ifdef __WIN32__
|
||||
#define gtk_color_button_get_type _moo_gtk_color_button_get_type
|
||||
#define gtk_color_button_new _moo_gtk_color_button_new
|
||||
#define gtk_color_button_new_with_color _moo_gtk_color_button_new_with_color
|
||||
#define gtk_color_button_set_color _moo_gtk_color_button_set_color
|
||||
#define gtk_color_button_set_alpha _moo_gtk_color_button_set_alpha
|
||||
#define gtk_color_button_get_color _moo_gtk_color_button_get_color
|
||||
#define gtk_color_button_get_alpha _moo_gtk_color_button_get_alpha
|
||||
#define gtk_color_button_set_use_alpha _moo_gtk_color_button_set_use_alpha
|
||||
#define gtk_color_button_get_use_alpha _moo_gtk_color_button_get_use_alpha
|
||||
#define gtk_color_button_set_title _moo_gtk_color_button_set_title
|
||||
#define gtk_color_button_get_title _moo_gtk_color_button_get_title
|
||||
#define gtk_font_button_get_type _moo_gtk_font_button_get_type
|
||||
#define gtk_font_button_new _moo_gtk_font_button_new
|
||||
#define gtk_font_button_new_with_font _moo_gtk_font_button_new_with_font
|
||||
#define gtk_font_button_get_title _moo_gtk_font_button_get_title
|
||||
#define gtk_font_button_set_title _moo_gtk_font_button_set_title
|
||||
#define gtk_font_button_get_use_font _moo_gtk_font_button_get_use_font
|
||||
#define gtk_font_button_set_use_font _moo_gtk_font_button_set_use_font
|
||||
#define gtk_font_button_get_use_size _moo_gtk_font_button_get_use_size
|
||||
#define gtk_font_button_set_use_size _moo_gtk_font_button_set_use_size
|
||||
#define gtk_font_button_get_font_name _moo_gtk_font_button_get_font_name
|
||||
#define gtk_font_button_set_font_name _moo_gtk_font_button_set_font_name
|
||||
#define gtk_font_button_get_show_style _moo_gtk_font_button_get_show_style
|
||||
#define gtk_font_button_set_show_style _moo_gtk_font_button_set_show_style
|
||||
#define gtk_font_button_get_show_size _moo_gtk_font_button_get_show_size
|
||||
#define gtk_font_button_set_show_size _moo_gtk_font_button_set_show_size
|
||||
#endif
|
||||
#include "mooutils/newgtk/gtkfontbutton.h"
|
||||
#include "mooutils/newgtk/gtkcolorbutton.h"
|
||||
#endif /* !GTK_CHECK_VERSION(2,4,0) */
|
||||
@ -39,6 +76,9 @@ G_BEGIN_DECLS
|
||||
|
||||
#if !GLIB_CHECK_VERSION(2,4,0)
|
||||
|
||||
#ifdef __WIN32__
|
||||
#define g_signal_accumulator_true_handled _moo_g_signal_accumulator_true_handled
|
||||
#endif
|
||||
/* from gsignal.h */
|
||||
gboolean g_signal_accumulator_true_handled (GSignalInvocationHint *ihint,
|
||||
GValue *return_accu,
|
||||
@ -87,6 +127,10 @@ type_name##_get_type (void) \
|
||||
}
|
||||
#endif /* !G_DEFINE_TYPE */
|
||||
|
||||
#ifdef __WIN32__
|
||||
#define g_ptr_array_foreach _moo_g_ptr_array_foreach
|
||||
#define g_ptr_array_remove_range _moo_g_ptr_array_remove_range
|
||||
#endif
|
||||
void g_ptr_array_foreach (GPtrArray *array,
|
||||
GFunc func,
|
||||
gpointer user_data);
|
||||
@ -99,6 +143,9 @@ void g_ptr_array_remove_range (GPtrArray *array,
|
||||
|
||||
#if !GTK_CHECK_VERSION(2,4,0)
|
||||
|
||||
#ifdef __WIN32__
|
||||
#define gtk_text_buffer_select_range _moo_gtk_text_buffer_select_range
|
||||
#endif
|
||||
void gtk_text_buffer_select_range (GtkTextBuffer *buffer,
|
||||
const GtkTextIter *ins,
|
||||
const GtkTextIter *bound);
|
||||
@ -119,6 +166,18 @@ typedef pid_t GPid;
|
||||
|
||||
#if !GTK_CHECK_VERSION(2,6,0)
|
||||
|
||||
#ifdef __WIN32__
|
||||
#define gtk_target_list_add_text_targets _moo_gtk_target_list_add_text_targets
|
||||
#define gtk_accelerator_get_label _moo_gtk_accelerator_get_label
|
||||
#define gtk_label_new_with_markup _moo_gtk_label_new_with_markup
|
||||
#define gtk_label_set_angle _moo_gtk_label_set_angle
|
||||
#define gtk_dialog_set_alternative_button_order _moo_gtk_dialog_set_alternative_button_order
|
||||
#define gtk_drag_dest_add_text_targets _moo_gtk_drag_dest_add_text_targets
|
||||
#define gtk_drag_dest_add_uri_targets _moo_gtk_drag_dest_add_uri_targets
|
||||
#define gtk_selection_data_set_uris _moo_gtk_selection_data_set_uris
|
||||
#define gtk_selection_data_get_uris _moo_gtk_selection_data_get_uris
|
||||
#endif
|
||||
|
||||
void gtk_target_list_add_text_targets (GtkTargetList *list,
|
||||
guint info);
|
||||
|
||||
@ -148,6 +207,11 @@ gchar **gtk_selection_data_get_uris (GtkSelectionData *selection_data);
|
||||
|
||||
|
||||
#if !GLIB_CHECK_VERSION(2,6,0)
|
||||
#ifdef __WIN32__
|
||||
#define g_filename_display_basename _moo_g_filename_display_basename
|
||||
#define g_filename_display_name _moo_g_filename_display_name
|
||||
#define g_strv_length _moo_g_strv_length
|
||||
#endif
|
||||
gchar *g_filename_display_basename (const gchar *filename);
|
||||
gchar *g_filename_display_name (const gchar *filename);
|
||||
guint g_strv_length (gchar **str_array);
|
||||
|
Loading…
x
Reference in New Issue
Block a user