diff options
author | Fridrich Štrba <fridrich.strba@bluewin.ch> | 2011-01-11 16:13:34 +0100 |
---|---|---|
committer | Fridrich Štrba <fridrich.strba@bluewin.ch> | 2011-01-11 17:28:37 +0100 |
commit | a606ea62a156015a7a19bb93123ae19ef87e3076 (patch) | |
tree | b873c954670dbe47e3f578a6d029a1ce567476b7 /gtk | |
parent | 7e33c009a0aab41d86430f50972d3c59a4eb55a9 (diff) | |
download | gtk+-a606ea62a156015a7a19bb93123ae19ef87e3076.tar.gz |
Fix win32 build
Diffstat (limited to 'gtk')
-rw-r--r-- | gtk/Makefile.am | 4 | ||||
-rw-r--r-- | gtk/gtk.symbols | 2 | ||||
-rw-r--r-- | gtk/gtkappchooserbutton.c | 2 | ||||
-rw-r--r-- | gtk/gtkappchooserwidget.c | 2 | ||||
-rw-r--r-- | gtk/gtkmain.c | 9 | ||||
-rw-r--r-- | gtk/gtkmain.h | 2 |
6 files changed, 16 insertions, 5 deletions
diff --git a/gtk/Makefile.am b/gtk/Makefile.am index 148137bb6e..06b434b78a 100644 --- a/gtk/Makefile.am +++ b/gtk/Makefile.am @@ -894,10 +894,10 @@ libgtk_3_0_la_LIBADD = $(libadd) libgtk_3_0_la_DEPENDENCIES = $(deps) #libgtk_win32_3_0_la_LDFLAGS = $(libtool_opts) -Wl,-luuid -#libgtk_win32_3_0_la_LIBADD = $(libadd) -lole32 -lgdi32 -lcomdlg32 -lwinspool -lcomctl32 -#libgtk_win32_3_0_la_DEPENDENCIES = $(gtk_def) $(gtk_win32_res) $(deps) if USE_WIN32 +libgtk_3_0_la_LIBADD += -lole32 -lgdi32 -lcomdlg32 -lwinspool -lcomctl32 +libgtk_3_0_la_DEPENDENCIES += $(gtk_win32_res) $(deps) libgtk_target_ldflags = $(gtk_win32_res_ldflag) $(gtk_win32_symbols) endif diff --git a/gtk/gtk.symbols b/gtk/gtk.symbols index d3bec23c34..a8aa36e4d7 100644 --- a/gtk/gtk.symbols +++ b/gtk/gtk.symbols @@ -1335,7 +1335,7 @@ gtk_info_bar_set_message_type gtk_info_bar_set_response_sensitive gtk_init gtk_init_check -#ifdef GDK_WINDOWING_WIN32 +#ifdef G_OS_WIN32 gtk_init_abi_check gtk_init_check_abi_check #endif diff --git a/gtk/gtkappchooserbutton.c b/gtk/gtkappchooserbutton.c index 586c74dd9e..df00ae820d 100644 --- a/gtk/gtkappchooserbutton.c +++ b/gtk/gtkappchooserbutton.c @@ -271,7 +271,9 @@ gtk_app_chooser_button_populate (GtkAppChooserButton *self) GIcon *icon; gboolean cycled_recommended; +#ifndef G_OS_WIN32 recommended_apps = g_app_info_get_recommended_for_type (self->priv->content_type); +#endif cycled_recommended = FALSE; for (l = recommended_apps; l != NULL; l = l->next) diff --git a/gtk/gtkappchooserwidget.c b/gtk/gtkappchooserwidget.c index 487f921a1a..6d0c3fa3f3 100644 --- a/gtk/gtkappchooserwidget.c +++ b/gtk/gtkappchooserwidget.c @@ -722,6 +722,7 @@ gtk_app_chooser_widget_real_add_items (GtkAppChooserWidget *self) } } +#ifndef G_OS_WIN32 if (self->priv->show_recommended || self->priv->show_all) { recommended_apps = g_app_info_get_recommended_for_type (self->priv->content_type); @@ -748,6 +749,7 @@ gtk_app_chooser_widget_real_add_items (GtkAppChooserWidget *self) exclude_apps = g_list_concat (exclude_apps, g_list_copy (fallback_apps)); } +#endif if (self->priv->show_other || self->priv->show_all) { diff --git a/gtk/gtkmain.c b/gtk/gtkmain.c index 63376bfb1f..9a3b0314fa 100644 --- a/gtk/gtkmain.c +++ b/gtk/gtkmain.c @@ -1169,7 +1169,14 @@ gtk_init (int *argc, char ***argv) } } -#ifdef G_PLATFORM_WIN32 +#ifdef G_OS_WIN32 + +/* This is relevant when building with gcc for Windows (MinGW), + * where we want to be struct packing compatible with MSVC, + * i.e. use the -mms-bitfields switch. + * For Cygwin there should be no need to be compatible with MSVC, + * so no need to use G_PLATFORM_WIN32. + */ static void check_sizeof_GtkWindow (size_t sizeof_GtkWindow) diff --git a/gtk/gtkmain.h b/gtk/gtkmain.h index f015568384..99ce6d45ab 100644 --- a/gtk/gtkmain.h +++ b/gtk/gtkmain.h @@ -107,7 +107,7 @@ gboolean gtk_init_with_args (gint *argc, GOptionGroup *gtk_get_option_group (gboolean open_default_display); -#ifdef G_PLATFORM_WIN32 +#ifdef G_OS_WIN32 /* Variants that are used to check for correct struct packing * when building GTK+-using code. |