diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml
index b324fdb..978bf76 100644
--- a/.github/workflows/build.yml
+++ b/.github/workflows/build.yml
@@ -9,7 +9,7 @@ jobs:
github.event_name == 'push' ||
github.event.pull_request.head.repo.full_name != github.event.pull_request.base.repo.full_name
- runs-on: macos-11
+ runs-on: macos-12
steps:
- uses: actions/checkout@v4
with:
diff --git a/fetch_modules.sh b/fetch_modules.sh
index cd20eff..1383a8a 100755
--- a/fetch_modules.sh
+++ b/fetch_modules.sh
@@ -1,6 +1,6 @@
#!/bin/sh
-source pins.sh
+source ./pins.sh
git clone https://gitlab.gnome.org/GNOME/gtk-osx.git _gtk-osx-modules
(cd _gtk-osx-modules && git checkout $PIN_GTK_OSX_COMMIT)
diff --git a/modulesets/bootstrap.modules b/modulesets/bootstrap.modules
index 59f5796..562a3d2 100644
--- a/modulesets/bootstrap.modules
+++ b/modulesets/bootstrap.modules
@@ -10,8 +10,8 @@
-
-
+
+
+
+
+
+
+
+
+
+
-
+
+
+
+
-
-
-
+
+
+
+
+
-
-
-
+
+
+
+
+
+
+
+
+
-
diff --git a/modulesets/gtk-osx-gstreamer.modules b/modulesets/gtk-osx-gstreamer.modules
index e64cc05..6e0ea8c 100644
--- a/modulesets/gtk-osx-gstreamer.modules
+++ b/modulesets/gtk-osx-gstreamer.modules
@@ -11,43 +11,29 @@
default="yes"
href="http://gstreamer.freedesktop.org/src/"
type="tarball" />
-
-
-
+
-
-
-
-
-
-
-
+
-
@@ -65,9 +51,9 @@
-
+
@@ -76,9 +62,9 @@
-
+
@@ -86,9 +72,9 @@
-
+
@@ -97,9 +83,9 @@
-
+
@@ -107,9 +93,9 @@
-
+
@@ -119,9 +105,9 @@
-
+
@@ -130,6 +116,17 @@
+
+
+
+
+
+
+
+
+
@@ -138,6 +135,7 @@
+
diff --git a/modulesets/gtk-osx-gtkmm.modules b/modulesets/gtk-osx-gtkmm.modules
index 6e45743..dc234b2 100644
--- a/modulesets/gtk-osx-gtkmm.modules
+++ b/modulesets/gtk-osx-gtkmm.modules
@@ -19,9 +19,9 @@
type="tarball" />
-
+ hash="sha256:b55c46037dbcdabc5cee3b389ea11cc3910adb68ebe883e9477847aa660862e7" />
-
@@ -40,9 +40,9 @@
-
@@ -50,9 +50,9 @@
-
+
@@ -61,9 +61,9 @@
-
+
@@ -75,7 +75,9 @@
+ hash="sha256:1b24c92624ae1275ccb57758175d35f7c39ad3342d8c0b4ba60f0d9849d2d08a" >
+
+
@@ -84,9 +86,9 @@
-
+
@@ -95,9 +97,9 @@
-
+
@@ -107,9 +109,9 @@
-
+
@@ -119,21 +121,21 @@
-
+
-
+
-
+
@@ -148,9 +150,9 @@
-
+
diff --git a/modulesets/gtk-osx-javascript.modules b/modulesets/gtk-osx-javascript.modules
deleted file mode 100644
index 4c8a26d..0000000
--- a/modulesets/gtk-osx-javascript.modules
+++ /dev/null
@@ -1,79 +0,0 @@
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
diff --git a/modulesets/gtk-osx-network.modules b/modulesets/gtk-osx-network.modules
index d007133..7bea8b9 100644
--- a/modulesets/gtk-osx-network.modules
+++ b/modulesets/gtk-osx-network.modules
@@ -9,10 +9,7 @@
-->
-
-
+
@@ -97,9 +96,9 @@
-
@@ -107,8 +106,8 @@
autogen-sh="configure"
autogenargs="--without-trust-paths">
@@ -123,9 +122,9 @@
autogen-sh="autoreconf"
autogenargs="--disable-doc --with-included-unistring">
-
@@ -144,20 +143,18 @@
-
-
-
@@ -167,8 +164,8 @@
+ version="0.21.4"
+ hash="sha256:163d08d783be6d4ab9a979ceb5a4fecbc1d9660d3c34168c581301cd53912b20" />
@@ -176,9 +173,9 @@
-
+
@@ -189,9 +186,9 @@
-
+
@@ -199,18 +196,18 @@
-
+
-
@@ -219,9 +216,9 @@
-
+
@@ -231,9 +228,9 @@
-
@@ -249,31 +246,41 @@
-
+
+
+
+
+
+
+
+
-
+
+
-
-
diff --git a/modulesets/gtk-osx-python.modules b/modulesets/gtk-osx-python.modules
index 0290bf0..af5117a 100644
--- a/modulesets/gtk-osx-python.modules
+++ b/modulesets/gtk-osx-python.modules
@@ -43,9 +43,9 @@
-
@@ -54,12 +54,15 @@
-->
+
+
+
-
@@ -69,9 +72,9 @@
-
+
@@ -96,9 +99,10 @@
-
+
diff --git a/modulesets/gtk-osx-random.modules b/modulesets/gtk-osx-random.modules
index a8f8625..fbaa2e7 100644
--- a/modulesets/gtk-osx-random.modules
+++ b/modulesets/gtk-osx-random.modules
@@ -21,47 +21,41 @@
href="https://gitlab.freedesktop.org/xdg/shared-mime-info/-/archive/"
type="tarball" />
+ href="https://salsa.debian.org/iso-codes-team/"
+ type="git" />
-
-
-
-
+
-
+
-
+
-
+
@@ -71,9 +65,9 @@
-
@@ -89,12 +83,10 @@
-
-
@@ -149,9 +141,9 @@
-
+
@@ -159,58 +151,32 @@
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
+
+ https://www.sqlite.org/
-
-
-
@@ -297,12 +262,11 @@
hash="sha256:3feb7171f16a84ee82ca18a36d7b9be109a52c04f492a053331d7d1095007c35"
repo="ftp.gnu.org" />
-
+
-
@@ -310,11 +274,10 @@
autogen-sh="autoreconf"
autogenargs='--libdir="$JHBUILD_LIBDIR" --with-python'>
-
-
-
+
@@ -324,9 +287,9 @@
-
+
diff --git a/modulesets/gtk-osx.modules b/modulesets/gtk-osx.modules
index 1ee5859..25d58a9 100644
--- a/modulesets/gtk-osx.modules
+++ b/modulesets/gtk-osx.modules
@@ -55,8 +55,6 @@
- gtk-osx-python.modules: Python bindings for Gtk.
- gtk-osx-gtkmm.modules: C++ wrappers for Gtk.
- - gtk-osx-javascript.modules: GJS and its Mozilla JS (aka
- spidermonkey) dependency.
- gtk-osx-gstreamer.modules: GStreamer library and modules.
- gtk-osx-network.modules: The network/crypto stack and WebKit.
- gtk-osx-random.modules: "random stuff", has apps for testing GTK+.
@@ -69,7 +67,6 @@
-
@@ -95,9 +92,9 @@
autogen-sh="configure"
autogenargs="--disable-multi-os-directory --disable-docs">
-
@@ -105,26 +102,32 @@
autogen-sh="configure"
autogenargs="--enable-pcre2-16 --enable-pcre2-32 --enable-jit">
-
-
-
-
-
-
+
+
+
+
+
+
+
+
+
+ mesonargs="-Dcoretext=enabled -Dfreetype=enabled -Ddocs=disabled -Dbenchmark=disabled -Dintrospection=disabled -Dtests=disabled">
-
-
+
@@ -174,9 +176,9 @@
-
@@ -184,24 +186,23 @@
-
+
-
-
+
-
@@ -212,11 +213,11 @@
freetype it insists that it has to have fontconfig too and that
they are both built into cairo.
-->
-
-
+
+
@@ -226,12 +227,12 @@
-
+
-
+
@@ -241,10 +242,9 @@
-
-
@@ -255,9 +255,9 @@
-
-
+
+
@@ -297,9 +298,9 @@
-
+
@@ -316,31 +317,21 @@
repo="hicolor" />
-
-
-
-
-
-
+
@@ -358,38 +349,26 @@
-
+ hash="a37bb0e78a419dcbeaa9c7027bcff52f5ec2367c25ec859da31dfde2928f279a"
+ repo="download.gnome.org" />
-
-
-
-
-
-
+
-
@@ -412,9 +391,9 @@
-
+
@@ -422,24 +401,16 @@
-
-
-
-
-
-
-
+
+
-
+
diff --git a/modulesets/patches/0001-Add-G_GNUC_PRINTF-on-all-functions-with-format-strin.patch b/modulesets/patches/0001-Add-G_GNUC_PRINTF-on-all-functions-with-format-strin.patch
deleted file mode 100644
index 1072b09..0000000
--- a/modulesets/patches/0001-Add-G_GNUC_PRINTF-on-all-functions-with-format-strin.patch
+++ /dev/null
@@ -1,387 +0,0 @@
-From 0955160e15ec303d4d3f6a56bd424c68a41b0a54 Mon Sep 17 00:00:00 2001
-From: Henrique Dante de Almeida
-Date: Sun, 13 Jan 2013 14:05:14 -0200
-Subject: [PATCH] Add G_GNUC_PRINTF on all functions with format strings
-
-This allows compilation with clang wihtout errors, even
-when -Wformat-nonliteral is active (as long as there are
-no real cases of non literal formatting).
-
-https://bugzilla.gnome.org/show_bug.cgi?id=691608
----
- gio/gdbusauth.c | 1 +
- gio/gdbusauthmechanismsha1.c | 1 +
- gio/gdbusdaemon.c | 1 +
- gio/gdbuserror.h | 4 ++--
- gio/gdbusmessage.c | 1 +
- gio/gdbusmethodinvocation.h | 5 +++--
- gio/gsimpleasyncresult.h | 5 +++--
- gio/gtask.h | 2 +-
- glib/gerror.c | 1 +
- glib/gerror.h | 2 +-
- glib/gmarkup.c | 2 ++
- glib/gmarkup.h | 2 +-
- glib/gmessages.h | 4 ++--
- glib/gprintf.h | 8 ++++----
- glib/gstrfuncs.h | 3 ++-
- glib/gstring.h | 6 ++++--
- glib/gutils.h | 3 ++-
- glib/gvariant-parser.c | 4 ++++
- glib/tests/markup-escape.c | 1 +
- glib/tests/string.c | 1 +
- glib/tests/test-printf.c | 1 +
- 21 files changed, 39 insertions(+), 19 deletions(-)
-
-diff --git a/gio/gdbusauth.c b/gio/gdbusauth.c
-index 962a218..dd4cc2c 100644
---- a/gio/gdbusauth.c
-+++ b/gio/gdbusauth.c
-@@ -46,6 +46,7 @@
-
- #include "glibintl.h"
-
-+G_GNUC_PRINTF(1, 2)
- static void
- debug_print (const gchar *message, ...)
- {
-diff --git a/gio/gdbusauthmechanismsha1.c b/gio/gdbusauthmechanismsha1.c
-index 4729208..5e8b6c0 100644
---- a/gio/gdbusauthmechanismsha1.c
-+++ b/gio/gdbusauthmechanismsha1.c
-@@ -469,6 +469,7 @@ keyring_lookup_entry (const gchar *cookie_context,
- }
-
- /* function for logging important events that the system administrator should take notice of */
-+G_GNUC_PRINTF(1, 2)
- static void
- _log (const gchar *message,
- ...)
-diff --git a/gio/gdbusdaemon.c b/gio/gdbusdaemon.c
-index 35a724c..2393771 100644
---- a/gio/gdbusdaemon.c
-+++ b/gio/gdbusdaemon.c
-@@ -1346,6 +1346,7 @@ handle_start_service_by_name (_GFreedesktopDBus *object,
- return TRUE;
- }
-
-+G_GNUC_PRINTF(5, 6)
- static void
- return_error (Client *client, GDBusMessage *message,
- GQuark domain,
-diff --git a/gio/gdbuserror.h b/gio/gdbuserror.h
-index d32b928..c1d3e9c 100644
---- a/gio/gdbuserror.h
-+++ b/gio/gdbuserror.h
-@@ -87,12 +87,12 @@ void g_dbus_error_set_dbus_error (GError **error,
- const gchar *dbus_error_name,
- const gchar *dbus_error_message,
- const gchar *format,
-- ...);
-+ ...) G_GNUC_PRINTF(4, 5);
- void g_dbus_error_set_dbus_error_valist (GError **error,
- const gchar *dbus_error_name,
- const gchar *dbus_error_message,
- const gchar *format,
-- va_list var_args);
-+ va_list var_args) G_GNUC_PRINTF(4, 0);
- gchar *g_dbus_error_encode_gerror (const GError *error);
-
- G_END_DECLS
-diff --git a/gio/gdbusmessage.c b/gio/gdbusmessage.c
-index ecbc033..9181029 100644
---- a/gio/gdbusmessage.c
-+++ b/gio/gdbusmessage.c
-@@ -827,6 +827,7 @@ g_dbus_message_new_method_error_literal (GDBusMessage *method_call_message,
- *
- * Since: 2.26
- */
-+G_GNUC_PRINTF(3, 0)
- GDBusMessage *
- g_dbus_message_new_method_error_valist (GDBusMessage *method_call_message,
- const gchar *error_name,
-diff --git a/gio/gdbusmethodinvocation.h b/gio/gdbusmethodinvocation.h
-index 9146b21..29cfe63 100644
---- a/gio/gdbusmethodinvocation.h
-+++ b/gio/gdbusmethodinvocation.h
-@@ -55,12 +55,13 @@ void g_dbus_method_invocation_return_error (GDBusMetho
- GQuark domain,
- gint code,
- const gchar *format,
-- ...);
-+ ...) G_GNUC_PRINTF(4, 5);
- void g_dbus_method_invocation_return_error_valist (GDBusMethodInvocation *invocation,
- GQuark domain,
- gint code,
- const gchar *format,
-- va_list var_args);
-+ va_list var_args)
-+ G_GNUC_PRINTF(4, 0);
- void g_dbus_method_invocation_return_error_literal (GDBusMethodInvocation *invocation,
- GQuark domain,
- gint code,
-diff --git a/gio/gsimpleasyncresult.h b/gio/gsimpleasyncresult.h
-index 6233369..1ea98f4 100644
---- a/gio/gsimpleasyncresult.h
-+++ b/gio/gsimpleasyncresult.h
-@@ -110,7 +110,8 @@ void g_simple_async_result_set_error_va (GSimpleAsyncResult
- GQuark domain,
- gint code,
- const char *format,
-- va_list args);
-+ va_list args)
-+ G_GNUC_PRINTF(4, 0);
- gboolean g_simple_async_result_is_valid (GAsyncResult *result,
- GObject *source,
- gpointer source_tag);
-@@ -121,7 +122,7 @@ void g_simple_async_report_error_in_idle (GObject *object,
- GQuark domain,
- gint code,
- const char *format,
-- ...);
-+ ...) G_GNUC_PRINTF(6, 7);
- void g_simple_async_report_gerror_in_idle (GObject *object,
- GAsyncReadyCallback callback,
- gpointer user_data,
-diff --git a/gio/gtask.h b/gio/gtask.h
-index bb03226..d5a2d77 100644
---- a/gio/gtask.h
-+++ b/gio/gtask.h
-@@ -61,7 +61,7 @@ void g_task_report_new_error (gpointer source_object,
- GQuark domain,
- gint code,
- const char *format,
-- ...);
-+ ...) G_GNUC_PRINTF(7, 8);
-
- GLIB_AVAILABLE_IN_2_36
- void g_task_set_task_data (GTask *task,
-diff --git a/glib/gerror.c b/glib/gerror.c
-index e6ce3c0..2adbdf8 100644
---- a/glib/gerror.c
-+++ b/glib/gerror.c
-@@ -645,6 +645,7 @@ g_clear_error (GError **err)
- }
- }
-
-+G_GNUC_PRINTF(2, 0)
- static void
- g_error_add_prefix (gchar **string,
- const gchar *format,
-diff --git a/glib/gerror.h b/glib/gerror.h
-index f9020d6..8b5de28 100644
---- a/glib/gerror.h
-+++ b/glib/gerror.h
-@@ -60,7 +60,7 @@ GError* g_error_new_literal (GQuark domain,
- GError* g_error_new_valist (GQuark domain,
- gint code,
- const gchar *format,
-- va_list args);
-+ va_list args) G_GNUC_PRINTF(3, 0);
-
- void g_error_free (GError *error);
- GError* g_error_copy (const GError *error);
-diff --git a/glib/gmarkup.c b/glib/gmarkup.c
-index 11f68de..bf7c008 100644
---- a/glib/gmarkup.c
-+++ b/glib/gmarkup.c
-@@ -403,6 +403,7 @@ set_error_literal (GMarkupParseContext *context,
- g_propagate_error (error, tmp_error);
- }
-
-+G_GNUC_PRINTF(4, 5)
- static void
- set_error (GMarkupParseContext *context,
- GError **error,
-@@ -564,6 +565,7 @@ utf8_str (const gchar *utf8,
- return buf;
- }
-
-+G_GNUC_PRINTF(5, 6)
- static void
- set_unescape_error (GMarkupParseContext *context,
- GError **error,
-diff --git a/glib/gmarkup.h b/glib/gmarkup.h
-index d26c2ad..d0eda4f 100644
---- a/glib/gmarkup.h
-+++ b/glib/gmarkup.h
-@@ -214,7 +214,7 @@ gchar* g_markup_escape_text (const gchar *text,
- gchar *g_markup_printf_escaped (const char *format,
- ...) G_GNUC_PRINTF (1, 2);
- gchar *g_markup_vprintf_escaped (const char *format,
-- va_list args);
-+ va_list args) G_GNUC_PRINTF(1, 0);
-
- typedef enum
- {
-diff --git a/glib/gmessages.h b/glib/gmessages.h
-index 777cda2..d0c1930 100644
---- a/glib/gmessages.h
-+++ b/glib/gmessages.h
-@@ -46,7 +46,7 @@ G_BEGIN_DECLS
- /* calculate a string size, guaranteed to fit format + args.
- */
- gsize g_printf_string_upper_bound (const gchar* format,
-- va_list args);
-+ va_list args) G_GNUC_PRINTF(1, 0);
-
- /* Log level shift offset for user defined
- * log levels (0-7 are used by GLib).
-@@ -101,7 +101,7 @@ void g_log (const gchar *log_domain,
- void g_logv (const gchar *log_domain,
- GLogLevelFlags log_level,
- const gchar *format,
-- va_list args);
-+ va_list args) G_GNUC_PRINTF(3, 0);
- GLogLevelFlags g_log_set_fatal_mask (const gchar *log_domain,
- GLogLevelFlags fatal_mask);
- GLogLevelFlags g_log_set_always_fatal (GLogLevelFlags fatal_mask);
-diff --git a/glib/gprintf.h b/glib/gprintf.h
-index d96870f..2ed5ecc 100644
---- a/glib/gprintf.h
-+++ b/glib/gprintf.h
-@@ -36,16 +36,16 @@ gint g_sprintf (gchar *string,
- ...) G_GNUC_PRINTF (2, 3);
-
- gint g_vprintf (gchar const *format,
-- va_list args);
-+ va_list args) G_GNUC_PRINTF(1, 0);
- gint g_vfprintf (FILE *file,
- gchar const *format,
-- va_list args);
-+ va_list args) G_GNUC_PRINTF(2, 0);
- gint g_vsprintf (gchar *string,
- gchar const *format,
-- va_list args);
-+ va_list args) G_GNUC_PRINTF(2, 0);
- gint g_vasprintf (gchar **string,
- gchar const *format,
-- va_list args);
-+ va_list args) G_GNUC_PRINTF(2, 0);
-
- G_END_DECLS
-
-diff --git a/glib/gstrfuncs.h b/glib/gstrfuncs.h
-index 3142485..e0752d3 100644
---- a/glib/gstrfuncs.h
-+++ b/glib/gstrfuncs.h
-@@ -188,7 +188,8 @@ gchar* g_strdup (const gchar *str) G_GNUC_MALLOC;
- gchar* g_strdup_printf (const gchar *format,
- ...) G_GNUC_PRINTF (1, 2) G_GNUC_MALLOC;
- gchar* g_strdup_vprintf (const gchar *format,
-- va_list args) G_GNUC_MALLOC;
-+ va_list args) G_GNUC_PRINTF(1, 0)
-+ G_GNUC_MALLOC;
- gchar* g_strndup (const gchar *str,
- gsize n) G_GNUC_MALLOC;
- gchar* g_strnfill (gsize length,
-diff --git a/glib/gstring.h b/glib/gstring.h
-index a97aa4e..c6a11ae 100644
---- a/glib/gstring.h
-+++ b/glib/gstring.h
-@@ -109,13 +109,15 @@ GString* g_string_ascii_down (GString *string);
- GString* g_string_ascii_up (GString *string);
- void g_string_vprintf (GString *string,
- const gchar *format,
-- va_list args);
-+ va_list args)
-+ G_GNUC_PRINTF(2, 0);
- void g_string_printf (GString *string,
- const gchar *format,
- ...) G_GNUC_PRINTF (2, 3);
- void g_string_append_vprintf (GString *string,
- const gchar *format,
-- va_list args);
-+ va_list args)
-+ G_GNUC_PRINTF(2, 0);
- void g_string_append_printf (GString *string,
- const gchar *format,
- ...) G_GNUC_PRINTF (2, 3);
-diff --git a/glib/gutils.h b/glib/gutils.h
-index 8102f53..6c21bf7 100644
---- a/glib/gutils.h
-+++ b/glib/gutils.h
-@@ -187,7 +187,8 @@ gint g_snprintf (gchar *string,
- gint g_vsnprintf (gchar *string,
- gulong n,
- gchar const *format,
-- va_list args);
-+ va_list args)
-+ G_GNUC_PRINTF(3, 0);
-
- void g_nullify_pointer (gpointer *nullify_location);
-
-diff --git a/glib/gvariant-parser.c b/glib/gvariant-parser.c
-index e2e85ab..d5c036a 100644
---- a/glib/gvariant-parser.c
-+++ b/glib/gvariant-parser.c
-@@ -78,6 +78,7 @@ typedef struct
- gint start, end;
- } SourceRef;
-
-+G_GNUC_PRINTF(5, 0)
- static void
- parser_set_error_va (GError **error,
- SourceRef *location,
-@@ -105,6 +106,7 @@ parser_set_error_va (GError **error,
- g_string_free (msg, TRUE);
- }
-
-+G_GNUC_PRINTF(5, 6)
- static void
- parser_set_error (GError **error,
- SourceRef *location,
-@@ -130,6 +132,7 @@ typedef struct
- } TokenStream;
-
-
-+G_GNUC_PRINTF(5, 6)
- static void
- token_stream_set_error (TokenStream *stream,
- GError **error,
-@@ -525,6 +528,7 @@ ast_free (AST *ast)
- ast->class->free (ast);
- }
-
-+G_GNUC_PRINTF(5, 6)
- static void
- ast_set_error (AST *ast,
- GError **error,
-diff --git a/glib/tests/markup-escape.c b/glib/tests/markup-escape.c
-index 0cd90ef..b2de289 100644
---- a/glib/tests/markup-escape.c
-+++ b/glib/tests/markup-escape.c
-@@ -96,6 +96,7 @@ unichar_test (gconstpointer d)
- escape_test (&t);
- }
-
-+G_GNUC_PRINTF(1, 3)
- static void
- test_format (const gchar *format,
- const gchar *expected,
-diff --git a/glib/tests/string.c b/glib/tests/string.c
-index 454574b..ba55d3d 100644
---- a/glib/tests/string.c
-+++ b/glib/tests/string.c
-@@ -106,6 +106,7 @@ test_string_new (void)
- g_string_free (string2, TRUE);
- }
-
-+G_GNUC_PRINTF(2, 3)
- static void
- my_string_printf (GString *string,
- const gchar *format,
-diff --git a/glib/tests/test-printf.c b/glib/tests/test-printf.c
-index 10d0a1d..dbfc8fc 100644
---- a/glib/tests/test-printf.c
-+++ b/glib/tests/test-printf.c
-@@ -942,6 +942,7 @@ _Pragma ("GCC diagnostic pop")
- #endif
- }
-
-+G_GNUC_PRINTF(1, 2)
- static gsize
- upper_bound (const gchar *format, ...)
- {
---
-1.7.10.4
-
diff --git a/modulesets/patches/0001-Bug-571582-GtkSelection-implementation-for-quartz.patch b/modulesets/patches/0001-Bug-571582-GtkSelection-implementation-for-quartz.patch
deleted file mode 100644
index 5a2293e..0000000
--- a/modulesets/patches/0001-Bug-571582-GtkSelection-implementation-for-quartz.patch
+++ /dev/null
@@ -1,875 +0,0 @@
-From 7385087cae85e14bce61f8effba0f04aab070592 Mon Sep 17 00:00:00 2001
-From: John Ralls
-Date: Sun, 11 Sep 2011 16:08:22 -0700
-Subject: [PATCH] Bug 571582: GtkSelection implementation for quartz.
-
----
- gdk/quartz/gdkselection-quartz.c | 22 +-
- gtk/Makefile.am | 4 +-
- gtk/gtkselection-quartz.c | 674 ++++++++++++++++++++++++++++++++++++++
- gtk/gtkselection.c | 14 +-
- 4 files changed, 701 insertions(+), 13 deletions(-)
- create mode 100644 gtk/gtkselection-quartz.c
-
-diff --git a/gdk/quartz/gdkselection-quartz.c b/gdk/quartz/gdkselection-quartz.c
-index 3accf32..f6048c8 100644
---- a/gdk/quartz/gdkselection-quartz.c
-+++ b/gdk/quartz/gdkselection-quartz.c
-@@ -32,7 +32,8 @@ _gdk_quartz_display_set_selection_owner (GdkDisplay *display,
- guint32 time,
- gint send_event)
- {
-- /* FIXME: Implement */
-+ g_warning ("Not a valid interface on Quartz. Use GtkSelection.\n");
-+ g_return_val_if_reached(TRUE);
- return TRUE;
- }
-
-@@ -40,7 +41,7 @@ GdkWindow*
- _gdk_quartz_display_get_selection_owner (GdkDisplay *display,
- GdkAtom selection)
- {
-- /* FIXME: Implement */
-+ /* Quartz doesn't have an X-selection, so it doesn't have a gdk_selection. */
- return NULL;
- }
-
-@@ -51,7 +52,9 @@ _gdk_quartz_display_convert_selection (GdkDisplay *display,
- GdkAtom target,
- guint32 time)
- {
-- /* FIXME: Implement */
-+ g_warning ("Not a valid interface on Quartz. Use GtkSelection.\n");
-+ g_return_if_reached();
-+
- }
-
- gint
-@@ -61,7 +64,8 @@ _gdk_quartz_display_get_selection_property (GdkDisplay *display,
- GdkAtom *ret_type,
- gint *ret_format)
- {
-- /* FIXME: Implement */
-+ g_warning ("Quartz windows do not support properties.\n");
-+ g_return_val_if_reached (-1);
- return 0;
- }
-
-@@ -69,8 +73,8 @@ gchar *
- _gdk_quartz_display_utf8_to_string_target (GdkDisplay *display,
- const gchar *str)
- {
-- /* FIXME: Implement */
-- return NULL;
-+ /* UTF8 is the standard string on OSX */
-+ return g_strdup (str);
- }
-
- static gint
-@@ -90,7 +94,7 @@ make_list (const gchar *text,
- while (p < text + length)
- {
- gchar *str;
--
-+
- q = p;
- while (*q && q < text + length)
- q++;
-@@ -123,6 +127,8 @@ make_list (const gchar *text,
- if (list)
- *list = g_new0 (gchar *, n_strings + 1);
-
-+ (*list)[n_strings] = NULL;
-+
- i = n_strings;
- tmp_list = strings;
- while (tmp_list)
-@@ -163,7 +169,7 @@ _gdk_quartz_display_text_property_to_utf8_list (GdkDisplay *display,
- {
- gchar *enc_name = gdk_atom_name (encoding);
-
-- g_warning ("gdk_text_property_to_utf8_list_for_display: encoding %s not handled\n", enc_name);
-+ g_warning ("gdk_text_property_to_utf8_list: encoding %s not handled\n", enc_name);
- g_free (enc_name);
-
- if (list)
-diff --git a/gtk/Makefile.am b/gtk/Makefile.am
-index 55d7f22..de81d57 100644
---- a/gtk/Makefile.am
-+++ b/gtk/Makefile.am
-@@ -798,7 +798,9 @@ if USE_QUARTZ
- gtk_clipboard_dnd_c_sources = \
- gtkclipboard-quartz.c \
- gtkdnd-quartz.c \
-- gtkquartz.c
-+ gtkquartz.c \
-+ gtkselection-quartz.c
-+
- gtk_clipboard_dnd_h_sources = gtkquartz.h
- else
- gtk_clipboard_dnd_c_sources = gtkclipboard.c gtkdnd.c
-diff --git a/gtk/gtkselection-quartz.c b/gtk/gtkselection-quartz.c
-new file mode 100644
-index 0000000..1e948ad
---- /dev/null
-+++ b/gtk/gtkselection-quartz.c
-@@ -0,0 +1,674 @@
-+/* GTK - The GIMP Toolkit
-+ * Copyright (C) 1995-1997 Peter Mattis, Spencer Kimball and Josh MacDonald
-+ *
-+ * This library is free software; you can redistribute it and/or
-+ * modify it under the terms of the GNU Lesser General Public
-+ * License as published by the Free Software Foundation; either
-+ * version 2 of the License, or (at your option) any later version.
-+ *
-+ * This library is distributed in the hope that it will be useful,
-+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
-+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
-+ * Lesser General Public License for more details.
-+ *
-+ * You should have received a copy of the GNU Lesser General Public
-+ * License along with this library; if not, write to the
-+ * Free Software Foundation, Inc., 59 Temple Place - Suite 330,
-+ * Boston, MA 02111-1307, USA.
-+ */
-+
-+/* This file implements most of the work of the ICCCM selection protocol.
-+ * The code was written after an intensive study of the equivalent part
-+ * of John Ousterhout's Tk toolkit, and does many things in much the
-+ * same way.
-+ *
-+ * The one thing in the ICCCM that isn't fully supported here (or in Tk)
-+ * is side effects targets. For these to be handled properly, MULTIPLE
-+ * targets need to be done in the order specified. This cannot be
-+ * guaranteed with the way we do things, since if we are doing INCR
-+ * transfers, the order will depend on the timing of the requestor.
-+ *
-+ * By Owen Taylor 8/16/97
-+ */
-+
-+/* Terminology note: when not otherwise specified, the term "incr" below
-+ * refers to the _sending_ part of the INCR protocol. The receiving
-+ * portion is referred to just as "retrieval". (Terminology borrowed
-+ * from Tk, because there is no good opposite to "retrieval" in English.
-+ * "send" can't be made into a noun gracefully and we're already using
-+ * "emission" for something else ....)
-+ */
-+
-+/* The MOTIF entry widget seems to ask for the TARGETS target, then
-+ (regardless of the reply) ask for the TEXT target. It's slightly
-+ possible though that it somehow thinks we are responding negatively
-+ to the TARGETS request, though I don't really think so ... */
-+
-+/*
-+ * Modified by the GTK+ Team and others 1997-2000. See the AUTHORS
-+ * file for a list of people on the GTK+ Team. See the ChangeLog
-+ * files for a list of changes. These files are distributed with
-+ * GTK+ at ftp://ftp.gtk.org/pub/gtk/.
-+ */
-+
-+#include "config.h"
-+#include
-+#include
-+#include "gdk.h"
-+
-+#include "gtkmain.h"
-+#include "gtkselection.h"
-+#include "gtkselectionprivate.h"
-+#include "gtktextbufferrichtext.h"
-+#include "gtkintl.h"
-+#include "gdk-pixbuf/gdk-pixbuf.h"
-+#include "gtkclipboard.h"
-+
-+#import
-+
-+#undef DEBUG_SELECTION
-+/*
-+ * DON'T USE THIS INTERFACE: USE GTKCLIPBOARD INSTEAD!
-+ *
-+ * This is the Quartz version of gtkselection. Unlike the other
-+ * versions, it was written in 2010, after most code was rewritten to
-+ * use GtkClipboard. Quartz, unlike X11, is not a remote-capable
-+ * display system, so most of ICCCM is pointless. This implementation
-+ * can therefore be much simpler than the X11 implementation. Text is
-+ * a lot simpler, too. It's UTF8. No compound text, no legacy
-+ * charsets. There's also only one display, so instead of passing it
-+ * around, we'll generally just use gdk_display_get_default() when we
-+ * need it.
-+ *
-+ * There are two constraints: The existing code in various GtkWidgets
-+ * which uses GDK_SELECTION_CLIPBOARD (which gtkclipboard-quartz sets
-+ * to generalPasteboard) for c copies and GDK_SELECTION_PRIMARY
-+ * (for which gtkclipboard-quartz creates a separate pasteboard) for
-+ * X-style selection transfers, and Apple's X11 Quartz implementation
-+ * which by default puts both on the generalPasteboard. We need to
-+ * operate with both.
-+ *
-+ * IMPORTANT: There is no X11 magic in quartz. If you insist on using
-+ * this interface (and you really shouldn't), your MUST connect to
-+ * selection-get, selection-received, and selection-clear-event for
-+ * your widget.
-+ */
-+
-+/* Maximum size of a sent chunk, in bytes. Also the default size of
-+ our buffers */
-+
-+
-+#define IDLE_ABORT_TIME 30
-+
-+enum {
-+ INCR,
-+ MULTIPLE,
-+ TARGETS,
-+ TIMESTAMP,
-+ SAVE_TARGETS,
-+ LAST_ATOM
-+};
-+
-+typedef struct _GtkSelectionInfo GtkSelectionInfo;
-+
-+struct _GtkSelectionInfo
-+{
-+ GdkAtom selection;
-+ GtkWidget *owner; /* widget that owns selection */
-+ guint32 time; /* time used to acquire selection */
-+};
-+
-+
-+/* Local Functions */
-+static void gtk_selection_get_cb (GtkClipboard *clipboard,
-+ GtkSelectionData *data,
-+ guint info,
-+ gpointer widget);
-+static void gtk_selection_clear_cb (GtkClipboard *clipboard,
-+ gpointer widget);
-+static void gtk_selection_default_handler (GtkWidget *widget,
-+ GtkSelectionData *data);
-+static int gtk_selection_bytes_per_item (gint format);
-+static GtkSelectionInfo *gtk_selection_info_get (GdkAtom selection);
-+static void gtk_selection_info_remove (GdkAtom selection,
-+ GtkWidget *owner);
-+static void gtk_selection_info_append (GdkAtom selection,
-+ GtkWidget *owner,
-+ guint32 time);
-+static void gtk_selection_info_clear (GtkWidget *owner);
-+static GtkTargetList *gtk_selection_target_list_get (GtkWidget *widget,
-+ GdkAtom selection);
-+static void gtk_selection_target_list_remove (GtkWidget *widget);
-+
-+/* Local Data */
-+static gint initialize = TRUE;
-+static GList *current_selections = NULL;
-+
-+static GdkAtom gtk_selection_atoms[LAST_ATOM];
-+static const char gtk_selection_handler_key[] = "gtk-selection-handlers";
-+
-+static GtkTargetEntry default_target = {"UTF8_STRING", 0, 1};
-+
-+/**
-+ * gtk_selection_owner_set_for_display:
-+ * @display: the #Gdkdisplay where the selection is set
-+ * @widget: (allow-none): new selection owner (a #GdkWidget), or %NULL.
-+ * @selection: an interned atom representing the selection to claim.
-+ * @time_: timestamp with which to claim the selection
-+ *
-+ * Claim ownership of a given selection for a particular widget, or,
-+ * if @widget is %NULL, release ownership of the selection.
-+ *
-+ * Return value: TRUE if the operation succeeded
-+ *
-+ * Since: 2.2
-+ */
-+gboolean
-+gtk_selection_owner_set_for_display (GdkDisplay *display,
-+ GtkWidget *widget,
-+ GdkAtom selection,
-+ guint32 time)
-+{
-+ GObject *old_owner;
-+ GtkClipboard *clip = gtk_clipboard_get (selection);
-+ GtkTargetEntry *targets = &default_target;
-+ gint num_targets = 1;
-+ GtkTargetList *tlist;
-+
-+ g_return_val_if_fail (GDK_IS_DISPLAY (display), FALSE);
-+ g_return_val_if_fail (selection != GDK_NONE, FALSE);
-+
-+ old_owner = gtk_clipboard_get_owner (clip);
-+ if (old_owner)
-+ gtk_selection_info_remove (selection, GTK_WIDGET(old_owner));
-+
-+ if (widget == NULL)
-+ return TRUE;
-+
-+ g_return_val_if_fail (gtk_widget_get_display (widget) == display, FALSE);
-+
-+ if ((tlist = gtk_selection_target_list_get (widget, selection)) != NULL)
-+ targets = gtk_target_table_new_from_list (tlist, &num_targets);
-+
-+ if (gtk_clipboard_set_with_owner (clip, targets, num_targets,
-+ gtk_selection_get_cb,
-+ gtk_selection_clear_cb,
-+ G_OBJECT (widget)))
-+ {
-+ gtk_selection_info_append (selection, widget, GDK_CURRENT_TIME);
-+ return TRUE;
-+ }
-+ return FALSE;
-+}
-+
-+
-+typedef struct _GtkSelectionTargetList GtkSelectionTargetList;
-+
-+struct _GtkSelectionTargetList {
-+ GdkAtom selection;
-+ GtkTargetList *list;
-+};
-+
-+/**
-+ * gtk_selection_remove_all:
-+ * @widget: a #GtkWidget
-+ *
-+ * Removes all handlers and unsets ownership of all
-+ * selections for a widget. Called when widget is being
-+ * destroyed. This function will not generally be
-+ * called by applications.
-+ **/
-+void
-+gtk_selection_remove_all (GtkWidget *widget)
-+{
-+ g_return_if_fail(widget == NULL || GTK_IS_WIDGET(widget));
-+ gtk_selection_info_clear (widget);
-+ /* Remove all selection lists */
-+ gtk_selection_target_list_remove (widget);
-+}
-+
-+
-+/**
-+ * gtk_selection_convert:
-+ * @widget: The widget which acts as requestor
-+ * @selection: Which selection to get
-+ * @target: Form of information desired (e.g., STRING)
-+ * @time_: Time of request (usually of triggering event)
-+ In emergency, you could use #GDK_CURRENT_TIME
-+ *
-+ * Requests the contents of a selection. When received,
-+ * a "selection-received" signal will be generated.
-+ *
-+ * Return value: %TRUE if requested succeeded. %FALSE if we could not process
-+ * request. (e.g., there was already a request in process for
-+ * this widget).
-+ **/
-+gboolean
-+gtk_selection_convert (GtkWidget *widget,
-+ GdkAtom selection,
-+ GdkAtom target,
-+ guint32 time_)
-+{
-+ GtkClipboard *clip = gtk_clipboard_get (selection);
-+ GtkSelectionData *data;
-+
-+ g_return_val_if_fail (GTK_IS_WIDGET (widget), FALSE);
-+ g_return_val_if_fail (selection != GDK_NONE, FALSE);
-+
-+ data = gtk_clipboard_wait_for_contents (clip, target);
-+ if (data == NULL)
-+ return FALSE;
-+
-+ g_signal_emit_by_name (widget, "selection-received", data, time);
-+
-+ return TRUE;
-+}
-+
-+
-+/**
-+ * _gtk_selection_clear:
-+ * @widget: a #GtkWidget
-+ * @event: the event
-+ *
-+ * The default handler for the #GtkWidget::selection-clear-event
-+ * signal.
-+ *
-+ * Return value: %TRUE if the event was handled, otherwise false
-+ **/
-+gboolean
-+_gtk_selection_clear (GtkWidget *widget,
-+ GdkEventSelection *event)
-+{
-+ gtk_selection_clear_targets (widget, event->selection);
-+ return FALSE;
-+}
-+
-+
-+/*************************************************************
-+ * _gtk_selection_request:
-+ * Handler for "selection_request_event"
-+ * arguments:
-+ * widget:
-+ * event:
-+ * results:
-+ *************************************************************/
-+
-+gboolean
-+_gtk_selection_request (GtkWidget *widget,
-+ GdkEventSelection *event)
-+{
-+ g_print ("Selection Request Events should not occur in quartz\n");
-+ return TRUE;
-+}
-+
-+/*************************************************************
-+ * _gtk_selection_incr_event:
-+ * Called whenever an PropertyNotify event occurs for an
-+ * GdkWindow with user_data == NULL. These will be notifications
-+ * that a window we are sending the selection to via the
-+ * INCR protocol has deleted a property and is ready for
-+ * more data.
-+ *
-+ * arguments:
-+ * window: the requestor window
-+ * event: the property event structure
-+ *
-+ * results:
-+ *************************************************************/
-+
-+gboolean
-+_gtk_selection_incr_event (GdkWindow *window,
-+ GdkEventProperty *event)
-+{
-+ g_print ("Selection_INCR_Events should not occur in quartz\n");
-+ return TRUE;
-+}
-+
-+/*************************************************************
-+ * _gtk_selection_notify:
-+ * Handler for "selection-notify-event" signals on windows
-+ * where a retrieval is currently in process. The selection
-+ * owner has responded to our conversion request.
-+ * arguments:
-+ * widget: Widget getting signal
-+ * event: Selection event structure
-+ * info: Information about this retrieval
-+ * results:
-+ * was event handled?
-+ *************************************************************/
-+
-+gboolean
-+_gtk_selection_notify (GtkWidget *widget,
-+ GdkEventSelection *event)
-+{
-+ g_print ("Selection_Notifications should not occur in quartz\n");
-+
-+ return TRUE;
-+}
-+
-+/*************************************************************
-+ * _gtk_selection_property_notify:
-+ * Handler for "property-notify-event" signals on windows
-+ * where a retrieval is currently in process. The selection
-+ * owner has added more data.
-+ * arguments:
-+ * widget: Widget getting signal
-+ * event: Property event structure
-+ * info: Information about this retrieval
-+ * results:
-+ * was event handled?
-+ *************************************************************/
-+
-+gboolean
-+_gtk_selection_property_notify (GtkWidget *widget,
-+ GdkEventProperty *event)
-+{
-+ g_print ("Selection_Property_Notifications should not occur in quartz\n");
-+ return TRUE;
-+}
-+
-+
-+/*************************************************************
-+ * gtk_selection_get_cb()
-+ * @clipboard: The clipboard requesting the data
-+ * @data: Pass to selection-get signal; handlers should put requested
-+ * data in the structure pointed to.
-+ * @info: DND uses this on Windows and X11. It can be ignored for
-+ * normal selection use.
-+ * @owner: The window to which the information request is sent; it's
-+ * the owner set with gtk_selection_owner_set_for_display.
-+ *
-+ * Emits a signal to the owner window to fill in the provided data structure.
-+ *************************************************************/
-+/* GtkClipboardGetFunc */
-+static void
-+gtk_selection_get_cb (GtkClipboard* clipboard,
-+ GtkSelectionData *data,
-+ guint info,
-+ gpointer owner)
-+{
-+ GtkTargetList *target_list;
-+ GtkWidget *widget = GTK_WIDGET (owner);
-+
-+
-+ g_return_if_fail (widget != NULL);
-+
-+ target_list = gtk_selection_target_list_get (widget, data->selection);
-+
-+ if ( data->target == gtk_selection_atoms[TIMESTAMP] ||
-+ data->target == gtk_selection_atoms[TARGETS] ||
-+ data->target == gtk_selection_atoms[SAVE_TARGETS])
-+ {
-+ gtk_selection_default_handler (widget, data);
-+ return;
-+ }
-+ if (target_list &&
-+ gtk_target_list_find (target_list, data->target, &info))
-+ {
-+ g_signal_emit_by_name (widget,
-+ "selection-get",
-+ data,
-+ info, time);
-+ }
-+}
-+
-+static void
-+gtk_selection_clear_cb (GtkClipboard* clipboard,
-+ gpointer owner)
-+{
-+ GtkWidget *widget = GTK_WIDGET (owner);
-+ GdkEventSelection event;
-+ event.type = GDK_SELECTION_CLEAR;
-+ event.selection = GDK_SELECTION_PRIMARY;
-+ event.window = gtk_widget_get_window(widget);
-+ g_signal_emit_by_name (widget,
-+ "selection-clear-event",
-+ &event,
-+ NULL);
-+}
-+
-+/*************************************************************
-+ * gtk_selection_default_handler:
-+ * Handles some default targets that exist for any widget
-+ * If it can't fit results into buffer, returns -1. This
-+ * won't happen in any conceivable case, since it would
-+ * require 1000 selection targets!
-+ *
-+ * arguments:
-+ * widget: selection owner
-+ * data: selection data [INOUT]
-+ *
-+ *************************************************************/
-+
-+static void
-+gtk_selection_default_handler (GtkWidget *widget,
-+ GtkSelectionData *data)
-+{
-+ if (data->target == gtk_selection_atoms[TIMESTAMP])
-+ {
-+ /* Time which was used to obtain selection */
-+ GList *tmp_list;
-+ GtkSelectionInfo *selection_info;
-+
-+ tmp_list = current_selections;
-+ while (tmp_list)
-+ {
-+ selection_info = (GtkSelectionInfo *)tmp_list->data;
-+ if ((selection_info->owner == widget) &&
-+ (selection_info->selection == data->selection))
-+ {
-+ gulong time = selection_info->time;
-+
-+ gtk_selection_data_set (data,
-+ GDK_SELECTION_TYPE_INTEGER,
-+ 32,
-+ (guchar *)&time,
-+ sizeof (time));
-+ return;
-+ }
-+
-+ tmp_list = tmp_list->next;
-+ }
-+
-+ data->length = -1;
-+ }
-+ else if (data->target == gtk_selection_atoms[TARGETS])
-+ {
-+ /* List of all targets supported for this widget/selection pair */
-+ GdkAtom *p;
-+ guint count;
-+ GList *tmp_list;
-+ GtkTargetList *target_list;
-+ GtkTargetPair *pair;
-+
-+ target_list = gtk_selection_target_list_get (widget,
-+ data->selection);
-+ count = g_list_length (target_list->list) + 3;
-+
-+ data->type = GDK_SELECTION_TYPE_ATOM;
-+ data->format = 32;
-+ data->length = count * sizeof (GdkAtom);
-+
-+ /* selection data is always terminated by a trailing \0
-+ */
-+ p = g_malloc (data->length + 1);
-+ data->data = (guchar *)p;
-+ data->data[data->length] = '\0';
-+
-+ *p++ = gtk_selection_atoms[TIMESTAMP];
-+ *p++ = gtk_selection_atoms[TARGETS];
-+ *p++ = gtk_selection_atoms[MULTIPLE];
-+
-+ tmp_list = target_list->list;
-+ while (tmp_list)
-+ {
-+ pair = (GtkTargetPair *)tmp_list->data;
-+ *p++ = pair->target;
-+
-+ tmp_list = tmp_list->next;
-+ }
-+ }
-+ else if (data->target == gtk_selection_atoms[SAVE_TARGETS])
-+ {
-+ gtk_selection_data_set (data,
-+ gdk_atom_intern_static_string ("NULL"),
-+ 32, NULL, 0);
-+ }
-+ else
-+ {
-+ data->length = -1;
-+ }
-+}
-+
-+static GtkSelectionInfo *
-+gtk_selection_info_get (GdkAtom selection)
-+{
-+ GList *tmp_list;
-+ GList *next;
-+ GtkSelectionInfo *selection_info;
-+
-+ tmp_list = current_selections;
-+ while (tmp_list)
-+ {
-+ next = tmp_list->next;
-+ selection_info = (GtkSelectionInfo *)tmp_list->data;
-+
-+ if (selection_info->selection == selection)
-+ {
-+ return selection_info;
-+ }
-+
-+ tmp_list = next;
-+ }
-+ return NULL;
-+}
-+
-+static void
-+gtk_selection_info_remove (GdkAtom selection, GtkWidget *owner)
-+{
-+ GList *tmp_list;
-+ GList *next;
-+ GtkSelectionInfo *selection_info;
-+
-+ g_return_if_fail (GTK_IS_WIDGET (owner));
-+
-+ tmp_list = current_selections;
-+ while (tmp_list)
-+ {
-+ next = tmp_list->next;
-+ selection_info = (GtkSelectionInfo *)tmp_list->data;
-+
-+ if (selection_info->selection == selection &&
-+ selection_info->owner == owner)
-+ {
-+ /* Clear the clipboard; this will send a changedOwner to the
-+ pasteboard so that it won't try to retrieve the
-+ still-pending types later when the window isn't around to
-+ provide them. */
-+ GtkClipboard *clip = gtk_clipboard_get(selection_info->selection);
-+ gtk_clipboard_clear(clip);
-+ current_selections = g_list_remove_link (current_selections,
-+ tmp_list);
-+ g_list_free (tmp_list);
-+ g_slice_free (GtkSelectionInfo, selection_info);
-+ return;
-+ }
-+
-+ tmp_list = next;
-+ }
-+}
-+static void
-+gtk_selection_info_append (GdkAtom selection, GtkWidget *owner, guint32 time)
-+{
-+ GtkSelectionInfo *selection_info;
-+
-+ g_return_if_fail (GTK_IS_WIDGET (owner));
-+
-+ selection_info = g_slice_new (GtkSelectionInfo);
-+ selection_info->selection = selection;
-+ selection_info->owner = owner;
-+ selection_info->time = time;
-+ current_selections = g_list_prepend (current_selections,
-+ selection_info);
-+}
-+
-+static void
-+gtk_selection_info_clear (GtkWidget *owner)
-+{
-+ GList *tmp_list;
-+ GList *next;
-+ GtkSelectionInfo *selection_info;
-+
-+ g_return_if_fail (GTK_IS_WIDGET (owner));
-+
-+ tmp_list = current_selections;
-+ while (tmp_list)
-+ {
-+ next = tmp_list->next;
-+ selection_info = (GtkSelectionInfo *)tmp_list->data;
-+
-+ if (selection_info->owner == owner)
-+ {
-+ current_selections = g_list_remove_link (current_selections,
-+ tmp_list);
-+ g_list_free (tmp_list);
-+ g_slice_free (GtkSelectionInfo, selection_info);
-+ }
-+
-+ tmp_list = next;
-+ }
-+}
-+
-+static GtkTargetList *
-+gtk_selection_target_list_get (GtkWidget *widget,
-+ GdkAtom selection)
-+{
-+ GtkSelectionTargetList *sellist;
-+ GList *tmp_list;
-+ GList *lists;
-+
-+ lists = g_object_get_data (G_OBJECT (widget), gtk_selection_handler_key);
-+
-+ tmp_list = lists;
-+ while (tmp_list)
-+ {
-+ sellist = tmp_list->data;
-+ if (sellist->selection == selection)
-+ return sellist->list;
-+ tmp_list = tmp_list->next;
-+ }
-+
-+ sellist = g_slice_new (GtkSelectionTargetList);
-+ sellist->selection = selection;
-+ sellist->list = gtk_target_list_new (NULL, 0);
-+
-+ lists = g_list_prepend (lists, sellist);
-+ g_object_set_data (G_OBJECT (widget), I_(gtk_selection_handler_key), lists);
-+
-+ return sellist->list;
-+}
-+
-+static void
-+gtk_selection_target_list_remove (GtkWidget *widget)
-+{
-+ GtkSelectionTargetList *sellist;
-+ GList *tmp_list;
-+ GList *lists;
-+
-+ lists = g_object_get_data (G_OBJECT (widget), gtk_selection_handler_key);
-+
-+ tmp_list = lists;
-+ while (tmp_list)
-+ {
-+ sellist = tmp_list->data;
-+
-+ gtk_target_list_unref (sellist->list);
-+
-+ g_slice_free (GtkSelectionTargetList, sellist);
-+ tmp_list = tmp_list->next;
-+ }
-+
-+ g_list_free (lists);
-+ g_object_set_data (G_OBJECT (widget), I_(gtk_selection_handler_key), NULL);
-+}
-+
-diff --git a/gtk/gtkselection.c b/gtk/gtkselection.c
-index 9e2295f..77bb934 100644
---- a/gtk/gtkselection.c
-+++ b/gtk/gtkselection.c
-@@ -661,6 +661,7 @@ gtk_target_table_free (GtkTargetEntry *targets,
- g_free (targets);
- }
-
-+#ifndef GDK_WINDOWING_QUARTZ /* Quartz handled by gtkselection-quartz.c */
- /**
- * gtk_selection_owner_set_for_display:
- * @display: the #Gdkdisplay where the selection is set
-@@ -763,7 +764,7 @@ gtk_selection_owner_set_for_display (GdkDisplay *display,
- else
- return FALSE;
- }
--
-+#endif /* GDK_WINDOWING_QUARTZ */
- /**
- * gtk_selection_owner_set:
- * @widget: (allow-none): a #GtkWidget, or %NULL.
-@@ -965,7 +966,7 @@ gtk_selection_add_targets (GtkWidget *widget,
- #endif
- }
-
--
-+#ifndef GDK_WINDOWING_QUARTZ /* Quartz is handled in gtkselection-quartz.c */
- /**
- * gtk_selection_remove_all:
- * @widget: a #GtkWidget
-@@ -1026,8 +1027,9 @@ gtk_selection_remove_all (GtkWidget *widget)
- /* Remove all selection lists */
- gtk_selection_target_list_remove (widget);
- }
-+#endif /* GDK_WINDOWING_QUARTZ */
-
--
-+#ifndef GDK_WINDOWING_QUARTZ /* Quartz is handled in gtkselection-quartz.c */
- /**
- * gtk_selection_convert:
- * @widget: The widget which acts as requestor
-@@ -1138,7 +1140,7 @@ gtk_selection_convert (GtkWidget *widget,
-
- return TRUE;
- }
--
-+#endif /* GDK_WINDOWING_QUARTZ */
- /**
- * gtk_selection_data_get_selection:
- * @selection_data: a pointer to a #GtkSelectionData structure.
-@@ -2232,6 +2234,7 @@ gtk_selection_init (void)
- initialize = FALSE;
- }
-
-+#ifndef GDK_WINDOWING_QUARTZ /* Quartz handled by gtkselection-quartz.c */
- /**
- * _gtk_selection_clear:
- * @widget: a #GtkWidget
-@@ -2652,6 +2655,7 @@ _gtk_selection_incr_event (GdkWindow *window,
-
- return TRUE;
- }
-+#endif /* GDK_WINDOWING_QUARTZ */
-
- /*************************************************************
- * gtk_selection_incr_timeout:
-@@ -2706,6 +2710,7 @@ gtk_selection_incr_timeout (GtkIncrInfo *info)
- return retval;
- }
-
-+#ifndef GDK_WINDOWING_QUARTZ /* Quartz handled by gtkselection-quartz.c */
- /*************************************************************
- * _gtk_selection_notify:
- * Handler for "selection-notify-event" signals on windows
-@@ -2904,6 +2909,7 @@ _gtk_selection_property_notify (GtkWidget *widget,
-
- return TRUE;
- }
-+#endif /* GDK_WINDOWING_QUARTZ */
-
- /*************************************************************
- * gtk_selection_retrieval_timeout:
---
-1.7.6.3.dirty
-
diff --git a/modulesets/patches/0001-Bug-667759-gtkdnd-quartz.c-is-missing-annotations-fo.patch b/modulesets/patches/0001-Bug-667759-gtkdnd-quartz.c-is-missing-annotations-fo.patch
deleted file mode 100644
index 0fbf03e..0000000
--- a/modulesets/patches/0001-Bug-667759-gtkdnd-quartz.c-is-missing-annotations-fo.patch
+++ /dev/null
@@ -1,47 +0,0 @@
-From 4aebe6d4f08297066b231eee7aa15d33d8dd6d98 Mon Sep 17 00:00:00 2001
-From: John Ralls
-Date: Fri, 3 May 2013 10:31:47 -0700
-Subject: [PATCH] Bug 667759 - gtkdnd-quartz.c is missing annotations for
- introspection
-
-Work around this by introspecting gtkclipboard.c and gtkdnd.c instead
-of the quartz alternatives.
-
-Note that this is temporary: The implementation of GdkSelection
-will make the quartz alternatives unnecessary. See bug 571582.
----
- gtk/Makefile.am | 12 +++++++++++-
- 1 file changed, 11 insertions(+), 1 deletion(-)
-
-diff --git a/gtk/Makefile.am b/gtk/Makefile.am
-index 6e7bbf1..0b82797 100644
---- a/gtk/Makefile.am
-+++ b/gtk/Makefile.am
-@@ -1313,13 +1313,23 @@ LDADDS = \
- $(GTK_DEP_LIBS)
-
- if HAVE_INTROSPECTION
-+# The Quartz clipboard and dnd files aren't annotated for
-+# introspection. Rather than copy the annotations over from the
-+# regular files, exclude the quartz ones:
- introspection_files = \
-- $(filter-out %private.h gtktextdisplay.h gtktextlayout.h, $(gtkinclude_HEADERS) $(deprecatedinclude_HEADERS)) \
-+ $(filter-out %private.h gtktextdisplay.h gtktextlayout.h, $(gtkinclude_HEADERS) $(deprecatedinclude_HEADERS) gtkclipboard-quartz.c gtkdnd-quartz.c) \
- $(gtk_base_c_sources) \
- gtkprintoperation-unix.c \
- gtktypebuiltins.h \
- gtktypebuiltins.c
-
-+# And include the regular ones:
-+if USE_QUARTZ
-+introspection_files += \
-+ gtkclipboard.c \
-+ gtkdnd.c
-+endif
-+
- if USE_X11
- introspection_files += \
- gtksocket.c \
---
-1.8.3.rc0
-
diff --git a/modulesets/patches/0001-Bug-670373-gtk2-modules-printing-cups-gtkprintbackendcups.patch b/modulesets/patches/0001-Bug-670373-gtk2-modules-printing-cups-gtkprintbackendcups.patch
deleted file mode 100644
index df73840..0000000
--- a/modulesets/patches/0001-Bug-670373-gtk2-modules-printing-cups-gtkprintbackendcups.patch
+++ /dev/null
@@ -1,332 +0,0 @@
-From bf8d9699ec228a8dd67c1bd1a84c38c398ba0b09 Mon Sep 17 00:00:00 2001
-From: John Ralls
-Date: Sat, 25 Feb 2012 17:43:18 -0800
-Subject: [PATCH 1/9] [Bug 670373] modules/printing/cups/gtkprintbackendcups.c
- won't build with CUPS 1.6
-
- The first, simple changes. Turns off the deprecation warnings and
- substitutes macros and short ifdef blocks where feasible.
----
- configure.in | 6 +
- modules/printbackends/cups/gtkprintbackendcups.c | 146 +++++++++++++---------
- 2 files changed, 93 insertions(+), 59 deletions(-)
-
-diff --git a/configure.in b/configure.in
-index dff4588..288ad0c 100644
---- a/configure.in
-+++ b/configure.in
-@@ -1473,6 +1473,12 @@ else
- AC_DEFINE(HAVE_CUPS_API_1_2, 1,
- [Define to 1 if CUPS 1.2 API is available])
- fi
-+ if test $CUPS_API_MAJOR -gt 1 -o \
-+ $CUPS_API_MAJOR -eq 1 -a $CUPS_API_MINOR -ge 6; then
-+ AC_DEFINE(HAVE_CUPS_API_1_6, 1,
-+ [Define to 1 if CUPS 1.6 API is available])
-+
-+ fi
-
- AC_SUBST(CUPS_API_MAJOR)
- AC_SUBST(CUPS_API_MINOR)
-diff --git a/modules/printbackends/cups/gtkprintbackendcups.c b/modules/printbackends/cups/gtkprintbackendcups.c
-index 59914ba..283a0ff 100644
---- a/modules/printbackends/cups/gtkprintbackendcups.c
-+++ b/modules/printbackends/cups/gtkprintbackendcups.c
-@@ -30,6 +30,13 @@
- #include
- #include
- #include
-+/* Cups 1.6 deprecates ppdFindAttr(), ppdFindCustomOption(),
-+ * ppdFirstCustomParam(), and ppdNextCustomParam() among others. This
-+ * turns off the warning so that it will compile.
-+ */
-+#ifdef HAVE_CUPS_API_1_6
-+# define _PPD_DEPRECATED
-+#endif
-
- #include
- #include
-@@ -235,7 +242,22 @@ pb_module_create (void)
- {
- return gtk_print_backend_cups_new ();
- }
--
-+/* CUPS 1.6 Getter/Setter Functions CUPS 1.6 makes private most of the
-+ * IPP structures and enforces access via new getter functions, which
-+ * are unfortunately not available in earlier versions. We define
-+ * below those getter functions as macros for use when building
-+ * against earlier CUPS versions.
-+ */
-+#ifndef HAVE_CUPS_API_1_6
-+#define ippGetOperation(ipp_request) ipp_request->request.op.operation_id
-+#define ippGetInteger(attr, index) attr->values[index].integer
-+#define ippGetBoolean(attr, index) attr->values[index].boolean
-+#define ippGetString(attr, index, foo) attr->values[index].string.text
-+#define ippGetValueTag(attr) attr->value_tag
-+#define ippGetName(attr) attr->name
-+#define ippGetCount(attr) attr->num_values
-+#define ippGetGroupTag(attr) attr->group_tag
-+#endif
- /*
- * GtkPrintBackendCups
- */
-@@ -463,7 +485,7 @@ cups_print_cb (GtkPrintBackendCups *print_backend,
- ipp_t *response = gtk_cups_result_get_response (result);
-
- if ((attr = ippFindAttribute (response, "job-id", IPP_TAG_INTEGER)) != NULL)
-- job_id = attr->values[0].integer;
-+ job_id = ippGetInteger (attr, 0);
-
- if (!gtk_print_job_get_track_print_status (ps->job) || job_id == 0)
- gtk_print_job_set_status (ps->job, GTK_PRINT_STATUS_FINISHED);
-@@ -900,7 +922,7 @@ request_password (gpointer data)
-
- dispatch->backend->authentication_lock = TRUE;
-
-- switch (dispatch->request->ipp_request->request.op.operation_id)
-+ switch (ippGetOperation (dispatch->request->ipp_request))
- {
- case IPP_PRINT_JOB:
- if (job_title != NULL && printer_name != NULL)
-@@ -928,7 +950,7 @@ request_password (gpointer data)
- break;
- default:
- /* work around gcc warning about 0 not being a value for this enum */
-- if (dispatch->request->ipp_request->request.op.operation_id == 0)
-+ if (ippGetOperation (dispatch->request->ipp_request) == 0)
- prompt = g_strdup_printf ( _("Authentication is required to get a file from %s"), hostname);
- else
- prompt = g_strdup_printf ( _("Authentication is required on %s"), hostname);
-@@ -1516,10 +1538,15 @@ cups_request_job_info_cb (GtkPrintBackendCups *print_backend,
- }
-
- data->counter++;
--
-+
- response = gtk_cups_result_get_response (result);
-
- state = 0;
-+
-+#ifdef HAVE_CUPS_API_1_6
-+ attr = ippFindAttribute (response, "job-state", IPP_TAG_INTEGER);
-+ state = ippGetInteger (attr, 0);
-+#else
- for (attr = response->attrs; attr != NULL; attr = attr->next)
- {
- if (!attr->name)
-@@ -1527,7 +1554,8 @@ cups_request_job_info_cb (GtkPrintBackendCups *print_backend,
-
- _CUPS_MAP_ATTR_INT (attr, state, "job-state");
- }
--
-+#endif
-+
- done = FALSE;
- switch (state)
- {
-@@ -1760,53 +1788,53 @@ cups_request_printer_list_cb (GtkPrintBackendCups *cups_backend,
- gboolean is_accepting_jobs = TRUE;
- gboolean default_printer = FALSE;
- gboolean got_printer_type = FALSE;
-- gchar *default_cover_before = NULL;
-- gchar *default_cover_after = NULL;
-+ const gchar *default_cover_before = NULL;
-+ const gchar *default_cover_after = NULL;
- gboolean remote_printer = FALSE;
- gchar **auth_info_required = NULL;
-
- /* Skip leading attributes until we hit a printer...
- */
-- while (attr != NULL && attr->group_tag != IPP_TAG_PRINTER)
-+ while (attr != NULL && ippGetGroupTag (attr) != IPP_TAG_PRINTER)
- attr = attr->next;
-
- if (attr == NULL)
- break;
-
-- while (attr != NULL && attr->group_tag == IPP_TAG_PRINTER)
-+ while (attr != NULL && ippGetGroupTag (attr) == IPP_TAG_PRINTER)
- {
-- if (strcmp (attr->name, "printer-name") == 0 &&
-- attr->value_tag == IPP_TAG_NAME)
-- printer_name = attr->values[0].string.text;
-- else if (strcmp (attr->name, "printer-uri-supported") == 0 &&
-- attr->value_tag == IPP_TAG_URI)
-- printer_uri = attr->values[0].string.text;
-- else if (strcmp (attr->name, "member-uris") == 0 &&
-- attr->value_tag == IPP_TAG_URI)
-- member_uris = attr->values[0].string.text;
-- else if (strcmp (attr->name, "printer-location") == 0)
-- location = attr->values[0].string.text;
-- else if (strcmp (attr->name, "printer-info") == 0)
-- description = attr->values[0].string.text;
-- else if (strcmp (attr->name, "printer-state-message") == 0)
-- state_msg = attr->values[0].string.text;
-- else if (strcmp (attr->name, "printer-state-reasons") == 0)
-+ if (strcmp (ippGetName (attr), "printer-name") == 0 &&
-+ ippGetValueTag (attr) == IPP_TAG_NAME)
-+ printer_name = ippGetString (attr, 0, NULL);
-+ else if (strcmp (ippGetName (attr), "printer-uri-supported") == 0 &&
-+ ippGetValueTag (attr) == IPP_TAG_URI)
-+ printer_uri = ippGetString (attr, 0, NULL);
-+ else if (strcmp (ippGetName (attr), "member-uris") == 0 &&
-+ ippGetValueTag (attr) == IPP_TAG_URI)
-+ member_uris = ippGetString (attr, 0, NULL);
-+ else if (strcmp (ippGetName (attr), "printer-location") == 0)
-+ location = ippGetString (attr, 0, NULL);
-+ else if (strcmp (ippGetName (attr), "printer-info") == 0)
-+ description = ippGetString (attr, 0, NULL);
-+ else if (strcmp (ippGetName (attr), "printer-state-message") == 0)
-+ state_msg = ippGetString (attr, 0, NULL);
-+ else if (strcmp (ippGetName (attr), "printer-state-reasons") == 0)
- /* Store most important reason to reason_msg and set
- its importance at printer_state_reason_level */
- {
-- for (i = 0; i < attr->num_values; i++)
-+ for (i = 0; i < ippGetCount (attr); i++)
- {
-- if (strcmp (attr->values[i].string.text, "none") != 0)
-+ if (strcmp (ippGetString (attr, i, NULL), "none") != 0)
- {
- /* Sets is_paused flag for paused printer. */
-- if (strcmp (attr->values[i].string.text, "paused") == 0)
-+ if (strcmp (ippGetString (attr, i, NULL), "paused") == 0)
- {
- is_paused = TRUE;
- }
-
- interested_in = FALSE;
- for (j = 0; j < G_N_ELEMENTS (reasons); j++)
-- if (strncmp (attr->values[i].string.text, reasons[j], strlen (reasons[j])) == 0)
-+ if (strncmp (ippGetString (attr, i, NULL), reasons[j], strlen (reasons[j])) == 0)
- {
- interested_in = TRUE;
- break;
-@@ -1814,87 +1842,87 @@ cups_request_printer_list_cb (GtkPrintBackendCups *cups_backend,
-
- if (interested_in)
- {
-- if (g_str_has_suffix (attr->values[i].string.text, "-report"))
-+ if (g_str_has_suffix (ippGetString (attr, i, NULL), "-report"))
- {
- if (printer_state_reason_level <= 1)
- {
-- reason_msg = attr->values[i].string.text;
-+ reason_msg = ippGetString (attr, i, NULL);
- printer_state_reason_level = 1;
- }
- }
-- else if (g_str_has_suffix (attr->values[i].string.text, "-warning"))
-+ else if (g_str_has_suffix (ippGetString (attr, i, NULL), "-warning"))
- {
- if (printer_state_reason_level <= 2)
- {
-- reason_msg = attr->values[i].string.text;
-+ reason_msg = ippGetString (attr, i, NULL);
- printer_state_reason_level = 2;
-- }
-+ }
- }
- else /* It is error in the case of no suffix. */
- {
-- reason_msg = attr->values[i].string.text;
-+ reason_msg = ippGetString (attr, i, NULL);
- printer_state_reason_level = 3;
- }
- }
- }
- }
- }
-- else if (strcmp (attr->name, "printer-state") == 0)
-- state = attr->values[0].integer;
-- else if (strcmp (attr->name, "queued-job-count") == 0)
-- job_count = attr->values[0].integer;
-- else if (strcmp (attr->name, "printer-is-accepting-jobs") == 0)
-+ else if (strcmp (ippGetName (attr), "printer-state") == 0)
-+ state = ippGetInteger (attr, 0);
-+ else if (strcmp (ippGetName (attr), "queued-job-count") == 0)
-+ job_count = ippGetInteger (attr, 0);
-+ else if (strcmp (ippGetName (attr), "printer-is-accepting-jobs") == 0)
- {
-- if (attr->values[0].boolean == 1)
-+ if (ippGetBoolean (attr, 0) == 1)
- is_accepting_jobs = TRUE;
- else
- is_accepting_jobs = FALSE;
- }
-- else if (strcmp (attr->name, "job-sheets-supported") == 0)
-+ else if (strcmp (ippGetName (attr), "job-sheets-supported") == 0)
- {
- if (cups_backend->covers == NULL)
- {
-- cups_backend->number_of_covers = attr->num_values;
-+ cups_backend->number_of_covers = ippGetCount (attr);
- cups_backend->covers = g_new (char *, cups_backend->number_of_covers + 1);
- for (i = 0; i < cups_backend->number_of_covers; i++)
-- cups_backend->covers[i] = g_strdup (attr->values[i].string.text);
-+ cups_backend->covers[i] = g_strdup (ippGetString (attr, i, NULL));
- cups_backend->covers[cups_backend->number_of_covers] = NULL;
- }
- }
-- else if (strcmp (attr->name, "job-sheets-default") == 0)
-+ else if (strcmp (ippGetName (attr), "job-sheets-default") == 0)
- {
-- if (attr->num_values == 2)
-+ if (ippGetCount (attr) == 2)
- {
-- default_cover_before = attr->values[0].string.text;
-- default_cover_after = attr->values[1].string.text;
-+ default_cover_before = ippGetString (attr, 0, NULL);
-+ default_cover_after = ippGetString (attr, 1, NULL);
- }
- }
-- else if (strcmp (attr->name, "printer-type") == 0)
-+ else if (strcmp (ippGetName (attr), "printer-type") == 0)
- {
- got_printer_type = TRUE;
-- if (attr->values[0].integer & 0x00020000)
-+ if (ippGetInteger (attr, 0) & 0x00020000)
- default_printer = TRUE;
- else
- default_printer = FALSE;
-
-- if (attr->values[0].integer & 0x00000002)
-+ if (ippGetInteger (attr, 0) & 0x00000002)
- remote_printer = TRUE;
- else
- remote_printer = FALSE;
- }
-- else if (strcmp (attr->name, "auth-info-required") == 0)
-+ else if (strcmp (ippGetName (attr), "auth-info-required") == 0)
- {
-- if (strcmp (attr->values[0].string.text, "none") != 0)
-+ if (strcmp (ippGetString (attr, 0, NULL), "none") != 0)
- {
-- auth_info_required = g_new0 (gchar *, attr->num_values + 1);
-- for (i = 0; i < attr->num_values; i++)
-- auth_info_required[i] = g_strdup (attr->values[i].string.text);
-+ auth_info_required = g_new0 (gchar *, ippGetCount (attr) + 1);
-+ for (i = 0; i < ippGetCount (attr); i++)
-+ auth_info_required[i] = g_strdup (ippGetString (attr, i, NULL));
- }
- }
- else
- {
- GTK_NOTE (PRINTING,
-- g_print ("CUPS Backend: Attribute %s ignored", attr->name));
-+ g_print ("CUPS Backend: Attribute %s ignored", ippGetName (attr)));
- }
-
- attr = attr->next;
-@@ -2707,7 +2735,7 @@ cups_request_default_printer_cb (GtkPrintBackendCups *print_backend,
- response = gtk_cups_result_get_response (result);
-
- if ((attr = ippFindAttribute (response, "printer-name", IPP_TAG_NAME)) != NULL)
-- print_backend->default_printer = g_strdup (attr->values[0].string.text);
-+ print_backend->default_printer = g_strdup (ippGetString (attr, 0, NULL));
-
- print_backend->got_default_printer = TRUE;
-
---
-1.7.7.5 (Apple Git-28)
-
diff --git a/modulesets/patches/0001-Bug-670373-gtk3-modules-printing-cups-gtkprintbackendcups.patch b/modulesets/patches/0001-Bug-670373-gtk3-modules-printing-cups-gtkprintbackendcups.patch
deleted file mode 100644
index 0734772..0000000
--- a/modulesets/patches/0001-Bug-670373-gtk3-modules-printing-cups-gtkprintbackendcups.patch
+++ /dev/null
@@ -1,331 +0,0 @@
-From 3c586545f528e18ef2a9fa9e2ff17fc369e3a38f Mon Sep 17 00:00:00 2001
-From: John Ralls
-Date: Sat, 18 Feb 2012 14:16:27 -0800
-Subject: [PATCH 1/9] [Bug 670373] modules/printing/cups/gtkprintbackendcups.c
- won't build with CUPS 1.6
-
-The first, simple changes. Turns off the deprecation warnings and substitutes macros and short ifdef blocks where feasible.
----
- configure.in | 6 +
- modules/printbackends/cups/gtkprintbackendcups.c | 146 +++++++++++++---------
- 2 files changed, 93 insertions(+), 59 deletions(-)
-
-diff --git a/configure.in b/configure.in
-index 75761d5..85c5960 100644
---- a/configure.in
-+++ b/configure.in
-@@ -1473,6 +1473,12 @@ else
- AC_DEFINE(HAVE_CUPS_API_1_2, 1,
- [Define to 1 if CUPS 1.2 API is available])
- fi
-+ if test $CUPS_API_MAJOR -gt 1 -o \
-+ $CUPS_API_MAJOR -eq 1 -a $CUPS_API_MINOR -ge 6; then
-+ AC_DEFINE(HAVE_CUPS_API_1_6, 1,
-+ [Define to 1 if CUPS 1.6 API is available])
-+
-+ fi
-
- AC_SUBST(CUPS_API_MAJOR)
- AC_SUBST(CUPS_API_MINOR)
-diff --git a/modules/printbackends/cups/gtkprintbackendcups.c b/modules/printbackends/cups/gtkprintbackendcups.c
-index 79d66cd..12c6ab6 100644
---- a/modules/printbackends/cups/gtkprintbackendcups.c
-+++ b/modules/printbackends/cups/gtkprintbackendcups.c
-@@ -30,6 +30,13 @@
- #include
- #include
- #include
-+/* Cups 1.6 deprecates ppdFindAttr(), ppdFindCustomOption(),
-+ * ppdFirstCustomParam(), and ppdNextCustomParam() among others. This
-+ * turns off the warning so that it will compile.
-+ */
-+#ifdef HAVE_CUPS_API_1_6
-+# define _PPD_DEPRECATED
-+#endif
-
- #include
- #include
-@@ -235,7 +242,22 @@ pb_module_create (void)
- {
- return gtk_print_backend_cups_new ();
- }
--
-+/* CUPS 1.6 Getter/Setter Functions CUPS 1.6 makes private most of the
-+ * IPP structures and enforces access via new getter functions, which
-+ * are unfortunately not available in earlier versions. We define
-+ * below those getter functions as macros for use when building
-+ * against earlier CUPS versions.
-+ */
-+#ifndef HAVE_CUPS_API_1_6
-+#define ippGetOperation(ipp_request) ipp_request->request.op.operation_id
-+#define ippGetInteger(attr, index) attr->values[index].integer
-+#define ippGetBoolean(attr, index) attr->values[index].boolean
-+#define ippGetString(attr, index, foo) attr->values[index].string.text
-+#define ippGetValueTag(attr) attr->value_tag
-+#define ippGetName(attr) attr->name
-+#define ippGetCount(attr) attr->num_values
-+#define ippGetGroupTag(attr) attr->group_tag
-+#endif
- /*
- * GtkPrintBackendCups
- */
-@@ -463,7 +485,7 @@ cups_print_cb (GtkPrintBackendCups *print_backend,
- ipp_t *response = gtk_cups_result_get_response (result);
-
- if ((attr = ippFindAttribute (response, "job-id", IPP_TAG_INTEGER)) != NULL)
-- job_id = attr->values[0].integer;
-+ job_id = ippGetInteger (attr, 0);
-
- if (!gtk_print_job_get_track_print_status (ps->job) || job_id == 0)
- gtk_print_job_set_status (ps->job, GTK_PRINT_STATUS_FINISHED);
-@@ -900,7 +922,7 @@ request_password (gpointer data)
-
- dispatch->backend->authentication_lock = TRUE;
-
-- switch (dispatch->request->ipp_request->request.op.operation_id)
-+ switch (ippGetOperation (dispatch->request->ipp_request))
- {
- case IPP_PRINT_JOB:
- if (job_title != NULL && printer_name != NULL)
-@@ -928,7 +950,7 @@ request_password (gpointer data)
- break;
- default:
- /* work around gcc warning about 0 not being a value for this enum */
-- if (dispatch->request->ipp_request->request.op.operation_id == 0)
-+ if (ippGetOperation (dispatch->request->ipp_request) == 0)
- prompt = g_strdup_printf ( _("Authentication is required to get a file from %s"), hostname);
- else
- prompt = g_strdup_printf ( _("Authentication is required on %s"), hostname);
-@@ -1516,10 +1538,15 @@ cups_request_job_info_cb (GtkPrintBackendCups *print_backend,
- }
-
- data->counter++;
--
-+
- response = gtk_cups_result_get_response (result);
-
- state = 0;
-+
-+#ifdef HAVE_CUPS_API_1_6
-+ attr = ippFindAttribute (response, "job-state", IPP_TAG_INTEGER);
-+ state = ippGetInteger (attr, 0);
-+#else
- for (attr = response->attrs; attr != NULL; attr = attr->next)
- {
- if (!attr->name)
-@@ -1527,7 +1554,8 @@ cups_request_job_info_cb (GtkPrintBackendCups *print_backend,
-
- _CUPS_MAP_ATTR_INT (attr, state, "job-state");
- }
--
-+#endif
-+
- done = FALSE;
- switch (state)
- {
-@@ -1760,53 +1788,53 @@ cups_request_printer_list_cb (GtkPrintBackendCups *cups_backend,
- gboolean is_accepting_jobs = TRUE;
- gboolean default_printer = FALSE;
- gboolean got_printer_type = FALSE;
-- gchar *default_cover_before = NULL;
-- gchar *default_cover_after = NULL;
-+ const gchar *default_cover_before = NULL;
-+ const gchar *default_cover_after = NULL;
- gboolean remote_printer = FALSE;
- gchar **auth_info_required = NULL;
-
- /* Skip leading attributes until we hit a printer...
- */
-- while (attr != NULL && attr->group_tag != IPP_TAG_PRINTER)
-+ while (attr != NULL && ippGetGroupTag (attr) != IPP_TAG_PRINTER)
- attr = attr->next;
-
- if (attr == NULL)
- break;
-
-- while (attr != NULL && attr->group_tag == IPP_TAG_PRINTER)
-+ while (attr != NULL && ippGetGroupTag (attr) == IPP_TAG_PRINTER)
- {
-- if (strcmp (attr->name, "printer-name") == 0 &&
-- attr->value_tag == IPP_TAG_NAME)
-- printer_name = attr->values[0].string.text;
-- else if (strcmp (attr->name, "printer-uri-supported") == 0 &&
-- attr->value_tag == IPP_TAG_URI)
-- printer_uri = attr->values[0].string.text;
-- else if (strcmp (attr->name, "member-uris") == 0 &&
-- attr->value_tag == IPP_TAG_URI)
-- member_uris = attr->values[0].string.text;
-- else if (strcmp (attr->name, "printer-location") == 0)
-- location = attr->values[0].string.text;
-- else if (strcmp (attr->name, "printer-info") == 0)
-- description = attr->values[0].string.text;
-- else if (strcmp (attr->name, "printer-state-message") == 0)
-- state_msg = attr->values[0].string.text;
-- else if (strcmp (attr->name, "printer-state-reasons") == 0)
-+ if (strcmp (ippGetName (attr), "printer-name") == 0 &&
-+ ippGetValueTag (attr) == IPP_TAG_NAME)
-+ printer_name = ippGetString (attr, 0, NULL);
-+ else if (strcmp (ippGetName (attr), "printer-uri-supported") == 0 &&
-+ ippGetValueTag (attr) == IPP_TAG_URI)
-+ printer_uri = ippGetString (attr, 0, NULL);
-+ else if (strcmp (ippGetName (attr), "member-uris") == 0 &&
-+ ippGetValueTag (attr) == IPP_TAG_URI)
-+ member_uris = ippGetString (attr, 0, NULL);
-+ else if (strcmp (ippGetName (attr), "printer-location") == 0)
-+ location = ippGetString (attr, 0, NULL);
-+ else if (strcmp (ippGetName (attr), "printer-info") == 0)
-+ description = ippGetString (attr, 0, NULL);
-+ else if (strcmp (ippGetName (attr), "printer-state-message") == 0)
-+ state_msg = ippGetString (attr, 0, NULL);
-+ else if (strcmp (ippGetName (attr), "printer-state-reasons") == 0)
- /* Store most important reason to reason_msg and set
- its importance at printer_state_reason_level */
- {
-- for (i = 0; i < attr->num_values; i++)
-+ for (i = 0; i < ippGetCount (attr); i++)
- {
-- if (strcmp (attr->values[i].string.text, "none") != 0)
-+ if (strcmp (ippGetString (attr, i, NULL), "none") != 0)
- {
- /* Sets is_paused flag for paused printer. */
-- if (strcmp (attr->values[i].string.text, "paused") == 0)
-+ if (strcmp (ippGetString (attr, i, NULL), "paused") == 0)
- {
- is_paused = TRUE;
- }
-
- interested_in = FALSE;
- for (j = 0; j < G_N_ELEMENTS (reasons); j++)
-- if (strncmp (attr->values[i].string.text, reasons[j], strlen (reasons[j])) == 0)
-+ if (strncmp (ippGetString (attr, i, NULL), reasons[j], strlen (reasons[j])) == 0)
- {
- interested_in = TRUE;
- break;
-@@ -1814,87 +1842,87 @@ cups_request_printer_list_cb (GtkPrintBackendCups *cups_backend,
-
- if (interested_in)
- {
-- if (g_str_has_suffix (attr->values[i].string.text, "-report"))
-+ if (g_str_has_suffix (ippGetString (attr, i, NULL), "-report"))
- {
- if (printer_state_reason_level <= 1)
- {
-- reason_msg = attr->values[i].string.text;
-+ reason_msg = ippGetString (attr, i, NULL);
- printer_state_reason_level = 1;
- }
- }
-- else if (g_str_has_suffix (attr->values[i].string.text, "-warning"))
-+ else if (g_str_has_suffix (ippGetString (attr, i, NULL), "-warning"))
- {
- if (printer_state_reason_level <= 2)
- {
-- reason_msg = attr->values[i].string.text;
-+ reason_msg = ippGetString (attr, i, NULL);
- printer_state_reason_level = 2;
-- }
-+ }
- }
- else /* It is error in the case of no suffix. */
- {
-- reason_msg = attr->values[i].string.text;
-+ reason_msg = ippGetString (attr, i, NULL);
- printer_state_reason_level = 3;
- }
- }
- }
- }
- }
-- else if (strcmp (attr->name, "printer-state") == 0)
-- state = attr->values[0].integer;
-- else if (strcmp (attr->name, "queued-job-count") == 0)
-- job_count = attr->values[0].integer;
-- else if (strcmp (attr->name, "printer-is-accepting-jobs") == 0)
-+ else if (strcmp (ippGetName (attr), "printer-state") == 0)
-+ state = ippGetInteger (attr, 0);
-+ else if (strcmp (ippGetName (attr), "queued-job-count") == 0)
-+ job_count = ippGetInteger (attr, 0);
-+ else if (strcmp (ippGetName (attr), "printer-is-accepting-jobs") == 0)
- {
-- if (attr->values[0].boolean == 1)
-+ if (ippGetBoolean (attr, 0) == 1)
- is_accepting_jobs = TRUE;
- else
- is_accepting_jobs = FALSE;
- }
-- else if (strcmp (attr->name, "job-sheets-supported") == 0)
-+ else if (strcmp (ippGetName (attr), "job-sheets-supported") == 0)
- {
- if (cups_backend->covers == NULL)
- {
-- cups_backend->number_of_covers = attr->num_values;
-+ cups_backend->number_of_covers = ippGetCount (attr);
- cups_backend->covers = g_new (char *, cups_backend->number_of_covers + 1);
- for (i = 0; i < cups_backend->number_of_covers; i++)
-- cups_backend->covers[i] = g_strdup (attr->values[i].string.text);
-+ cups_backend->covers[i] = g_strdup (ippGetString (attr, i, NULL));
- cups_backend->covers[cups_backend->number_of_covers] = NULL;
- }
- }
-- else if (strcmp (attr->name, "job-sheets-default") == 0)
-+ else if (strcmp (ippGetName (attr), "job-sheets-default") == 0)
- {
-- if (attr->num_values == 2)
-+ if (ippGetCount (attr) == 2)
- {
-- default_cover_before = attr->values[0].string.text;
-- default_cover_after = attr->values[1].string.text;
-+ default_cover_before = ippGetString (attr, 0, NULL);
-+ default_cover_after = ippGetString (attr, 1, NULL);
- }
- }
-- else if (strcmp (attr->name, "printer-type") == 0)
-+ else if (strcmp (ippGetName (attr), "printer-type") == 0)
- {
- got_printer_type = TRUE;
-- if (attr->values[0].integer & 0x00020000)
-+ if (ippGetInteger (attr, 0) & 0x00020000)
- default_printer = TRUE;
- else
- default_printer = FALSE;
-
-- if (attr->values[0].integer & 0x00000002)
-+ if (ippGetInteger (attr, 0) & 0x00000002)
- remote_printer = TRUE;
- else
- remote_printer = FALSE;
- }
-- else if (strcmp (attr->name, "auth-info-required") == 0)
-+ else if (strcmp (ippGetName (attr), "auth-info-required") == 0)
- {
-- if (strcmp (attr->values[0].string.text, "none") != 0)
-+ if (strcmp (ippGetString (attr, 0, NULL), "none") != 0)
- {
-- auth_info_required = g_new0 (gchar *, attr->num_values + 1);
-- for (i = 0; i < attr->num_values; i++)
-- auth_info_required[i] = g_strdup (attr->values[i].string.text);
-+ auth_info_required = g_new0 (gchar *, ippGetCount (attr) + 1);
-+ for (i = 0; i < ippGetCount (attr); i++)
-+ auth_info_required[i] = g_strdup (ippGetString (attr, i, NULL));
- }
- }
- else
- {
- GTK_NOTE (PRINTING,
-- g_print ("CUPS Backend: Attribute %s ignored", attr->name));
-+ g_print ("CUPS Backend: Attribute %s ignored", ippGetName (attr)));
- }
-
- attr = attr->next;
-@@ -2707,7 +2737,7 @@ cups_request_default_printer_cb (GtkPrintBackendCups *print_backend,
- response = gtk_cups_result_get_response (result);
-
- if ((attr = ippFindAttribute (response, "printer-name", IPP_TAG_NAME)) != NULL)
-- print_backend->default_printer = g_strdup (attr->values[0].string.text);
-+ print_backend->default_printer = g_strdup (ippGetString (attr, 0, NULL));
-
- print_backend->got_default_printer = TRUE;
-
---
-1.7.7.5 (Apple Git-28)
-
diff --git a/modulesets/patches/0001-Bug-702516-Make-Werror-format-nonliteral-happy.patch b/modulesets/patches/0001-Bug-702516-Make-Werror-format-nonliteral-happy.patch
deleted file mode 100644
index 476eea6..0000000
--- a/modulesets/patches/0001-Bug-702516-Make-Werror-format-nonliteral-happy.patch
+++ /dev/null
@@ -1,253 +0,0 @@
-From 96e40ec7321990fe63fb41b1be0ceead21b3ffc3 Mon Sep 17 00:00:00 2001
-From: John Ralls
-Date: Sun, 29 Sep 2013 11:40:25 -0700
-Subject: [PATCH] Bug 702516 - Make -Werror=format-nonliteral happy
-
----
- gio/gcontenttype.c | 5 ++++-
- gio/gthreadedresolver.c | 5 +++++
- glib/gfileutils.c | 50 +++++++++++++++++++++++++++++++++++--------------
- glib/gmarkup.c | 7 ++++++-
- glib/gstrfuncs.c | 6 +++++-
- glib/gutils.c | 5 +++++
- 6 files changed, 61 insertions(+), 17 deletions(-)
-
-diff --git a/gio/gcontenttype.c b/gio/gcontenttype.c
-index 575d6fe..8dc5896 100644
---- a/gio/gcontenttype.c
-+++ b/gio/gcontenttype.c
-@@ -393,6 +393,8 @@ g_content_type_get_mime_type (const char *type)
- return g_strdup (type);
- }
-
-+#pragma GCC diagnostic push
-+#pragma GCC diagnostic ignored "-Wformat-nonliteral"
-
- static GIcon *
- g_content_type_get_icon_internal (const gchar *type,
-@@ -423,7 +425,7 @@ g_content_type_get_icon_internal (const gchar *type,
- G_LOCK (gio_xdgmime);
- xdg_icon = xdg_mime_get_icon (type);
- G_UNLOCK (gio_xdgmime);
-- if (xdg_icon != NULL)
-+ if (xdg_icon != NULL)
- xdg_mimetype_icon = g_strdup_printf (file_template, xdg_icon);
-
- if (xdg_mimetype_icon)
-@@ -450,6 +452,7 @@ g_content_type_get_icon_internal (const gchar *type,
-
- return themed_icon;
- }
-+#pragma GCC diagnostic pop
-
- /**
- * g_content_type_get_icon:
-diff --git a/gio/gthreadedresolver.c b/gio/gthreadedresolver.c
-index 37f930c..1ffaf15 100644
---- a/gio/gthreadedresolver.c
-+++ b/gio/gthreadedresolver.c
-@@ -505,6 +505,9 @@ g_resolver_record_type_to_rrtype (GResolverRecordType type)
- g_return_val_if_reached (-1);
- }
-
-+#pragma GCC diagnostic push
-+#pragma GCC diagnostic ignored "-Wformat-nonliteral"
-+
- static GList *
- g_resolver_records_from_res_query (const gchar *rrname,
- gint rrtype,
-@@ -619,6 +622,8 @@ g_resolver_records_from_res_query (const gchar *rrname,
- return records;
- }
-
-+#pragma GCC diagnostic pop
-+
- #elif defined(G_OS_WIN32)
-
- static GVariant *
-diff --git a/glib/gfileutils.c b/glib/gfileutils.c
-index 7e5bedc..eb5baea 100644
---- a/glib/gfileutils.c
-+++ b/glib/gfileutils.c
-@@ -1004,25 +1004,47 @@ rename_file (const char *old_name,
- return TRUE;
- }
-
--/* format string must have two '%s':
-- *
-- * - the place for the filename
-- * - the place for the strerror
-- */
--static void
--format_error_message (GError **error,
-- const gchar *filename,
-+static char *
-+format_error_message (const gchar *filename,
-+ const gchar *format_string) G_GNUC_FORMAT(2);
-+
-+#pragma GCC diagnostic push
-+#pragma GCC diagnostic ignored "-Wformat-nonliteral"
-+
-+static char *
-+format_error_message (const gchar *filename,
- const gchar *format_string)
- {
- gint saved_errno = errno;
- gchar *display_name;
-+ gchar *msg;
-
- display_name = g_filename_display_name (filename);
-+ msg = g_strdup_printf (format_string, display_name, g_strerror (saved_errno));
-+ g_free (display_name);
-+
-+ return msg;
-+}
-
-- g_set_error (error, G_FILE_ERROR, g_file_error_from_errno (saved_errno),
-- format_string, display_name, g_strerror (saved_errno));
-+#pragma GCC diagnostic pop
-
-- g_free (display_name);
-+/* format string must have two '%s':
-+ *
-+ * - the place for the filename
-+ * - the place for the strerror
-+ */
-+static void
-+set_file_error (GError **error,
-+ const gchar *filename,
-+ const gchar *format_string)
-+
-+{
-+ int saved_errno = errno;
-+ char *msg = format_error_message (filename, format_string);
-+
-+ g_set_error_literal (error, G_FILE_ERROR, g_file_error_from_errno (saved_errno),
-+ msg);
-+ g_free (msg);
- }
-
- static gchar *
-@@ -1044,7 +1066,7 @@ write_to_temp_file (const gchar *contents,
-
- if (fd == -1)
- {
-- format_error_message (err, tmp_name, _("Failed to create file '%s': %s"));
-+ set_file_error (err, tmp_name, _("Failed to create file '%s': %s"));
- goto out;
- }
-
-@@ -1068,7 +1090,7 @@ write_to_temp_file (const gchar *contents,
- if (errno == EINTR)
- continue;
-
-- format_error_message (err, tmp_name, _("Failed to write file '%s': write() failed: %s"));
-+ set_file_error (err, tmp_name, _("Failed to write file '%s': write() failed: %s"));
- close (fd);
- g_unlink (tmp_name);
-
-@@ -1108,7 +1130,7 @@ write_to_temp_file (const gchar *contents,
- */
- if (g_lstat (dest_file, &statbuf) == 0 && statbuf.st_size > 0 && fsync (fd) != 0)
- {
-- format_error_message (err, tmp_name, _("Failed to write file '%s': fsync() failed: %s"));
-+ set_file_error (err, tmp_name, _("Failed to write file '%s': fsync() failed: %s"));
- close (fd);
- g_unlink (tmp_name);
-
-diff --git a/glib/gmarkup.c b/glib/gmarkup.c
-index 552773f..fb02a42 100644
---- a/glib/gmarkup.c
-+++ b/glib/gmarkup.c
-@@ -2366,6 +2366,9 @@ find_conversion (const char *format,
- *
- * Since: 2.4
- */
-+#pragma GCC diagnostic push
-+#pragma GCC diagnostic ignored "-Wformat-nonliteral"
-+
- gchar *
- g_markup_vprintf_escaped (const gchar *format,
- va_list args)
-@@ -2430,6 +2433,7 @@ g_markup_vprintf_escaped (const gchar *format,
- G_VA_COPY (args2, args);
-
- output1 = g_strdup_vprintf (format1->str, args);
-+
- if (!output1)
- {
- va_end (args2);
-@@ -2440,7 +2444,6 @@ g_markup_vprintf_escaped (const gchar *format,
- va_end (args2);
- if (!output2)
- goto cleanup;
--
- result = g_string_new (NULL);
-
- /* Iterate through the original format string again,
-@@ -2492,6 +2495,8 @@ g_markup_vprintf_escaped (const gchar *format,
- return NULL;
- }
-
-+#pragma GCC diagnostic pop
-+
- /**
- * g_markup_printf_escaped:
- * @format: printf() style format string
-diff --git a/glib/gstrfuncs.c b/glib/gstrfuncs.c
-index 9509233..4fcd91c 100644
---- a/glib/gstrfuncs.c
-+++ b/glib/gstrfuncs.c
-@@ -881,6 +881,9 @@ g_ascii_dtostr (gchar *buffer,
- return g_ascii_formatd (buffer, buf_len, "%.17g", d);
- }
-
-+#pragma GCC diagnostic push
-+#pragma GCC diagnostic ignored "-Wformat-nonliteral"
-+
- /**
- * g_ascii_formatd:
- * @buffer: A buffer to place the resulting string in
-@@ -909,7 +912,7 @@ g_ascii_formatd (gchar *buffer,
- locale_t old_locale;
-
- old_locale = uselocale (get_C_locale ());
-- _g_snprintf (buffer, buf_len, format, d);
-+ _g_snprintf (buffer, buf_len, format, d);
- uselocale (old_locale);
-
- return buffer;
-@@ -988,6 +991,7 @@ g_ascii_formatd (gchar *buffer,
- return buffer;
- #endif
- }
-+#pragma GCC diagnostic pop
-
- #define ISSPACE(c) ((c) == ' ' || (c) == '\f' || (c) == '\n' || \
- (c) == '\r' || (c) == '\t' || (c) == '\v')
-diff --git a/glib/gutils.c b/glib/gutils.c
-index 0a9944f..2620cb6 100644
---- a/glib/gutils.c
-+++ b/glib/gutils.c
-@@ -2148,6 +2148,9 @@ g_format_size (guint64 size)
- * Flags to modify the format of the string returned by g_format_size_full().
- */
-
-+#pragma GCC diagnostic push
-+#pragma GCC diagnostic ignored "-Wformat-nonliteral"
-+
- /**
- * g_format_size_full:
- * @size: a size in bytes
-@@ -2281,6 +2284,8 @@ g_format_size_full (guint64 size,
- return g_string_free (string, FALSE);
- }
-
-+#pragma GCC diagnostic pop
-+
- /**
- * g_format_size_for_display:
- * @size: a size in bytes
---
-1.8.3.rc0
-
diff --git a/modulesets/patches/0001-Bug-707945-GTK2-Quartz-typeahead-find-in-GtkTreeView.patch b/modulesets/patches/0001-Bug-707945-GTK2-Quartz-typeahead-find-in-GtkTreeView.patch
deleted file mode 100644
index c079f83..0000000
--- a/modulesets/patches/0001-Bug-707945-GTK2-Quartz-typeahead-find-in-GtkTreeView.patch
+++ /dev/null
@@ -1,69 +0,0 @@
-From 8407a6268b69ebf127240f5ad4372cabedb6891a Mon Sep 17 00:00:00 2001
-From: John Ralls
-Date: Sun, 28 Dec 2014 14:54:14 -0800
-Subject: [PATCH] Bug 707945 - GTK2/Quartz: 'typeahead find' in GtkTreeView no
- longer
-
-accepts text input
-
-Get win from the event rather than from the IMContextQuartz's client window,
-because it's the event window that will eventually be called on to insert
-the text.
----
- modules/input/imquartz.c | 26 +++++++++++++++++---------
- 1 file changed, 17 insertions(+), 9 deletions(-)
-
-diff --git a/modules/input/imquartz.c b/modules/input/imquartz.c
-index 67c7d6c..b72d05f 100644
---- a/modules/input/imquartz.c
-+++ b/modules/input/imquartz.c
-@@ -194,15 +194,6 @@ quartz_filter_keypress (GtkIMContext *context,
- if (!qc->client_window)
- return FALSE;
-
-- nsview = gdk_quartz_window_get_nsview (qc->client_window);
-- if (GDK_IS_WINDOW (nsview))
-- /* it gets GDK_WINDOW in some cases */
-- return gtk_im_context_filter_keypress (qc->slave, event);
-- else
-- win = (GdkWindow *)[ (GdkQuartzView *)nsview gdkWindow];
-- GTK_NOTE (MISC, g_print ("client_window: %p, win: %p, nsview: %p\n",
-- qc->client_window, win, nsview));
--
- NSEvent *nsevent = gdk_quartz_event_get_nsevent ((GdkEvent *)event);
-
- if (!nsevent)
-@@ -214,6 +205,22 @@ quartz_filter_keypress (GtkIMContext *context,
- return gtk_im_context_filter_keypress (qc->slave, event);
- }
-
-+ nsview = gdk_quartz_window_get_nsview (qc->client_window);
-+ if (GDK_IS_WINDOW (nsview))
-+ /* it gets GDK_WINDOW in some cases */
-+ return gtk_im_context_filter_keypress (qc->slave, event);
-+ else
-+ /* It's the window in the event, not the window that Gtk thinks
-+ * has focus, that NSTextInputClient calls to insert the text, so
-+ * we need to pass the right window to output_result in order to
-+ * get it back.
-+ */
-+ win = (GdkWindow *)[(GdkQuartzView *)[[nsevent window] contentView] gdkWindow];
-+
-+ GTK_NOTE (MISC, g_print ("client_window: %p, win: %p, nsview: %p\n",
-+ qc->client_window, win, nsview));
-+
-+
- if (event->type == GDK_KEY_RELEASE)
- return FALSE;
-
-@@ -226,6 +233,7 @@ quartz_filter_keypress (GtkIMContext *context,
- g_object_set_data (G_OBJECT (win), TIC_IN_KEY_DOWN,
- GUINT_TO_POINTER (TRUE));
- [nsview keyDown: nsevent];
-+
- }
- /* JIS_Eisu || JIS_Kana */
- if (event->hardware_keycode == 102 || event->hardware_keycode == 104)
---
-1.8.3.rc0
-
diff --git a/modulesets/patches/0001-Bug-708998-Avoid-infinite-loop.patch b/modulesets/patches/0001-Bug-708998-Avoid-infinite-loop.patch
deleted file mode 100644
index d5a8e72..0000000
--- a/modulesets/patches/0001-Bug-708998-Avoid-infinite-loop.patch
+++ /dev/null
@@ -1,42 +0,0 @@
-From e1dcd5c77d52db0033cafd23d84f392c4d9f457e Mon Sep 17 00:00:00 2001
-From: Hamish Mackenzie
-Date: Sun, 29 Sep 2013 05:06:53 +1300
-Subject: [PATCH] Fix infinite loop in gdkevents.c _gdk_event_queue_find_first
-
----
- gdk/gdkevents.c | 18 +++++++++---------
- 1 file changed, 9 insertions(+), 9 deletions(-)
-
-diff --git a/gdk/gdkevents.c b/gdk/gdkevents.c
-index 327b543..e770f47 100644
---- a/gdk/gdkevents.c
-+++ b/gdk/gdkevents.c
-@@ -96,16 +96,16 @@ _gdk_event_queue_find_first (GdkDisplay *display)
- {
- GdkEventPrivate *event = tmp_list->data;
-
-- if (event->flags & GDK_EVENT_PENDING)
-- continue;
--
-- if (pending_motion)
-- return pending_motion;
-+ if (!(event->flags & GDK_EVENT_PENDING))
-+ {
-+ if (pending_motion)
-+ return pending_motion;
-
-- if (event->event.type == GDK_MOTION_NOTIFY && !display->flushing_events)
-- pending_motion = tmp_list;
-- else
-- return tmp_list;
-+ if (event->event.type == GDK_MOTION_NOTIFY && !display->flushing_events)
-+ pending_motion = tmp_list;
-+ else
-+ return tmp_list;
-+ }
-
- tmp_list = g_list_next (tmp_list);
- }
---
-1.7.12.4 (Apple Git-37)
-
diff --git a/modulesets/patches/0001-Bug-709939-quartz-window-pos.patch b/modulesets/patches/0001-Bug-709939-quartz-window-pos.patch
deleted file mode 100644
index e895bc5..0000000
--- a/modulesets/patches/0001-Bug-709939-quartz-window-pos.patch
+++ /dev/null
@@ -1,17 +0,0 @@
-diff --git a/gdk/quartz/gdkscreen-quartz.c b/gdk/quartz/gdkscreen-quartz.c
-index e83c87b..e28f3b2 100644
---- a/gdk/quartz/gdkscreen-quartz.c
-+++ b/gdk/quartz/gdkscreen-quartz.c
-@@ -208,7 +208,11 @@ _gdk_quartz_screen_update_window_sizes (GdkScreen *screen)
- windows = gdk_screen_get_toplevel_windows (screen);
-
- for (list = windows; list; list = list->next)
-- _gdk_quartz_window_update_position (list->data);
-+ {
-+ if (GDK_WINDOW_TYPE(list->data) == GDK_WINDOW_OFFSCREEN)
-+ continue;
-+ _gdk_quartz_window_update_position (list->data);
-+ }
-
- g_list_free (windows);
- }
diff --git a/modulesets/patches/0001-Fix-DnD-Introspection-on-Quartz-Backend.patch b/modulesets/patches/0001-Fix-DnD-Introspection-on-Quartz-Backend.patch
deleted file mode 100644
index 637dd99..0000000
--- a/modulesets/patches/0001-Fix-DnD-Introspection-on-Quartz-Backend.patch
+++ /dev/null
@@ -1,26 +0,0 @@
-From 673013ac67e322ff86193001131255fc24a68d5e Mon Sep 17 00:00:00 2001
-From: John Ralls
-Date: Fri, 29 May 2015 13:04:07 -0700
-Subject: [PATCH] Fix DnD Introspection on Quartz Backend.
-
-Don't exclude the -quartz.c files from introspection_files.
----
- gtk/Makefile.am | 2 +-
- 1 file changed, 1 insertion(+), 1 deletion(-)
-
-diff --git a/gtk/Makefile.am b/gtk/Makefile.am
-index 51153e6..ae4ae62 100644
---- a/gtk/Makefile.am
-+++ b/gtk/Makefile.am
-@@ -1331,7 +1331,7 @@ distclean-local:
- if HAVE_INTROSPECTION
- introspection_files = \
- $(filter-out %private.h gtktextdisplay.h gtktextlayout.h gtkx.h, $(gtkinclude_HEADERS) $(a11yinclude_HEADERS) $(deprecatedinclude_HEADERS)) \
-- $(filter-out %win32.c %quartz.c, $(gtk_base_c_sources)) \
-+ $(filter-out %win32.c, $(gtk_base_c_sources)) \
- gtkprintoperation-unix.c \
- gtktypebuiltins.h \
- gtktypebuiltins.c
---
-2.2.2
-
diff --git a/modulesets/patches/0001-Fix-relative-module-paths.patch b/modulesets/patches/0001-Fix-relative-module-paths.patch
deleted file mode 100644
index e5722ec..0000000
--- a/modulesets/patches/0001-Fix-relative-module-paths.patch
+++ /dev/null
@@ -1,42 +0,0 @@
-From 2332e82a1415696a36f138768b8330c1e97d3a89 Mon Sep 17 00:00:00 2001
-From: John Ralls
-Date: Sat, 3 Nov 2012 11:46:59 -0700
-Subject: [PATCH] Fix relative module paths
-
-So that the created absolute path is where the modules are installed
-instead of where the modules file is installed (i.e.,
-lib/pango/1.8.0/modules instead of etc/pango).
----
- pango/modules.c | 16 +++++++++++-----
- 1 file changed, 11 insertions(+), 5 deletions(-)
-
-diff --git a/pango/modules.c b/pango/modules.c
-index 644cc9c..c5a19f2 100644
---- a/pango/modules.c
-+++ b/pango/modules.c
-@@ -450,11 +450,17 @@ process_module_file (FILE *module_file, const gchar *module_file_dir)
- switch (i)
- {
- case 0:
-- if (!g_path_is_absolute (tmp_buf->str)) {
-- const gchar *abs_file_name = g_build_filename (module_file_dir, tmp_buf->str, NULL);
-- g_string_assign (tmp_buf, abs_file_name);
-- g_free ((gpointer) abs_file_name);
-- }
-+ if (!g_path_is_absolute (tmp_buf->str))
-+ {
-+ const gchar *lib_dir = pango_get_lib_subdirectory ();
-+ const gchar *abs_file_name = g_build_filename (lib_dir,
-+ MODULE_VERSION,
-+ "modules",
-+ tmp_buf->str,
-+ NULL);
-+ g_string_assign (tmp_buf, abs_file_name);
-+ g_free ((gpointer) abs_file_name);
-+ }
- pair->module = find_or_create_module (tmp_buf->str);
- break;
- case 1:
---
-1.7.9.6 (Apple Git-31.1)
-
diff --git a/modulesets/patches/0001-Make-ATSUI-backend-compile-again.patch b/modulesets/patches/0001-Make-ATSUI-backend-compile-again.patch
deleted file mode 100644
index b53634a..0000000
--- a/modulesets/patches/0001-Make-ATSUI-backend-compile-again.patch
+++ /dev/null
@@ -1,74 +0,0 @@
-From 18dc8d4059c6c21f62caa75d0e0ff7d3d14d8649 Mon Sep 17 00:00:00 2001
-From: Kristian Rietveld
-Date: Fri, 1 Jul 2011 21:08:39 +0200
-Subject: [PATCH] Make ATSUI backend compile again
-
-Commit 02f80c9acdec53f58fef0e12f41363c3c4ea1efe broke the build and was
-likely committed untested.
-
-pango-1-29-4 was branched from tag 1.29.3, before this fix was applied
-to master.
-
-Note that the problem affects only OS X 10.4 (Tiger); pango builds on
-later OS X versions without this change.
----
- pango/pangoatsui-fontmap.c | 8 ++++++--
- pango/pangoatsui-private.h | 2 ++
- 2 files changed, 8 insertions(+), 2 deletions(-)
-
-diff --git a/pango/pangoatsui-fontmap.c b/pango/pangoatsui-fontmap.c
-index 8eb123a..c169f0d 100644
---- a/pango/pangoatsui-fontmap.c
-+++ b/pango/pangoatsui-fontmap.c
-@@ -70,6 +70,8 @@ struct _PangoATSUIFace
- static GType pango_atsui_family_get_type (void);
- static GType pango_atsui_face_get_type (void);
-
-+static gpointer pango_atsui_face_parent_class;
-+
- static const char *
- get_real_family (const char *family_name)
- {
-@@ -200,6 +202,8 @@ pango_atsui_family_is_monospace (PangoFontFamily *family)
- return atsuifamily->is_monospace;
- }
-
-+G_DEFINE_TYPE (PangoATSUIFamily, pango_atsui_family, PANGO_TYPE_FONT_FAMILY);
-+
- static void
- pango_atsui_family_finalize (GObject *object)
- {
-@@ -219,8 +223,6 @@ pango_atsui_family_finalize (GObject *object)
- G_OBJECT_CLASS (pango_atsui_family_parent_class)->finalize (object);
- }
-
--G_DEFINE_TYPE (PangoATSUIFamilyClass, pango_atsui_family, PANGO_TYPE_FONT_FAMILY);
--
- static void
- pango_atsui_family_class_init (PangoATSUIFamilyClass *class)
- {
-@@ -337,6 +339,8 @@ pango_atsui_face_class_init (PangoFontFaceClass *class)
- {
- GObjectClass *object_class = (GObjectClass *)class;
-
-+ pango_atsui_face_parent_class = g_type_class_peek_parent (class);
-+
- object_class->finalize = pango_atsui_face_finalize;
-
- class->describe = pango_atsui_face_describe;
-diff --git a/pango/pangoatsui-private.h b/pango/pangoatsui-private.h
-index a5ab0cb..81bcf60 100644
---- a/pango/pangoatsui-private.h
-+++ b/pango/pangoatsui-private.h
-@@ -38,6 +38,8 @@ G_BEGIN_DECLS
-
-
- typedef struct _PangoATSUIFamily PangoATSUIFamily;
-+typedef struct _PangoFontFamilyClass PangoATSUIFamilyClass;
-+
- typedef struct _PangoATSUIFace PangoATSUIFace;
-
- typedef struct _PangoATSUIFontMap PangoATSUIFontMap;
---
-1.7.6.3.dirty
-
diff --git a/modulesets/patches/0001-Patch-Orbit-2.14.19-to-master-for-current-GLib.patch b/modulesets/patches/0001-Patch-Orbit-2.14.19-to-master-for-current-GLib.patch
deleted file mode 100644
index 12ddbc7..0000000
--- a/modulesets/patches/0001-Patch-Orbit-2.14.19-to-master-for-current-GLib.patch
+++ /dev/null
@@ -1,1963 +0,0 @@
-From 8b6f17f1bf1a253b5d39bfd30c764c63b65001ef Mon Sep 17 00:00:00 2001
-From: John Ralls
-Date: Tue, 1 Oct 2013 16:37:01 -0700
-Subject: [PATCH] Patch Orbit-2.14.19 to master for current GLib
-
----
- NEWS | 7 +
- configure.ac | 424 ++++++++++++++++++++++++++++++++
- configure.in | 413 -------------------------------
- include/orbit/GIOP/giop-types.h | 5 +
- include/orbit/GIOP/giop.h | 1 +
- include/orbit/orb-core/corba-orb-type.h | 3 +
- include/orbit/orb-core/corba-orb.h | 2 +
- include/orbit/poa/orbit-adaptor.h | 3 +
- include/orbit/util/basic_types.h | 8 -
- linc2/src/Makefile.am | 6 +-
- linc2/src/linc-connection.c | 17 +-
- linc2/src/linc-private.h | 3 +
- linc2/src/linc-protocols.c | 1 +
- linc2/src/linc.c | 40 ++-
- linc2/test/Makefile.am | 2 +-
- src/idl-compiler/Makefile.am | 2 +-
- src/orb/GIOP/Makefile.am | 2 +-
- src/orb/GIOP/giop-recv-buffer.c | 14 +-
- src/orb/GIOP/giop-send-buffer.c | 9 +-
- src/orb/GIOP/giop.c | 38 ++-
- src/orb/Makefile.am | 2 +-
- src/orb/dynamic/Makefile.am | 2 +-
- src/orb/orb-core/Makefile.am | 2 +-
- src/orb/orb-core/corba-object.c | 8 +
- src/orb/orb-core/corba-orb.c | 24 +-
- src/orb/poa/Makefile.am | 2 +-
- src/orb/poa/poa.c | 25 +-
- src/orb/util/Makefile.am | 2 +-
- src/orb/util/genrand.c | 13 +-
- src/services/imodule/Makefile.am | 2 +-
- src/services/name/Makefile.am | 2 +-
- test/Makefile.am | 2 +-
- test/everything/Makefile.am | 4 +-
- test/everything/client.c | 14 +-
- test/everything/server.c | 3 +-
- test/inhibit/Makefile.am | 2 +-
- test/poa/Makefile.am | 2 +-
- test/poa/poatest-basic-shell.c | 3 +-
- test/test-corbaloc.c | 4 +-
- test/test-dynany.c | 5 +-
- test/test-giop.c | 4 +-
- test/test-mem.c | 8 +-
- test/test-performance.c | 2 +
- test/timeout-client.c | 2 +
- test/timeout-server.c | 3 +-
- 45 files changed, 662 insertions(+), 480 deletions(-)
- create mode 100644 configure.ac
- delete mode 100644 configure.in
-
-diff --git a/NEWS b/NEWS
-index bddfdff..7734385 100644
---- a/NEWS
-+++ b/NEWS
-@@ -1,3 +1,10 @@
-+ORBit2-2.14.20
-+
-+ - build fixes
-+ + Stop using -DG_DISABLE_DEPRECATED since it doesn't build
-+ + Use AM_CPPFLAGS instead of INCLUDES
-+ + Move configure.in to configure.ac
-+
- ORBit2-2.14.19
-
- - bug fixes
-diff --git a/configure.ac b/configure.ac
-new file mode 100644
-index 0000000..61aa74c
---- /dev/null
-+++ b/configure.ac
-@@ -0,0 +1,424 @@
-+m4_define([orbit_major_version],[2])
-+m4_define([orbit_minor_version],[14])
-+m4_define([orbit_micro_version],[20])
-+m4_define([orbit_version],[orbit_major_version.orbit_minor_version.orbit_micro_version])
-+
-+dnl Process this file with autoconf to produce a configure script.
-+AC_INIT([ORBit2],[orbit_version],[http://bugzilla.gnome.org/enter_bug.cgi?product=ORBit2],[ORBit2])
-+
-+# Process this file with autoconf to produce a configure script.
-+# require autoconf 2.60
-+AC_PREREQ(2.60)
-+
-+# Before making a release, the LT_VERSION string should be modified.
-+# The string is of the form C:R:A.
-+# - If interfaces have been changed or added, but binary compatibility has
-+# been preserved, change to C+1:0:A+1
-+# - If binary compatibility has been broken (eg removed or changed interfaces)
-+# change to C+1:0:0
-+# - If the interface is the same as the previous version, change to C:R+1:A
-+
-+LT_VERSION=1:0:1
-+AC_SUBST(LT_VERSION)
-+
-+ORBIT_MAJOR_VERSION=orbit_major_version
-+ORBIT_MINOR_VERSION=orbit_minor_version
-+ORBIT_MICRO_VERSION=orbit_micro_version
-+ORBIT_VERSION=orbit_version
-+AC_SUBST(ORBIT_MAJOR_VERSION)
-+AC_SUBST(ORBIT_MINOR_VERSION)
-+AC_SUBST(ORBIT_MICRO_VERSION)
-+AC_SUBST(ORBIT_VERSION)
-+
-+# Increment this every time a feature is added in the .idl compiler
-+# that needs help from the main libraries.
-+ORBIT_SERIAL=20
-+AC_SUBST(ORBIT_SERIAL)
-+
-+# For automake.
-+
-+AC_CONFIG_HEADERS([config.h])
-+
-+dnl Initialize automake stuff
-+AM_INIT_AUTOMAKE([1.9 no-dist-gzip dist-bzip2 no-define])
-+
-+dnl Required by autoconf 2.60
-+AC_SUBST(datarootdir)
-+
-+AC_CANONICAL_HOST
-+AC_MSG_CHECKING([for Win32])
-+case "$host" in
-+ *-*-mingw*)
-+ os_win32=yes
-+ LIBM=
-+ MINGW_LDFLAGS="-Wl,--enable-runtime-pseudo-reloc"
-+ ;;
-+ *)
-+ os_win32=no
-+ LIBM=-lm
-+ MINGW_LDFLAGS=
-+ ;;
-+esac
-+AC_MSG_RESULT([$os_win32])
-+
-+AM_CONDITIONAL(OS_WIN32, [test "$os_win32" = "yes"])
-+
-+AC_SUBST(LIBM)
-+AC_SUBST(MINGW_LDFLAGS)
-+LDFLAGS="$MINGW_LDFLAGS $LDFLAGS"
-+
-+if test "$os_win32" = "yes"; then
-+ if test x$enable_static = xyes -o x$enable_static = x; then
-+ AC_MSG_WARN([Disabling static library build, must build as DLL on Windows.])
-+ enable_static=no
-+ fi
-+ if test x$enable_shared = xno; then
-+ AC_MSG_WARN([Enabling shared library build, must build as DLL on Windows.])
-+ fi
-+ enable_shared=yes
-+fi
-+
-+dnl Checks for programs.
-+AC_PROG_CC
-+AC_PROG_INSTALL
-+
-+AC_LIBTOOL_DLOPEN
-+AC_LIBTOOL_WIN32_DLL
-+AM_PROG_LIBTOOL
-+AM_MAINTAINER_MODE([enable])
-+
-+dnl Useful for automating stuff
-+AC_CACHE_CHECK([for aclocal flags], ac_cv_orbit_aclocal_flags,[
-+ ac_cv_orbit_aclocal_flags="$ACLOCAL_FLAGS"
-+])
-+ACLOCAL="$ACLOCAL $ac_cv_orbit_aclocal_flags"
-+
-+AC_ARG_ENABLE(http, [--enable-http enables http connections],, enable_http=no)
-+AM_CONDITIONAL(ENABLE_HTTP, test x"$enable_http" = xyes)
-+if test x"$enable_http" = xyes ; then
-+ AC_DEFINE(ENABLE_HTTP, 1, [Define if HTTP connections are available])
-+fi
-+dnl --enable-compile-warnings
-+AC_ARG_ENABLE(compile-warnings, [ --enable-compile-warnings=[no/yes] Turn on compiler warnings.], [enable_compile_warnings="$enableval"],[enable_compile_warnings="yes"])
-+
-+dnl --enable-debug=(yes|minimum|no)
-+AC_ARG_ENABLE(debug, [ --enable-debug=[no/yes] turn on debugging [default=no]],,enable_debug=minimum)
-+if test "x$enable_debug" = "xyes"; then
-+ ORBIT_DEBUG_CFLAGS="-ggdb -O0 -DG_ENABLE_DEBUG"
-+else
-+ if test "x$enable_debug" = "xno"; then
-+ ORBIT_DEBUG_CFLAGS="-DG_DISABLE_ASSERT -DG_DISABLE_CHECKS"
-+ else
-+ ORBIT_DEBUG_CFLAGS=""
-+ fi
-+fi
-+
-+AC_ARG_ENABLE(purify, [ --enable-purify be clean for memory debuggers], enable_purify=yes, enable_purify=no)
-+if test z$enable_purify = zyes; then
-+ AC_DEFINE(ORBIT_PURIFY, 1, [defined if purify is enabled])
-+fi
-+
-+AC_MSG_CHECKING(which idl compiler to use)
-+IDL_COMPILER="\$(top_builddir)/src/idl-compiler/orbit-idl-2\$(EXEEXT)"
-+AC_ARG_WITH(idl-compiler,
-+ [ --with-idl-compiler use specific idl compiler (useful when crosscompiling)],
-+ if test "x$withval" != x; then
-+ if test -f "$withval"; then
-+ IDL_COMPILER=$withval
-+ fi
-+ fi
-+)
-+if test x$IDL_COMPILER == x"\$(top_builddir)/src/idl-compiler/orbit-idl-2\$(EXEEXT)"; then
-+ AC_MSG_RESULT(internal)
-+else
-+ AC_MSG_RESULT(external ($IDL_COMPILER))
-+fi
-+AC_SUBST(IDL_COMPILER)
-+
-+AC_PROG_AWK
-+
-+GLIB_REQUIRED=2.8.0
-+LIBIDL_REQUIRED=0.8.2
-+AC_SUBST(GLIB_REQUIRED)
-+AC_SUBST(LIBIDL_REQUIRED)
-+
-+dnl Check for pkg-config version; want >= 0.14.0 because of -pthread bug
-+PKG_PROG_PKG_CONFIG([0.18])
-+
-+LOCAL_LINC_LIBS='$(top_builddir)/linc2/src/liblinc.la'
-+LOCAL_LINC_CFLAGS='-I$(top_srcdir)/linc2/include -I$(top_builddir)/linc2/include'
-+AC_SUBST(LOCAL_LINC_LIBS)
-+AC_SUBST(LOCAL_LINC_CFLAGS)
-+
-+dnl Checks for libraries.
-+PKG_CHECK_MODULES(ORBIT, \
-+ glib-2.0 >= $GLIB_REQUIRED \
-+ gobject-2.0 >= $GLIB_REQUIRED \
-+ gthread-2.0 >= $GLIB_REQUIRED \
-+ gmodule-2.0 >= $GLIB_REQUIRED)
-+AC_SUBST(ORBIT_LIBS)
-+AC_SUBST(ORBIT_CFLAGS)
-+
-+PKG_CHECK_MODULES(ORBIT_IDL, \
-+ libIDL-2.0 >= $LIBIDL_REQUIRED \
-+ glib-2.0 >= $GLIB_REQUIRED \
-+ gobject-2.0 >= $GLIB_REQUIRED \
-+ gmodule-2.0 >= $GLIB_REQUIRED)
-+AC_SUBST(ORBIT_IDL_LIBS)
-+AC_SUBST(ORBIT_IDL_CFLAGS)
-+
-+PKG_CHECK_MODULES(ORBIT_NAME,
-+ glib-2.0 >= $GLIB_REQUIRED \
-+ gobject-2.0 >= $GLIB_REQUIRED \
-+ gthread-2.0 >= $GLIB_REQUIRED \
-+ gmodule-2.0 >= $GLIB_REQUIRED)
-+AC_SUBST(ORBIT_NAME_LIBS)
-+AC_SUBST(ORBIT_NAME_CFLAGS)
-+
-+dnl Checks for header files.
-+AC_HEADER_STDC
-+AC_CHECK_HEADERS(fcntl.h unistd.h sys/endian.h endian.h machine/endian.h)
-+AC_CHECK_HEADERS(sys/machine.h sys/isa_defs.h sys/poll.h sys/select.h)
-+AC_CHECK_HEADERS(sys/time.h netinet/in.h sys/socket.h arpa/inet.h)
-+AC_CHECK_HEADERS(stddef.h wchar.h wcstr.h wctype.h machine/types.h)
-+AC_CHECK_HEADERS(sys/un.h sys/uio.h syslog.h)
-+AC_CHECK_HEADERS(sys/wait.h netdb.h)
-+AC_CHECK_HEADERS(utime.h sys/utime.h)
-+AC_CHECK_HEADERS([linux/socket.h])
-+AC_CHECK_HEADERS(sys/sockio.h)
-+
-+if test "$os_win32" = "yes"; then
-+ AC_CHECK_HEADERS(winsock2.h)
-+ if test $ac_cv_header_winsock2_h = yes; then
-+ dnl If we have , assume we find the functions
-+ dnl in -lws2_32.
-+ LIBS="-lws2_32 $LIBS"
-+ fi
-+fi
-+
-+dnl Checks for typedefs, structures, and compiler characteristics.
-+AC_C_CONST
-+AC_C_INLINE
-+AC_TYPE_SIZE_T
-+
-+dnl Checks for library functions.
-+AC_FUNC_VPRINTF
-+
-+AC_CHECK_FUNC(socket,,[AC_CHECK_LIB(socket,socket)])
-+AC_CHECK_FUNC(gethostbyname,,[AC_CHECK_LIB(nsl,gethostbyname)])
-+AC_CHECK_FUNC(sigaction)
-+AC_CHECK_FUNC(syslog)
-+
-+dnl This generates warnings from autoconf...
-+AC_C_BIGENDIAN
-+
-+
-+dnl
-+dnl So many people with broken linking setups asked about this
-+dnl it turned out to be necessary to check for this.
-+dnl
-+dofus_save_libs="$LIBS"
-+LIBS="$ORBIT_LIBS $LIBS"
-+AC_TRY_RUN([ #include
-+ main ()
-+ {
-+ return 0;
-+ } ],,
-+ AC_MSG_ERROR([
-+Linking is badly borked on your system. Please ensure your library path is correct
-+Check config.log for details - check near the end of the log above 'failed program was'
-+Alternatively ensure that your /etc/ld.so.conf (and/or LD_LIBRARY_PATH) includes the
-+prefix you're compiling on: '${prefix}' ]),
-+AC_MSG_WARN([Could not check for borked linking while cross-compiling]))
-+LIBS="$dofus_save_libs"
-+
-+orig_CPPFLAGS=$CPPFLAGS
-+CPPFLAGS="$CPPFLAGS $ORBIT_CFLAGS"
-+AC_CHECK_ALIGNOF(CORBA_octet)
-+AC_CHECK_ALIGNOF(CORBA_boolean)
-+AC_CHECK_ALIGNOF(CORBA_char)
-+AC_CHECK_ALIGNOF(CORBA_wchar)
-+AC_CHECK_ALIGNOF(CORBA_short)
-+AC_CHECK_ALIGNOF(CORBA_long)
-+AC_CHECK_ALIGNOF(CORBA_long_long)
-+AC_CHECK_ALIGNOF(CORBA_float)
-+AC_CHECK_ALIGNOF(CORBA_double)
-+AC_CHECK_ALIGNOF(CORBA_long_double)
-+AC_CHECK_ALIGNOF(CORBA_struct)
-+AC_CHECK_ALIGNOF(CORBA_pointer)
-+CPPFLAGS=$orig_CPPFLAGS
-+
-+if test "x$GCC" = "xyes" -a "x$enable_compile_warnings" != "xno"; then
-+ WARN_CFLAGS="-Wall -Wunused -Wmissing-prototypes -Wmissing-declarations"
-+else
-+ WARN_CFLAGS=
-+fi
-+
-+AC_MSG_CHECKING(what warning flags to pass to the C compiler)
-+AC_MSG_RESULT($WARN_CFLAGS)
-+AC_SUBST(WARN_CFLAGS)
-+
-+AC_SUBST(pkglibdir)
-+
-+if test "$enable_maintainer_mode" = "yes"; then
-+ DISABLE_DEPRECATED_CFLAGS=" \
-+ -DG_DISABLE_SINGLE_INCLUDES"
-+ AC_SUBST(DISABLE_DEPRECATED_CFLAGS)
-+fi
-+
-+dnl
-+dnl --------- start linc bits ---------
-+dnl
-+
-+dnl Checks for libraries.
-+PKG_CHECK_MODULES(LINC, glib-2.0 >= $GLIB_REQUIRED gobject-2.0 >= $GLIB_REQUIRED gthread-2.0 >= $GLIB_REQUIRED)
-+AC_SUBST(LINC_LIBS)
-+AC_SUBST(LINC_CFLAGS)
-+PKG_CHECK_MODULES(GLIB, glib-2.0 >= 2.36 gthread-2.0 gobject-2.0 gmodule-2.0,
-+[
-+ AC_DEFINE([HAVE_GLIB_2_36], [1], [Configure g_type_init deprecation])
-+ AC_DEFINE([HAVE_GLIB_2_32], [1], [Configure gthread deprecations])
-+],
-+ [PKG_CHECK_MODULES(GLIB, glib-2.0 >= 2.32 gthread-2.0 gobject-2.0 gmodule-2.0,
-+ [
-+ AC_DEFINE([HAVE_GLIB_2_32], [1], [Configure gthread deprecations])
-+ ])
-+])
-+
-+dnl Checks for header files.
-+AC_HEADER_STDC
-+AC_HEADER_RESOLV
-+AC_CHECK_HEADERS(fcntl.h unistd.h sys/endian.h endian.h machine/endian.h sys/machine.h sys/isa_defs.h sys/poll.h)
-+AC_CHECK_HEADERS(stddef.h wchar.h wcstr.h wctype.h machine/types.h)
-+AC_CHECK_HEADERS(netinet/in.h netinet/tcp.h sys/un.h)
-+AC_CHECK_HEADERS(arpa/nameser.h)
-+dnl AC_CHECK_HEADERS(linux/irda.h)
-+
-+dnl Checks for library functions.
-+AC_CHECK_FUNCS(poll basename)
-+AC_CHECK_FUNC(res_init,,[AC_CHECK_LIB(resolv,res_init)])
-+AC_CHECK_LIB(resolv,res_9_init)
-+AC_CHECK_FUNC(socket,,[AC_CHECK_LIB(socket,socket)])
-+AC_CHECK_FUNC(gethostbyname,,[AC_CHECK_LIB(nsl,gethostbyname)])
-+AC_CHECK_FUNC(getaddrinfo,,[AC_CHECK_LIB(nsl,getaddrinfo)])
-+if test x"$ac_cv_func_getaddrinfo" = "xyes" ; then
-+ AC_DEFINE(HAVE_GETADDRINFO, 1, [Define if getaddrinfo() is available])
-+fi
-+AC_CHECK_FUNC(getnameinfo,,[AC_CHECK_LIB(nsl,getnameinfo)])
-+if test x"$ac_cv_func_getnameinfo" = "xyes" ; then
-+ AC_DEFINE(HAVE_GETNAMEINFO, 1, [Define if getnameinfo() is available])
-+fi
-+have_inet_pton=no
-+AC_CHECK_FUNC(inet_pton,,)
-+if test x"$ac_cv_func_inet_pton" = "xyes" ; then
-+ have_inet_pton=yes
-+ AC_DEFINE(HAVE_INET_PTON, 1, [Define if inet_pton() is available])
-+fi
-+
-+# AC_CHECK_TYPE doesn't work here.
-+AC_MSG_CHECKING([for socklen_t])
-+AC_TRY_COMPILE(
-+ [#ifdef _WIN32
-+#include
-+#else
-+#include
-+#include
-+#endif],
-+ [socklen_t len;],
-+ [AC_MSG_RESULT(yes)],
-+ [AC_DEFINE(socklen_t, size_t, [Define socklen_t to be of type size_t])
-+ AC_MSG_RESULT(no)])
-+
-+# Blatantly stolen from configure.in in the sample code from
-+# "UNIX Network Programming, Volume 1" by W. Richard Stevens
-+AC_CACHE_CHECK(if sockaddr has sa_len member,
-+ac_cv_sockaddr_has_sa_len,
-+ AC_TRY_COMPILE([
-+# include
-+# include ],
-+ [unsigned int i = sizeof(((struct sockaddr *)0)->sa_len)],
-+ ac_cv_sockaddr_has_sa_len=yes,
-+ ac_cv_sockaddr_has_sa_len=no))
-+if test x"$ac_cv_sockaddr_has_sa_len" = "xyes" ; then
-+ AC_DEFINE(HAVE_SOCKADDR_SA_LEN, 1, [Define if sockaddr has sa_len member])
-+fi
-+
-+dnl
-+dnl --------- end linc bits ---------
-+dnl
-+
-+dnl
-+dnl --------- set additional gcc flags to catch errors ---------
-+dnl
-+AX_CFLAGS_GCC_OPTION(-Werror-implicit-function-declaration)
-+CFLAGS="$CFLAGS $ORBIT_DEBUG_CFLAGS"
-+AC_SUBST(CFLAGS)
-+
-+
-+dnl ----- gtk-doc ------
-+GTK_DOC_CHECK([1.0])
-+
-+
-+AC_CONFIG_FILES([
-+Makefile
-+orbit2-config
-+ORBit-2.0.pc
-+ORBit-2.0-uninstalled.pc
-+ORBit-CosNaming-2.0.pc
-+ORBit-CosNaming-2.0-uninstalled.pc
-+ORBit-imodule-2.0.pc
-+ORBit-imodule-2.0-uninstalled.pc
-+ORBit.spec
-+orbit2-zip
-+src/Makefile
-+src/idl-compiler/Makefile
-+src/idl-compiler/ORBit-idl-2.0.pc
-+src/idl/Makefile
-+src/idl/CORBA/Makefile
-+src/idl/CORBA_PIDL/Makefile
-+src/idl/interop/Makefile
-+src/idl/misc/Makefile
-+src/orb/Makefile
-+src/orb/include/Makefile
-+src/orb/util/Makefile
-+src/orb/GIOP/Makefile
-+src/orb/orb-core/Makefile
-+src/orb/dynamic/Makefile
-+src/orb/poa/Makefile
-+src/services/Makefile
-+src/services/name/Makefile
-+src/services/imodule/Makefile
-+include/Makefile
-+include/orbit/Makefile
-+include/orbit/orbit-config.h
-+include/orbit/GIOP/Makefile
-+include/orbit/util/Makefile
-+include/orbit/orb-core/Makefile
-+include/orbit/poa/Makefile
-+include/orbit/dynamic/Makefile
-+test/Makefile
-+test/everything/Makefile
-+test/inhibit/Makefile
-+test/poa/Makefile
-+docs/Makefile
-+docs/devel/Makefile
-+docs/internals/Makefile
-+docs/api/Makefile
-+
-+linc2/Makefile
-+linc2/src/Makefile
-+linc2/test/Makefile
-+linc2/include/Makefile
-+linc2/include/linc/Makefile
-+linc2/include/linc/linc-config.h
-+])
-+
-+AC_OUTPUT
-+
-+echo "ORBit configuration:
-+
-+ Source code location: ${srcdir}
-+ Compiler: ${CC}
-+
-+ Purify cleanliness: ${enable_purify}
-+"
-diff --git a/configure.in b/configure.in
-deleted file mode 100644
-index 04d4b2a..0000000
---- a/configure.in
-+++ /dev/null
-@@ -1,413 +0,0 @@
--m4_define([orbit_major_version],[2])
--m4_define([orbit_minor_version],[14])
--m4_define([orbit_micro_version],[19])
--m4_define([orbit_version],[orbit_major_version.orbit_minor_version.orbit_micro_version])
--
--dnl Process this file with autoconf to produce a configure script.
--AC_INIT([ORBit2],[orbit_version],[http://bugzilla.gnome.org/enter_bug.cgi?product=ORBit2],[ORBit2])
--
--# Process this file with autoconf to produce a configure script.
--# require autoconf 2.54
--AC_PREREQ(2.54)
--
--# Before making a release, the LT_VERSION string should be modified.
--# The string is of the form C:R:A.
--# - If interfaces have been changed or added, but binary compatibility has
--# been preserved, change to C+1:0:A+1
--# - If binary compatibility has been broken (eg removed or changed interfaces)
--# change to C+1:0:0
--# - If the interface is the same as the previous version, change to C:R+1:A
--
--LT_VERSION=1:0:1
--AC_SUBST(LT_VERSION)
--
--ORBIT_MAJOR_VERSION=orbit_major_version
--ORBIT_MINOR_VERSION=orbit_minor_version
--ORBIT_MICRO_VERSION=orbit_micro_version
--ORBIT_VERSION=orbit_version
--AC_SUBST(ORBIT_MAJOR_VERSION)
--AC_SUBST(ORBIT_MINOR_VERSION)
--AC_SUBST(ORBIT_MICRO_VERSION)
--AC_SUBST(ORBIT_VERSION)
--
--# Increment this every time a feature is added in the .idl compiler
--# that needs help from the main libraries.
--ORBIT_SERIAL=20
--AC_SUBST(ORBIT_SERIAL)
--
--# For automake.
--
--AC_CONFIG_HEADERS([config.h])
--
--dnl Initialize automake stuff
--AM_INIT_AUTOMAKE([1.9 no-dist-gzip dist-bzip2 no-define])
--
--dnl Required by autoconf 2.60
--AC_SUBST(datarootdir)
--
--AC_CANONICAL_HOST
--AC_MSG_CHECKING([for Win32])
--case "$host" in
-- *-*-mingw*)
-- os_win32=yes
-- LIBM=
-- MINGW_LDFLAGS="-Wl,--enable-runtime-pseudo-reloc"
-- ;;
-- *)
-- os_win32=no
-- LIBM=-lm
-- MINGW_LDFLAGS=
-- ;;
--esac
--AC_MSG_RESULT([$os_win32])
--
--AM_CONDITIONAL(OS_WIN32, [test "$os_win32" = "yes"])
--
--AC_SUBST(LIBM)
--AC_SUBST(MINGW_LDFLAGS)
--LDFLAGS="$MINGW_LDFLAGS $LDFLAGS"
--
--if test "$os_win32" = "yes"; then
-- if test x$enable_static = xyes -o x$enable_static = x; then
-- AC_MSG_WARN([Disabling static library build, must build as DLL on Windows.])
-- enable_static=no
-- fi
-- if test x$enable_shared = xno; then
-- AC_MSG_WARN([Enabling shared library build, must build as DLL on Windows.])
-- fi
-- enable_shared=yes
--fi
--
--dnl Checks for programs.
--AC_PROG_CC
--AC_PROG_INSTALL
--
--AC_LIBTOOL_DLOPEN
--AC_LIBTOOL_WIN32_DLL
--AM_PROG_LIBTOOL
--AM_MAINTAINER_MODE
--
--dnl Useful for automating stuff
--AC_CACHE_CHECK([for aclocal flags], ac_cv_orbit_aclocal_flags,[
-- ac_cv_orbit_aclocal_flags="$ACLOCAL_FLAGS"
--])
--ACLOCAL="$ACLOCAL $ac_cv_orbit_aclocal_flags"
--
--AC_ARG_ENABLE(http, [--enable-http enables http connections],, enable_http=no)
--AM_CONDITIONAL(ENABLE_HTTP, test x"$enable_http" = xyes)
--if test x"$enable_http" = xyes ; then
-- AC_DEFINE(ENABLE_HTTP, 1, [Define if HTTP connections are available])
--fi
--dnl --enable-compile-warnings
--AC_ARG_ENABLE(compile-warnings, [ --enable-compile-warnings=[no/yes] Turn on compiler warnings.], [enable_compile_warnings="$enableval"],[enable_compile_warnings="yes"])
--
--dnl --enable-debug=(yes|minimum|no)
--AC_ARG_ENABLE(debug, [ --enable-debug=[no/yes] turn on debugging [default=no]],,enable_debug=minimum)
--if test "x$enable_debug" = "xyes"; then
-- ORBIT_DEBUG_CFLAGS="-ggdb -O0 -DG_ENABLE_DEBUG"
--else
-- if test "x$enable_debug" = "xno"; then
-- ORBIT_DEBUG_CFLAGS="-DG_DISABLE_ASSERT -DG_DISABLE_CHECKS"
-- else
-- ORBIT_DEBUG_CFLAGS=""
-- fi
--fi
--
--AC_ARG_ENABLE(purify, [ --enable-purify be clean for memory debuggers], enable_purify=yes, enable_purify=no)
--if test z$enable_purify = zyes; then
-- AC_DEFINE(ORBIT_PURIFY, 1, [defined if purify is enabled])
--fi
--
--AC_MSG_CHECKING(which idl compiler to use)
--IDL_COMPILER="\$(top_builddir)/src/idl-compiler/orbit-idl-2\$(EXEEXT)"
--AC_ARG_WITH(idl-compiler,
-- [ --with-idl-compiler use specific idl compiler (useful when crosscompiling)],
-- if test "x$withval" != x; then
-- if test -f "$withval"; then
-- IDL_COMPILER=$withval
-- fi
-- fi
--)
--if test x$IDL_COMPILER == x"\$(top_builddir)/src/idl-compiler/orbit-idl-2\$(EXEEXT)"; then
-- AC_MSG_RESULT(internal)
--else
-- AC_MSG_RESULT(external ($IDL_COMPILER))
--fi
--AC_SUBST(IDL_COMPILER)
--
--AC_PROG_AWK
--
--GLIB_REQUIRED=2.8.0
--LIBIDL_REQUIRED=0.8.2
--AC_SUBST(GLIB_REQUIRED)
--AC_SUBST(LIBIDL_REQUIRED)
--
--dnl Check for pkg-config version; want >= 0.14.0 because of -pthread bug
--PKG_PROG_PKG_CONFIG([0.18])
--
--LOCAL_LINC_LIBS='$(top_builddir)/linc2/src/liblinc.la'
--LOCAL_LINC_CFLAGS='-I$(top_srcdir)/linc2/include -I$(top_builddir)/linc2/include'
--AC_SUBST(LOCAL_LINC_LIBS)
--AC_SUBST(LOCAL_LINC_CFLAGS)
--
--dnl Checks for libraries.
--PKG_CHECK_MODULES(ORBIT, \
-- glib-2.0 >= $GLIB_REQUIRED \
-- gobject-2.0 >= $GLIB_REQUIRED \
-- gthread-2.0 >= $GLIB_REQUIRED \
-- gmodule-2.0 >= $GLIB_REQUIRED)
--AC_SUBST(ORBIT_LIBS)
--AC_SUBST(ORBIT_CFLAGS)
--
--PKG_CHECK_MODULES(ORBIT_IDL, \
-- libIDL-2.0 >= $LIBIDL_REQUIRED \
-- glib-2.0 >= $GLIB_REQUIRED \
-- gobject-2.0 >= $GLIB_REQUIRED \
-- gmodule-2.0 >= $GLIB_REQUIRED)
--AC_SUBST(ORBIT_IDL_LIBS)
--AC_SUBST(ORBIT_IDL_CFLAGS)
--
--PKG_CHECK_MODULES(ORBIT_NAME,
-- glib-2.0 >= $GLIB_REQUIRED \
-- gobject-2.0 >= $GLIB_REQUIRED \
-- gthread-2.0 >= $GLIB_REQUIRED \
-- gmodule-2.0 >= $GLIB_REQUIRED)
--AC_SUBST(ORBIT_NAME_LIBS)
--AC_SUBST(ORBIT_NAME_CFLAGS)
--
--dnl Checks for header files.
--AC_HEADER_STDC
--AC_CHECK_HEADERS(fcntl.h unistd.h sys/endian.h endian.h machine/endian.h)
--AC_CHECK_HEADERS(sys/machine.h sys/isa_defs.h sys/poll.h sys/select.h)
--AC_CHECK_HEADERS(sys/time.h netinet/in.h sys/socket.h arpa/inet.h)
--AC_CHECK_HEADERS(stddef.h wchar.h wcstr.h wctype.h machine/types.h)
--AC_CHECK_HEADERS(sys/un.h sys/uio.h syslog.h)
--AC_CHECK_HEADERS(sys/wait.h netdb.h)
--AC_CHECK_HEADERS(utime.h sys/utime.h)
--AC_CHECK_HEADERS([linux/socket.h])
--AC_CHECK_HEADERS(sys/sockio.h)
--
--if test "$os_win32" = "yes"; then
-- AC_CHECK_HEADERS(winsock2.h)
-- if test $ac_cv_header_winsock2_h = yes; then
-- dnl If we have , assume we find the functions
-- dnl in -lws2_32.
-- LIBS="-lws2_32 $LIBS"
-- fi
--fi
--
--dnl Checks for typedefs, structures, and compiler characteristics.
--AC_C_CONST
--AC_C_INLINE
--AC_TYPE_SIZE_T
--
--dnl Checks for library functions.
--AC_FUNC_VPRINTF
--
--AC_CHECK_FUNC(socket,,[AC_CHECK_LIB(socket,socket)])
--AC_CHECK_FUNC(gethostbyname,,[AC_CHECK_LIB(nsl,gethostbyname)])
--AC_CHECK_FUNC(sigaction)
--AC_CHECK_FUNC(syslog)
--
--dnl This generates warnings from autoconf...
--AC_C_BIGENDIAN
--
--
--dnl
--dnl So many people with broken linking setups asked about this
--dnl it turned out to be necessary to check for this.
--dnl
--dofus_save_libs="$LIBS"
--LIBS="$ORBIT_LIBS $LIBS"
--AC_TRY_RUN([ #include
-- main ()
-- {
-- return 0;
-- } ],,
-- AC_MSG_ERROR([
--Linking is badly borked on your system. Please ensure your library path is correct
--Check config.log for details - check near the end of the log above 'failed program was'
--Alternatively ensure that your /etc/ld.so.conf (and/or LD_LIBRARY_PATH) includes the
--prefix you're compiling on: '${prefix}' ]),
--AC_MSG_WARN([Could not check for borked linking while cross-compiling]))
--LIBS="$dofus_save_libs"
--
--orig_CPPFLAGS=$CPPFLAGS
--CPPFLAGS="$CPPFLAGS $ORBIT_CFLAGS"
--AC_CHECK_ALIGNOF(CORBA_octet)
--AC_CHECK_ALIGNOF(CORBA_boolean)
--AC_CHECK_ALIGNOF(CORBA_char)
--AC_CHECK_ALIGNOF(CORBA_wchar)
--AC_CHECK_ALIGNOF(CORBA_short)
--AC_CHECK_ALIGNOF(CORBA_long)
--AC_CHECK_ALIGNOF(CORBA_long_long)
--AC_CHECK_ALIGNOF(CORBA_float)
--AC_CHECK_ALIGNOF(CORBA_double)
--AC_CHECK_ALIGNOF(CORBA_long_double)
--AC_CHECK_ALIGNOF(CORBA_struct)
--AC_CHECK_ALIGNOF(CORBA_pointer)
--CPPFLAGS=$orig_CPPFLAGS
--
--if test "x$GCC" = "xyes" -a "x$enable_compile_warnings" != "xno"; then
-- WARN_CFLAGS="-Wall -Wunused -Wmissing-prototypes -Wmissing-declarations"
--else
-- WARN_CFLAGS=
--fi
--
--AC_MSG_CHECKING(what warning flags to pass to the C compiler)
--AC_MSG_RESULT($WARN_CFLAGS)
--AC_SUBST(WARN_CFLAGS)
--
--AC_SUBST(pkglibdir)
--
--if test "$enable_maintainer_mode" = "yes"; then
-- DISABLE_DEPRECATED_CFLAGS=" \
-- -DG_DISABLE_DEPRECATED -DG_DISABLE_SINGLE_INCLUDES"
-- AC_SUBST(DISABLE_DEPRECATED_CFLAGS)
--fi
--
--dnl
--dnl --------- start linc bits ---------
--dnl
--
--dnl Checks for libraries.
--PKG_CHECK_MODULES(LINC, glib-2.0 >= $GLIB_REQUIRED gobject-2.0 >= $GLIB_REQUIRED gthread-2.0 >= $GLIB_REQUIRED)
--AC_SUBST(LINC_LIBS)
--AC_SUBST(LINC_CFLAGS)
--
--dnl Checks for header files.
--AC_HEADER_STDC
--AC_CHECK_HEADERS(fcntl.h unistd.h sys/endian.h endian.h machine/endian.h sys/machine.h sys/isa_defs.h sys/poll.h)
--AC_CHECK_HEADERS(stddef.h wchar.h wcstr.h wctype.h machine/types.h)
--AC_CHECK_HEADERS(netinet/in.h netinet/tcp.h sys/un.h)
--AC_CHECK_HEADERS(arpa/nameser.h resolv.h)
--dnl AC_CHECK_HEADERS(linux/irda.h)
--
--dnl Checks for library functions.
--AC_CHECK_FUNCS(poll basename)
--AC_CHECK_FUNC(res_init,,[AC_CHECK_LIB(resolv,res_init)])
--AC_CHECK_LIB(resolv,res_9_init)
--AC_CHECK_FUNC(socket,,[AC_CHECK_LIB(socket,socket)])
--AC_CHECK_FUNC(gethostbyname,,[AC_CHECK_LIB(nsl,gethostbyname)])
--AC_CHECK_FUNC(getaddrinfo,,[AC_CHECK_LIB(nsl,getaddrinfo)])
--if test x"$ac_cv_func_getaddrinfo" = "xyes" ; then
-- AC_DEFINE(HAVE_GETADDRINFO, 1, [Define if getaddrinfo() is available])
--fi
--AC_CHECK_FUNC(getnameinfo,,[AC_CHECK_LIB(nsl,getnameinfo)])
--if test x"$ac_cv_func_getnameinfo" = "xyes" ; then
-- AC_DEFINE(HAVE_GETNAMEINFO, 1, [Define if getnameinfo() is available])
--fi
--have_inet_pton=no
--AC_CHECK_FUNC(inet_pton,,)
--if test x"$ac_cv_func_inet_pton" = "xyes" ; then
-- have_inet_pton=yes
-- AC_DEFINE(HAVE_INET_PTON, 1, [Define if inet_pton() is available])
--fi
--
--# AC_CHECK_TYPE doesn't work here.
--AC_MSG_CHECKING([for socklen_t])
--AC_TRY_COMPILE(
-- [#ifdef _WIN32
--#include
--#else
--#include
--#include
--#endif],
-- [socklen_t len;],
-- [AC_MSG_RESULT(yes)],
-- [AC_DEFINE(socklen_t, size_t, [Define socklen_t to be of type size_t])
-- AC_MSG_RESULT(no)])
--
--# Blatantly stolen from configure.in in the sample code from
--# "UNIX Network Programming, Volume 1" by W. Richard Stevens
--AC_CACHE_CHECK(if sockaddr has sa_len member,
--ac_cv_sockaddr_has_sa_len,
-- AC_TRY_COMPILE([
--# include
--# include ],
-- [unsigned int i = sizeof(((struct sockaddr *)0)->sa_len)],
-- ac_cv_sockaddr_has_sa_len=yes,
-- ac_cv_sockaddr_has_sa_len=no))
--if test x"$ac_cv_sockaddr_has_sa_len" = "xyes" ; then
-- AC_DEFINE(HAVE_SOCKADDR_SA_LEN, 1, [Define if sockaddr has sa_len member])
--fi
--
--dnl
--dnl --------- end linc bits ---------
--dnl
--
--dnl
--dnl --------- set additional gcc flags to catch errors ---------
--dnl
--AX_CFLAGS_GCC_OPTION(-Werror-implicit-function-declaration)
--CFLAGS="$CFLAGS $ORBIT_DEBUG_CFLAGS"
--AC_SUBST(CFLAGS)
--
--
--dnl ----- gtk-doc ------
--GTK_DOC_CHECK([1.0])
--
--
--AC_CONFIG_FILES([
--Makefile
--orbit2-config
--ORBit-2.0.pc
--ORBit-2.0-uninstalled.pc
--ORBit-CosNaming-2.0.pc
--ORBit-CosNaming-2.0-uninstalled.pc
--ORBit-imodule-2.0.pc
--ORBit-imodule-2.0-uninstalled.pc
--ORBit.spec
--orbit2-zip
--src/Makefile
--src/idl-compiler/Makefile
--src/idl-compiler/ORBit-idl-2.0.pc
--src/idl/Makefile
--src/idl/CORBA/Makefile
--src/idl/CORBA_PIDL/Makefile
--src/idl/interop/Makefile
--src/idl/misc/Makefile
--src/orb/Makefile
--src/orb/include/Makefile
--src/orb/util/Makefile
--src/orb/GIOP/Makefile
--src/orb/orb-core/Makefile
--src/orb/dynamic/Makefile
--src/orb/poa/Makefile
--src/services/Makefile
--src/services/name/Makefile
--src/services/imodule/Makefile
--include/Makefile
--include/orbit/Makefile
--include/orbit/orbit-config.h
--include/orbit/GIOP/Makefile
--include/orbit/util/Makefile
--include/orbit/orb-core/Makefile
--include/orbit/poa/Makefile
--include/orbit/dynamic/Makefile
--test/Makefile
--test/everything/Makefile
--test/inhibit/Makefile
--test/poa/Makefile
--docs/Makefile
--docs/devel/Makefile
--docs/internals/Makefile
--docs/api/Makefile
--
--linc2/Makefile
--linc2/src/Makefile
--linc2/test/Makefile
--linc2/include/Makefile
--linc2/include/linc/Makefile
--linc2/include/linc/linc-config.h
--])
--
--AC_OUTPUT
--
--echo "ORBit configuration:
--
-- Source code location: ${srcdir}
-- Compiler: ${CC}
--
-- Purify cleanliness: ${enable_purify}
--"
-diff --git a/include/orbit/GIOP/giop-types.h b/include/orbit/GIOP/giop-types.h
-index ddf7f14..d852e1e 100644
---- a/include/orbit/GIOP/giop-types.h
-+++ b/include/orbit/GIOP/giop-types.h
-@@ -33,6 +33,11 @@ struct _GIOPThread {
- void (*request_handler) (gpointer poa_object,
- gpointer recv_buffer,
- gpointer dummy);
-+#ifdef HAVE_GLIB_2_32
-+ GMutex lock_body;
-+ GCond incoming_body;
-+#endif
-+
- };
-
- #define GIOP_INITIAL_MSG_SIZE_LIMIT (256*1024)
-diff --git a/include/orbit/GIOP/giop.h b/include/orbit/GIOP/giop.h
-index 20a3a32..8d1dd7a 100644
---- a/include/orbit/GIOP/giop.h
-+++ b/include/orbit/GIOP/giop.h
-@@ -14,6 +14,7 @@ G_BEGIN_DECLS
-
- #ifdef ORBIT2_INTERNAL_API
-
-+void giop_set_main_context (GMainContext *context);
- void giop_init (gboolean thread_safe,
- gboolean blank_wire_data);
- void giop_main_run (void);
-diff --git a/include/orbit/orb-core/corba-orb-type.h b/include/orbit/orb-core/corba-orb-type.h
-index 3dbac38..1f3ce0f 100644
---- a/include/orbit/orb-core/corba-orb-type.h
-+++ b/include/orbit/orb-core/corba-orb-type.h
-@@ -78,6 +78,9 @@ struct CORBA_ORB_type {
- * been externalised and refs that we have received.
- */
- GHashTable *objrefs;
-+#ifdef HAVE_GLIB_2_32
-+ GMutex lock_body;
-+#endif
- };
-
- #endif /* ORBIT2_INTERNAL_API */
-diff --git a/include/orbit/orb-core/corba-orb.h b/include/orbit/orb-core/corba-orb.h
-index 2fc409b..3cc5087 100644
---- a/include/orbit/orb-core/corba-orb.h
-+++ b/include/orbit/orb-core/corba-orb.h
-@@ -32,6 +32,8 @@ gboolean ORBit_proto_use (const char *name);
- */
- glong ORBit_get_giop_recv_limit (void);
-
-+void ORBit_set_giop_main_context (GMainContext *context);
-+
- #ifdef ORBIT2_INTERNAL_API
-
- void ORBit_ORB_forw_bind (CORBA_ORB orb,
-diff --git a/include/orbit/poa/orbit-adaptor.h b/include/orbit/poa/orbit-adaptor.h
-index 8756e2e..e4ab7ff 100644
---- a/include/orbit/poa/orbit-adaptor.h
-+++ b/include/orbit/poa/orbit-adaptor.h
-@@ -124,6 +124,9 @@ struct ORBit_ObjectAdaptor_type {
- ORBitThreadHint thread_hint;
-
- GMainContext *context;
-+#ifdef HAVE_GLIB_2_32
-+ GMutex lock_body;
-+#endif
- };
-
- int ORBit_adaptor_setup (ORBit_ObjectAdaptor adaptor, CORBA_ORB orb);
-diff --git a/include/orbit/util/basic_types.h b/include/orbit/util/basic_types.h
-index 8702276..c8562ca 100644
---- a/include/orbit/util/basic_types.h
-+++ b/include/orbit/util/basic_types.h
-@@ -34,7 +34,6 @@ typedef CORBA_wchar *CORBA_wstring;
- typedef struct CORBA_Object_type *CORBA_Object;
- #endif
-
--#ifdef G_HAVE_GINT64
- #define HAVE_CORBA_LONG_LONG
-
- /*
-@@ -44,13 +43,6 @@ typedef struct CORBA_Object_type *CORBA_Object;
- typedef gint64 CORBA_long_long;
- typedef guint64 CORBA_unsigned_long_long;
-
--#else
--#error ""
--#error "You don't G_HAVE_GINT64 defined in glib."
--#error "Please make sure you don't have an old glibconfig.h lying around."
--#error ""
--#endif
--
- G_END_DECLS
-
- #endif
-diff --git a/linc2/src/Makefile.am b/linc2/src/Makefile.am
-index 357a2dd..17024b5 100644
---- a/linc2/src/Makefile.am
-+++ b/linc2/src/Makefile.am
-@@ -8,16 +8,16 @@ endif
-
- # -I$(top_builddir)/include
- # -I$(top_srcdir)/include
--INCLUDES = \
-+AM_CPPFLAGS = \
- -I$(top_builddir)/linc2/include \
- -I$(top_srcdir)/linc2/include \
- $(LINC_CFLAGS) \
- $(WARN_CFLAGS) \
-- -DG_DISABLE_DEPRECATED
-+ $(DISABLE_DEPRECATED_CFLAGS)
-
- if OS_WIN32
- else
--INCLUDES += -D_GNU_SOURCE
-+AM_CPPFLAGS += -D_GNU_SOURCE
- endif
-
- liblinc_la_SOURCES = \
-diff --git a/linc2/src/linc-connection.c b/linc2/src/linc-connection.c
-index 77bab0f..d78c033 100644
---- a/linc2/src/linc-connection.c
-+++ b/linc2/src/linc-connection.c
-@@ -651,8 +651,12 @@ link_connection_do_initiate (LinkConnection *cnx,
- fix_permissions (service);
- }
- #endif
--
-+retry:
- LINK_TEMP_FAILURE_RETRY_SOCKET (connect (fd, saddr, saddr_len), rv);
-+ if (rv == -1L && errno == EAGAIN) {
-+ g_usleep (10000);
-+ goto retry;
-+ }
- #ifdef HAVE_WINSOCK2_H
- if (rv == SOCKET_ERROR) {
- if ((options & LINK_CONNECTION_NONBLOCKING) &&
-@@ -1333,9 +1337,12 @@ link_connection_finalize (GObject *obj)
- g_free (cnx->remote_serv_info);
-
- g_free (cnx->priv);
--
- if (cnx->timeout_mutex)
-+#ifndef HAVE_GLIB_2_32
- g_mutex_free (cnx->timeout_mutex);
-+#else
-+ g_mutex_clear (cnx->timeout_mutex);
-+#endif
- if (cnx->timeout_source_id)
- link_io_thread_remove_timeout (cnx->timeout_source_id);
-
-@@ -1350,8 +1357,12 @@ link_connection_init (LinkConnection *cnx)
- cnx->priv = g_new0 (LinkConnectionPrivate, 1);
- cnx->priv->fd = -1;
- cnx->priv->was_disconnected = FALSE;
--
-+#ifdef HAVE_GLIB_2_32
-+ cnx->timeout_mutex = &(cnx->priv->timeout_mutex);
-+ g_mutex_init (cnx->timeout_mutex);
-+#else
- cnx->timeout_mutex = NULL;
-+#endif
- cnx->timeout_msec = 0;
- cnx->timeout_source_id = 0;
- cnx->timeout_status = LINK_TIMEOUT_UNKNOWN;
-diff --git a/linc2/src/linc-private.h b/linc2/src/linc-private.h
-index 03c77e9..e1c7d48 100644
---- a/linc2/src/linc-private.h
-+++ b/linc2/src/linc-private.h
-@@ -96,6 +96,9 @@ struct _LinkConnectionPrivate {
- guint64 total_read_bytes;
- guint64 total_written_bytes;
- #endif
-+#ifdef HAVE_GLIB_2_32
-+ GMutex timeout_mutex;
-+#endif
- };
-
- typedef struct {
-diff --git a/linc2/src/linc-protocols.c b/linc2/src/linc-protocols.c
-index e6895f4..22a77aa 100644
---- a/linc2/src/linc-protocols.c
-+++ b/linc2/src/linc-protocols.c
-@@ -383,6 +383,7 @@ link_protocol_is_local_ipv46 (const LinkProtocolInfo *proto,
- memset(&hints, 0, sizeof(hints));
- hints.ai_socktype = SOCK_STREAM;
- hints.ai_flags = AI_CANONNAME;
-+ hints.ai_family = proto->family;
-
- if (getaddrinfo(link_get_local_hostname(), NULL, &hints, &local_addr) != 0) {
- if (!warned++)
-diff --git a/linc2/src/linc.c b/linc2/src/linc.c
-index 917e036..f231d3a 100644
---- a/linc2/src/linc.c
-+++ b/linc2/src/linc.c
-@@ -41,6 +41,12 @@ static GCond *link_main_cond;
- static GMutex *link_cmd_queue_lock = NULL;
- static GCond *link_cmd_queue_cond = NULL;
- static GList *link_cmd_queue = NULL;
-+#ifdef HAVE_GLIB_2_32
-+static GMutex link_main_lock_body;
-+static GCond link_main_cond_body;
-+static GMutex link_cmd_queue_lock_body;
-+static GCond link_cmd_queue_cond_body;
-+#endif
-
- static int link_wakeup_fds[2] = { -1, -1 };
- #define LINK_WAKEUP_POLL link_wakeup_fds [0]
-@@ -195,14 +201,14 @@ link_init (gboolean thread_safe)
- d_printf ("stderr redirected here\n");
- }
- #endif
--
-+#ifndef HAVE_GLIB_2_32
- if (thread_safe && !g_thread_supported ())
- g_thread_init (NULL);
--
-+#endif
- link_is_thread_safe = (thread_safe && g_thread_supported());
--
-+#ifndef HAVE_GLIB_2_36
- g_type_init ();
--
-+#endif
- #ifdef SIGPIPE
- /*
- * Link's raison d'etre is for ORBit2 and Bonobo
-@@ -255,13 +261,26 @@ link_init (gboolean thread_safe)
- link_ssl_method = SSLv23_method ();
- link_ssl_ctx = SSL_CTX_new (link_ssl_method);
- #endif
--
-+#ifndef HAVE_GLIB_2_32
- link_main_lock = link_mutex_new ();
- link_cmd_queue_lock = link_mutex_new ();
-+
- if (link_is_thread_safe) {
- link_main_cond = g_cond_new ();
- link_cmd_queue_cond = g_cond_new ();
- }
-+#else
-+ g_mutex_init (&link_main_lock_body);
-+ g_mutex_init (&link_cmd_queue_lock_body);
-+ link_main_lock = &link_main_lock_body;
-+ link_cmd_queue_lock = &link_cmd_queue_lock_body;
-+ if (link_is_thread_safe) {
-+ g_cond_init (&link_main_cond_body);
-+ g_cond_init (&link_cmd_queue_cond_body);
-+ link_main_cond = &link_main_cond_body;
-+ link_cmd_queue_cond = &link_cmd_queue_cond_body;
-+ }
-+#endif
-
- #ifdef HAVE_WINSOCK2_H
- {
-@@ -309,7 +328,7 @@ link_main_loop_run (void)
- {
- g_main_loop_run (link_loop);
- }
--
-+#ifndef HAVE_GLIB_2_32
- /**
- * link_mutex_new:
- *
-@@ -317,7 +336,7 @@ link_main_loop_run (void)
- *
- * Return value: a new GMutex, or NULL if one is not required.
- **/
--GMutex *
-+
- link_mutex_new (void)
- {
- if (link_is_thread_safe)
-@@ -325,6 +344,7 @@ link_mutex_new (void)
- else
- return NULL;
- }
-+#endif
-
- gboolean
- link_in_io_thread (void)
-@@ -458,11 +478,13 @@ link_exec_set_io_thread (gpointer data, gboolean immediate)
- (link_thread_context, LINK_WAKEUP_POLL,
- NULL, (G_IO_IN | G_IO_PRI),
- link_mainloop_handle_input, NULL);
--
-+#ifndef HAVE_GLIB_2_32
- link_io_thread = g_thread_create_full
- (link_io_thread_fn, NULL, 256 * 1024, TRUE, FALSE,
- G_THREAD_PRIORITY_NORMAL, &error);
--
-+#else
-+ link_io_thread = g_thread_new ("link-thread", link_io_thread_fn, NULL);
-+#endif
- if (!link_io_thread || error)
- g_error ("Failed to create linc worker thread");
-
-diff --git a/linc2/test/Makefile.am b/linc2/test/Makefile.am
-index 1979b9a..c6532fe 100644
---- a/linc2/test/Makefile.am
-+++ b/linc2/test/Makefile.am
-@@ -2,7 +2,7 @@ noinst_PROGRAMS = test-linc
-
- # -I$(top_srcdir)/include
- # -I$(top_builddir)/include
--INCLUDES = \
-+AM_CPPFLAGS = \
- -I$(top_srcdir)/linc2/include \
- -I$(top_builddir)/linc2/include \
- -I$(top_srcdir)/linc2/src \
-diff --git a/src/idl-compiler/Makefile.am b/src/idl-compiler/Makefile.am
-index b45cae2..44b600b 100644
---- a/src/idl-compiler/Makefile.am
-+++ b/src/idl-compiler/Makefile.am
-@@ -2,7 +2,7 @@ bin_PROGRAMS = orbit-idl-2
-
- orbit_backends_dir = $(libdir)/orbit-2.0/idl-backends
-
--INCLUDES = \
-+AM_CPPFLAGS = \
- -I$(top_builddir) \
- -I$(top_builddir)/include \
- -I$(top_srcdir) \
-diff --git a/src/orb/GIOP/Makefile.am b/src/orb/GIOP/Makefile.am
-index 189f9f8..08b3be3 100644
---- a/src/orb/GIOP/Makefile.am
-+++ b/src/orb/GIOP/Makefile.am
-@@ -1,4 +1,4 @@
--INCLUDES = \
-+AM_CPPFLAGS = \
- -I$(top_srcdir)/include \
- -I$(top_builddir)/include \
- -DORBIT2_INTERNAL_API \
-diff --git a/src/orb/GIOP/giop-recv-buffer.c b/src/orb/GIOP/giop-recv-buffer.c
-index 15b6ab6..cbe50a5 100644
---- a/src/orb/GIOP/giop-recv-buffer.c
-+++ b/src/orb/GIOP/giop-recv-buffer.c
-@@ -31,7 +31,9 @@ void (*giop_debug_hook_incoming_mangler) (GIOPRecvBuffer *buf) = NULL;
- /* A list of GIOPMessageQueueEntrys */
- static GList *giop_queued_messages = NULL;
- static GMutex *giop_queued_messages_lock = NULL;
--
-+#ifdef HAVE_GLIB_2_32
-+static GMutex giop_qm_lock_body;
-+#endif
- /* Don't do this genericaly, union's suck genericaly */
- static gboolean
- giop_GIOP_TargetAddress_demarshal (GIOPRecvBuffer *buf,
-@@ -813,7 +815,12 @@ giop_recv_buffer_get_opname (GIOPRecvBuffer *buf)
- void
- giop_recv_buffer_init (void)
- {
-+#ifdef HAVE_GLIB_2_32
-+ giop_queued_messages_lock = &giop_qm_lock_body;
-+ g_mutex_init (giop_queued_messages_lock);
-+#else
- giop_queued_messages_lock = link_mutex_new ();
-+#endif
- }
-
- static void
-@@ -1413,10 +1420,11 @@ giop_timeout_add (GIOPConnection *cnx)
- goto out;
-
- giop_connection_ref (cnx); // to be unref'ed by the one who removes the timeout source
--
- if (!lcnx->timeout_mutex)
-+#ifndef HAVE_GLIB_2_32
- lcnx->timeout_mutex = g_mutex_new ();
--
-+ //Otherwise handled by the LinkConnection constructor.
-+#endif
- g_mutex_lock (lcnx->timeout_mutex);
- lcnx->timeout_status = LINK_TIMEOUT_UNKNOWN;
- g_mutex_unlock (lcnx->timeout_mutex);
-diff --git a/src/orb/GIOP/giop-send-buffer.c b/src/orb/GIOP/giop-send-buffer.c
-index 64876f8..9ef76a5 100644
---- a/src/orb/GIOP/giop-send-buffer.c
-+++ b/src/orb/GIOP/giop-send-buffer.c
-@@ -14,7 +14,9 @@
- static gboolean giop_blank_wire_data = FALSE;
- static GSList *send_buffer_list = NULL;
- static GMutex *send_buffer_list_lock = NULL;
--
-+#ifdef HAVE_GLIB_2_32
-+static GMutex send_bl_lock_body;
-+#endif
- static const char giop_zero_buf [GIOP_CHUNK_ALIGN * 10] = {0};
-
- void
-@@ -25,7 +27,12 @@ giop_send_buffer_init (gboolean wipe)
- #else
- giop_blank_wire_data = wipe;
- #endif
-+#ifdef HAVE_GLIB_2_32
-+ send_buffer_list_lock = &send_bl_lock_body;
-+ g_mutex_init (send_buffer_list_lock);
-+#else
- send_buffer_list_lock = link_mutex_new ();
-+#endif
- }
-
- /* Marshal it at compile time so we don't have to do it over and over. This just stores codeset info to say that
-diff --git a/src/orb/GIOP/giop.c b/src/orb/GIOP/giop.c
-index f287733..ac54c92 100644
---- a/src/orb/GIOP/giop.c
-+++ b/src/orb/GIOP/giop.c
-@@ -21,12 +21,16 @@
- static int corba_wakeup_fds[2];
- #define WAKEUP_POLL corba_wakeup_fds [0]
- #define WAKEUP_WRITE corba_wakeup_fds [1]
-+static GMainContext *giop_main_context = NULL;
- static GSource *giop_main_source = NULL;
- static GIOPThread *giop_main_thread = NULL;
-
- /* Incoming dispatch thread pool */
- static GThreadPool *giop_thread_pool = NULL;
- static GMutex *giop_pool_hash_lock = NULL;
-+#ifdef HAVE_GLIB_2_32
-+static GMutex giop_pool_hash_lock_body;
-+#endif
- static GHashTable *giop_pool_hash = NULL;
-
- const char giop_version_ids [GIOP_NUM_VERSIONS][2] = {
-@@ -302,8 +306,15 @@ giop_thread_new (GMainContext *context)
- {
- GIOPThread *tdata = g_new0 (GIOPThread, 1);
-
-+#ifndef HAVE_GLIB_2_32
- tdata->lock = g_mutex_new ();
- tdata->incoming = g_cond_new ();
-+#else
-+ tdata->lock = &(tdata->lock_body);
-+ tdata->incoming = &(tdata->incoming_body);
-+ g_mutex_init (tdata->lock);
-+ g_cond_init (tdata->incoming);
-+#endif
- tdata->wake_context = context;
- tdata->keys = NULL;
- tdata->async_ents = NULL;
-@@ -351,10 +362,17 @@ giop_thread_free (GIOPThread *tdata)
-
- g_list_free (tdata->keys);
- tdata->keys = NULL;
--
-+#ifndef HAVE_GLIB_2_32
- g_mutex_free (tdata->lock);
-+#else
-+ g_mutex_clear (tdata->lock);
-+#endif
- tdata->lock = NULL;
-+#ifndef HAVE_GLIB_2_32
- g_cond_free (tdata->incoming);
-+#else
-+ g_cond_clear (tdata->incoming);
-+#endif
- tdata->incoming = NULL;
-
- #ifdef G_ENABLE_DEBUG
-@@ -530,19 +548,26 @@ ORBit_get_safe_tmp (void)
- }
-
- void
-+giop_set_main_context (GMainContext *context)
-+{
-+ giop_main_context = context;
-+}
-+
-+void
- giop_init (gboolean thread_safe, gboolean blank_wire_data)
- {
- link_init (thread_safe);
-
- if (giop_thread_safe ()) {
- GIOPThread *tdata;
-+ if (!giop_main_context)
-+ giop_main_context = g_main_context_default();
-
- /* We need a destructor to clean up if giopthreads are used
- * outside of ORBit controlled threads */
- giop_tdata_private = g_private_new ((GDestroyNotify)giop_thread_free);
-
-- giop_main_thread = tdata = giop_thread_new (
-- g_main_context_default ()); /* main thread */
-+ giop_main_thread = tdata = giop_thread_new (giop_main_context); /* main thread */
-
- if (link_pipe (corba_wakeup_fds) < 0) /* cf. g_main_context_init_pipe */
- g_error ("Can't create CORBA main-thread wakeup pipe");
-@@ -556,7 +581,7 @@ giop_init (gboolean thread_safe, gboolean blank_wire_data)
- fcntl (WAKEUP_WRITE, F_SETFL, O_NONBLOCK);
- #endif
- giop_main_source = link_source_create_watch (
-- g_main_context_default (), WAKEUP_POLL,
-+ giop_main_context, WAKEUP_POLL,
- NULL, (G_IO_IN | G_IO_PRI),
- giop_mainloop_handle_input, NULL);
-
-@@ -565,7 +590,12 @@ giop_init (gboolean thread_safe, gboolean blank_wire_data)
- /* Setup thread pool for incoming requests */
- giop_thread_pool = g_thread_pool_new
- (giop_request_handler_thread, NULL, -1, FALSE, NULL);
-+#ifdef HAVE_GLIB_2_32
-+ giop_pool_hash_lock = &giop_pool_hash_lock_body;
-+ g_mutex_init (giop_pool_hash_lock);
-+#else
- giop_pool_hash_lock = link_mutex_new ();
-+#endif
- giop_pool_hash = g_hash_table_new (NULL, NULL);
- }
-
-diff --git a/src/orb/Makefile.am b/src/orb/Makefile.am
-index 2b443ba..f82227e 100644
---- a/src/orb/Makefile.am
-+++ b/src/orb/Makefile.am
-@@ -2,7 +2,7 @@ SUBDIRS=include orb-core util GIOP poa dynamic
-
- lib_LTLIBRARIES=libORBit-2.la
-
--INCLUDES = \
-+AM_CPPFLAGS = \
- -I. \
- -I$(srcdir) \
- -I$(top_srcdir)/include \
-diff --git a/src/orb/dynamic/Makefile.am b/src/orb/dynamic/Makefile.am
-index 330bf53..11e5785 100644
---- a/src/orb/dynamic/Makefile.am
-+++ b/src/orb/dynamic/Makefile.am
-@@ -5,7 +5,7 @@ liborb_dynamic_la_SOURCES= \
- $(DYNAMIC_IDLOUT) \
- dynany.c
-
--INCLUDES = \
-+AM_CPPFLAGS = \
- -I$(top_srcdir)/include \
- -I$(top_srcdir)/src/orb \
- -I$(top_builddir)/include \
-diff --git a/src/orb/orb-core/Makefile.am b/src/orb/orb-core/Makefile.am
-index 7cbed96..43b54ac 100644
---- a/src/orb/orb-core/Makefile.am
-+++ b/src/orb/orb-core/Makefile.am
-@@ -2,7 +2,7 @@ noinst_LTLIBRARIES=liborb-core.la
-
- TYPELIB_DIR=$(libdir)/orbit-2.0
-
--INCLUDES = \
-+AM_CPPFLAGS = \
- -I. \
- -I$(srcdir) \
- -I$(top_builddir)/include \
-diff --git a/src/orb/orb-core/corba-object.c b/src/orb/orb-core/corba-object.c
-index 28900e1..7c23684 100644
---- a/src/orb/orb-core/corba-object.c
-+++ b/src/orb/orb-core/corba-object.c
-@@ -9,6 +9,9 @@
- #include "../util/orbit-purify.h"
-
- static GMutex *object_lock = NULL;
-+#ifdef HAVE_GLIB_2_32
-+static GMutex object_lock_body;
-+#endif
-
- #define OBJECT_LOCK(obj) LINK_MUTEX_LOCK (object_lock)
- #define OBJECT_UNLOCK(obj) LINK_MUTEX_UNLOCK (object_lock)
-@@ -998,5 +1001,10 @@ CORBA_Object__iinterface = {
- void
- _ORBit_object_init (void)
- {
-+#ifdef HAVE_GLIB_2_32
-+ object_lock = &object_lock_body;
-+ g_mutex_init (object_lock);
-+#else
- object_lock = link_mutex_new();
-+#endif
- }
-diff --git a/src/orb/orb-core/corba-orb.c b/src/orb/orb-core/corba-orb.c
-index 908535d..34c21b5 100644
---- a/src/orb/orb-core/corba-orb.c
-+++ b/src/orb/orb-core/corba-orb.c
-@@ -236,11 +236,18 @@ CORBA_ORB_release_fn (ORBit_RootObject robj)
- }
-
- GMutex *ORBit_RootObject_lifecycle_lock = NULL;
--
-+#ifdef HAVE_GLIB_2_32
-+static GMutex ORBit_RO_lifecycle_lock_body;
-+#endif
- static void
- ORBit_locks_initialize (void)
- {
-+#ifdef HAVE_GLIB_2_32
-+ ORBit_RootObject_lifecycle_lock = &ORBit_RO_lifecycle_lock_body;
-+ g_mutex_init (ORBit_RootObject_lifecycle_lock);
-+#else
- ORBit_RootObject_lifecycle_lock = link_mutex_new ();
-+#endif
- }
-
- #ifdef G_ENABLE_DEBUG
-@@ -438,7 +445,12 @@ CORBA_ORB_init (int *argc, char **argv,
- ORBit_RootObject_init (&retval->root_object, &orb_if);
- /* released by CORBA_ORB_destroy */
- _ORBit_orb = ORBit_RootObject_duplicate (retval);
-+#ifdef HAVE_GLIB_2_32
-+ _ORBit_orb->lock = &(_ORBit_orb->lock_body);
-+ g_mutex_init (_ORBit_orb->lock);
-+#else
- _ORBit_orb->lock = link_mutex_new ();
-+#endif
- #ifndef G_OS_WIN32
- /* atexit(), which g_atexit() is just a #define for on Win32,
- * often causes breakage when invoked from DLLs. It causes the
-@@ -1328,7 +1340,11 @@ CORBA_ORB_destroy (CORBA_ORB orb,
- orb->life_flags |= ORBit_LifeF_Destroyed;
-
- if (orb->lock) {
-+#ifndef HAVE_GLIB_2_32
- g_mutex_free (orb->lock);
-+#else
-+ g_mutex_clear (orb->lock);
-+#endif
- orb->lock = NULL;
- }
-
-@@ -1442,6 +1458,12 @@ ORBit_get_giop_recv_limit (void)
- return giop_recv_get_limit ();
- }
-
-+void
-+ORBit_set_giop_main_context (GMainContext *context)
-+{
-+ giop_set_main_context (context);
-+}
-+
- const ORBit_option orbit_supported_options[] = {
- { "ORBid", ORBIT_OPTION_STRING, NULL }, /* FIXME: unimplemented */
- { "ORBImplRepoIOR", ORBIT_OPTION_STRING, NULL }, /* FIXME: unimplemented */
-diff --git a/src/orb/poa/Makefile.am b/src/orb/poa/Makefile.am
-index c42ae31..f47069c 100644
---- a/src/orb/poa/Makefile.am
-+++ b/src/orb/poa/Makefile.am
-@@ -2,7 +2,7 @@ noinst_LTLIBRARIES=liborb-poa.la
-
- IDL = $(top_builddir)/src/idl-compiler/orbit-idl-2
-
--INCLUDES = \
-+AM_CPPFLAGS = \
- -I$(top_srcdir)/include \
- -I$(top_builddir)/include \
- -I$(top_builddir)/src/orb/orb-core \
-diff --git a/src/orb/poa/poa.c b/src/orb/poa/poa.c
-index 6cec95f..0668c36 100644
---- a/src/orb/poa/poa.c
-+++ b/src/orb/poa/poa.c
-@@ -20,6 +20,9 @@
- #include "poa-macros.h"
- #include "poa-private.h"
- #include "orbit-poa.h"
-+#ifdef HAVE_GLIB_2_32
-+static GMutex _ORBit_poa_manager_lock_body;
-+#endif
-
- #ifdef DEBUG_LOCKS
- # define LOCK_DEBUG(a) g_printerr("%p: %6s file %s: line %d (%s)\n", \
-@@ -41,7 +44,9 @@
- static GMutex *ORBit_class_assignment_lock = NULL;
- static GHashTable *ORBit_class_assignments = NULL;
- static guint ORBit_class_assignment_counter = 0;
--
-+#ifdef HAVE_GLIB_2_32
-+static GMutex ORBit_class_assignment_lock_body;
-+#endif
- static PortableServer_Servant ORBit_POA_ServantManager_use_servant(
- PortableServer_POA poa,
- ORBit_POAObject pobj,
-@@ -651,8 +656,11 @@ ORBit_POA_free_fn (ORBit_RootObject obj)
- g_free (poa->name);
-
- if (poa->base.lock)
-+#ifndef HAVE_GLIB_2_32
- g_mutex_free (poa->base.lock);
--
-+#else
-+ g_mutex_clear (poa->base.lock);
-+#endif
- ORBit_RootObject_release_T (poa->orb);
- ORBit_RootObject_release_T (poa->poa_manager);
-
-@@ -823,8 +831,12 @@ ORBit_POA_new (CORBA_ORB orb,
- (GHashFunc) ORBit_sequence_CORBA_octet_hash,
- (GEqualFunc) ORBit_sequence_CORBA_octet_equal);
-
-+#ifdef HAVE_GLIB_2_32
-+ poa->base.lock = &(poa->base.lock_body);
-+ g_mutex_init (poa->base.lock);
-+#else
- poa->base.lock = link_mutex_new ();
--
-+#endif
- ORBit_POAManager_register_poa (manager, poa);
-
- return ORBit_RootObject_duplicate (poa);
-@@ -2491,8 +2503,15 @@ PortableServer_POA_id_to_reference (PortableServer_POA poa,
- void
- ORBit_poa_init (void)
- {
-+#ifdef HAVE_GLIB_2_32
-+ ORBit_class_assignment_lock = &ORBit_class_assignment_lock_body;
-+ g_mutex_init (ORBit_class_assignment_lock);
-+ _ORBit_poa_manager_lock = &_ORBit_poa_manager_lock_body;
-+ g_mutex_init (_ORBit_poa_manager_lock);
-+#else
- ORBit_class_assignment_lock = link_mutex_new ();
- _ORBit_poa_manager_lock = link_mutex_new ();
-+#endif
- giop_thread_set_main_handler (ORBit_POAObject_invoke_incoming_request);
- }
-
-diff --git a/src/orb/util/Makefile.am b/src/orb/util/Makefile.am
-index b391cd7..412be1f 100644
---- a/src/orb/util/Makefile.am
-+++ b/src/orb/util/Makefile.am
-@@ -1,6 +1,6 @@
- noinst_LTLIBRARIES=liborb-util.la
-
--INCLUDES = \
-+AM_CPPFLAGS = \
- -I$(top_srcdir)/include \
- -I$(top_builddir)/include \
- -DORBIT_SYSTEM_RCFILE=\"$(sysconfdir)/orbitrc\" \
-diff --git a/src/orb/util/genrand.c b/src/orb/util/genrand.c
-index 7fd1bec..9c25edf 100644
---- a/src/orb/util/genrand.c
-+++ b/src/orb/util/genrand.c
-@@ -41,6 +41,9 @@ static int genuid_uid = 0;
-
- /* This is quite possibly a complete waste of cycles */
- static GMutex *inc_lock = NULL;
-+#ifdef HAVE_GLIB_2_32
-+static GMutex inc_lock_body;
-+#endif
- #define INC_LOCK() LINK_MUTEX_LOCK (inc_lock)
- #define INC_UNLOCK() LINK_MUTEX_UNLOCK (inc_lock)
-
-@@ -62,8 +65,12 @@ ORBit_genuid_init (ORBitGenUidType type)
- #ifndef G_OS_WIN32
- genuid_uid = getuid ();
- #endif
-+#ifdef HAVE_GLIB_2_32
-+ inc_lock = &inc_lock_body;
-+ g_mutex_init (inc_lock);
-+#else
- inc_lock = link_mutex_new();
--
-+#endif
- glib_prng = g_rand_new ();
- g_get_current_time (&time);
- g_rand_set_seed (glib_prng, (time.tv_sec << 20) ^ time.tv_usec);
-@@ -118,7 +125,11 @@ ORBit_genuid_fini (void)
- }
-
- if (inc_lock) {
-+#ifndef HAVE_GLIB_2_32
- g_mutex_free (inc_lock);
-+#else
-+ g_mutex_clear (inc_lock);
-+#endif
- inc_lock = NULL;
- }
- }
-diff --git a/src/services/imodule/Makefile.am b/src/services/imodule/Makefile.am
-index e0731a4..f63c920 100644
---- a/src/services/imodule/Makefile.am
-+++ b/src/services/imodule/Makefile.am
-@@ -2,7 +2,7 @@ NULL =
-
- lib_LTLIBRARIES = libORBit-imodule-2.la
-
--INCLUDES = \
-+AM_CPPFLAGS = \
- -I$(top_srcdir)/include \
- -I$(top_builddir)/include \
- -DORBIT2_INTERNAL_API \
-diff --git a/src/services/name/Makefile.am b/src/services/name/Makefile.am
-index 7212557..deda1ed 100644
---- a/src/services/name/Makefile.am
-+++ b/src/services/name/Makefile.am
-@@ -26,7 +26,7 @@ libORBitCosNaming_2_la_LDFLAGS = \
- $(ORBIT_NAME_LIBS) \
- $(top_builddir)/src/orb/libORBit-2.la
-
--INCLUDES = \
-+AM_CPPFLAGS = \
- -I. \
- -I$(top_builddir)/include \
- -I$(top_srcdir)/include \
-diff --git a/test/Makefile.am b/test/Makefile.am
-index a48d38e..87f35af 100644
---- a/test/Makefile.am
-+++ b/test/Makefile.am
-@@ -1,6 +1,6 @@
- SUBDIRS = everything inhibit poa
-
--INCLUDES = \
-+AM_CPPFLAGS = \
- -I$(top_srcdir)/include \
- -I$(top_srcdir)/src/orb \
- -I$(top_builddir)/include \
-diff --git a/test/everything/Makefile.am b/test/everything/Makefile.am
-index 32beb36..cb4b1d6 100644
---- a/test/everything/Makefile.am
-+++ b/test/everything/Makefile.am
-@@ -10,7 +10,7 @@ EVERYTHING_IDLOUT = \
- $(EVERYTHING_BUILT) \
- everything-imodule.c
-
--INCLUDES = \
-+AM_CPPFLAGS = \
- -I$(top_srcdir)/include \
- -I$(top_builddir)/include \
- -I$(top_builddir)/src \
-@@ -78,7 +78,7 @@ include $(top_srcdir)/Makefile.shared
- BUILT_SOURCES = ${EVERYTHING_BUILT} everything-imodule.c
- CLEANFILES = ${BUILT_SOURCES} iorfile
-
--TESTS = $(srcdir)/test.sh
-+TESTS = $(top_builddir)/test/everything/test.sh
-
- EXTRA_DIST = $(IDL_FILES) test.sh $(included_src)
-
-diff --git a/test/everything/client.c b/test/everything/client.c
-index afa6a9b..b5c5597 100644
---- a/test/everything/client.c
-+++ b/test/everything/client.c
-@@ -2502,13 +2502,19 @@ run_threaded_tests (test_TestFactory factory,
- fprintf (stderr, "Testing with %d threads\n", NUM_THREADS);
-
- threads = g_new0 (GThread *, NUM_THREADS);
--
-+#ifndef HAVE_GLIB_2_32
- for (i = 0; i < NUM_THREADS; i++) {
- threads [i] = g_thread_create
- ( test_thread, factory, TRUE, &error);
- g_assert (!error);
- }
--
-+#else
-+ for (i = 0; i < NUM_THREADS; i++) {
-+ gchar *thread_name = g_strdup_printf ("thread_%d", i);
-+ threads [i] = g_thread_new ( thread_name, test_thread, NULL);
-+ g_free (thread_name);
-+ }
-+#endif
- for (i = 0; i < NUM_THREADS; i++) {
- if (!(g_thread_join (threads [i]) == factory))
- g_error ("Wierd thread join problem '%d'", i);
-@@ -2555,9 +2561,9 @@ main (int argc, char *argv [])
- gboolean gen_imodule = FALSE;
- char *orb_name;
- int i;
--
-+#ifndef HAVE_GLIB_2_32
- g_thread_init (NULL);
--
-+#endif
- CORBA_exception_init (ev);
-
- /* FIXME - make this work nicely sometime.
-diff --git a/test/everything/server.c b/test/everything/server.c
-index 5219f54..0f2940c 100644
---- a/test/everything/server.c
-+++ b/test/everything/server.c
-@@ -528,8 +528,9 @@ init_iinterfaces (ORBit_IInterfaces *interfaces,
-
- free (malloc (8)); /* -lefence */
-
-+#ifndef HAVE_GLIB_2_32
- g_thread_init (NULL);
--
-+#endif
- CORBA_exception_init(&real_ev);
-
- for (i = 0; i < argc; i++) {
-diff --git a/test/inhibit/Makefile.am b/test/inhibit/Makefile.am
-index 3974d0d..ef26a21 100644
---- a/test/inhibit/Makefile.am
-+++ b/test/inhibit/Makefile.am
-@@ -1,7 +1,7 @@
- noinst_PROGRAMS= \
- test-inhibit
-
--INCLUDES = \
-+AM_CPPFLAGS = \
- -I$(top_srcdir)/include \
- -I$(top_builddir)/include \
- $(WARN_CFLAGS) \
-diff --git a/test/poa/Makefile.am b/test/poa/Makefile.am
-index becfcfa..6cf9c38 100644
---- a/test/poa/Makefile.am
-+++ b/test/poa/Makefile.am
-@@ -1,4 +1,4 @@
--INCLUDES = \
-+AM_CPPFLAGS = \
- -I$(top_srcdir)/include \
- -I$(top_builddir)/include \
- $(WARN_CFLAGS) \
-diff --git a/test/poa/poatest-basic-shell.c b/test/poa/poatest-basic-shell.c
-index a229fdb..8ec98c8 100644
---- a/test/poa/poatest-basic-shell.c
-+++ b/test/poa/poatest-basic-shell.c
-@@ -36,8 +36,9 @@ main (int argc, char **argv)
- PortableServer_POAManager poa_mgr;
- poatest poatest_obj;
-
-+#ifndef HAVE_GLIB_2_32
- g_thread_init (NULL);
--
-+#endif
- CORBA_exception_init (&ev);
-
- orb = CORBA_ORB_init (&argc, argv, "", &ev);
-diff --git a/test/test-corbaloc.c b/test/test-corbaloc.c
-index 3cb2c18..95d92a2 100644
---- a/test/test-corbaloc.c
-+++ b/test/test-corbaloc.c
-@@ -186,9 +186,9 @@ int main (int argc, char *argv[]) {
-
- CORBA_Environment ev;
- CORBA_ORB orb;
--
-+#ifndef HAVE_GLIB_2_32
- g_thread_init (NULL);
--
-+#endif
- CORBA_exception_init(&ev);
- orb = CORBA_ORB_init(&argc, argv, "orbit-local-orb", &ev);
-
-diff --git a/test/test-dynany.c b/test/test-dynany.c
-index 2e47bcb..b535765 100644
---- a/test/test-dynany.c
-+++ b/test/test-dynany.c
-@@ -571,11 +571,12 @@ main (int argc, char *argv[])
-
- free (malloc (8));
-
-+#ifndef HAVE_GLIB_2_32
- g_thread_init (NULL);
--
-+#endif
- CORBA_exception_init (&ev);
- orb = CORBA_ORB_init (NULL, NULL, "orbit-local-orb", &ev);
--
-+
- /*
- * Since the API is entirely macro generated
- * we only need to test a few cases.
-diff --git a/test/test-giop.c b/test/test-giop.c
-index 84ac07b..f558c2a 100644
---- a/test/test-giop.c
-+++ b/test/test-giop.c
-@@ -330,9 +330,9 @@ main (int argc, char *argv[])
- {
- CORBA_ORB orb;
- CORBA_Environment ev;
--
-+#ifndef HAVE_GLIB_2_32
- g_thread_init (NULL);
--
-+#endif
- CORBA_exception_init (&ev);
-
- orb = CORBA_ORB_init (&argc, argv, "orbit-local-orb", &ev);
-diff --git a/test/test-mem.c b/test/test-mem.c
-index 94d82f4..f7e21da 100644
---- a/test/test-mem.c
-+++ b/test/test-mem.c
-@@ -236,9 +236,9 @@ main_func(int argc, char *argv[]) {
- PortableServer_POAManager_activate(poa_manager, ev);
- g_assert (!ORBIT_EX (ev));
-
-- LEAK_DETECT_WITH_TOLERANCE (1000, test_ORBit_alloc (), 50);
-- LEAK_DETECT_WITH_TOLERANCE (1000, test_ORBit_sequence (), 50);
-- LEAK_DETECT_WITH_TOLERANCE (1000, test_activate_deactivate (poa, ev), 50);
-+ LEAK_DETECT_WITH_TOLERANCE (1000, test_ORBit_alloc (), 200);
-+ LEAK_DETECT_WITH_TOLERANCE (1000, test_ORBit_sequence (), 200);
-+ LEAK_DETECT_WITH_TOLERANCE (1000, test_activate_deactivate (poa, ev), 200);
-
- /* tear down the ORB */
- CORBA_Object_release ((CORBA_Object) poa_manager, ev);
-@@ -258,7 +258,9 @@ int
- main(int argc, char *argv[]) {
- /* ORBit2-2.7.6 leaks on shutdown with about 700KB */
- /* LEAK_DETECT_WITH_TOLERANCE (1, main_func (argc,argv), 20); */
-+#ifndef HAVE_GLIB_2_32
- g_thread_init (NULL);
-+#endif
- main_func (argc, argv);
- exit (0);
- }
-diff --git a/test/test-performance.c b/test/test-performance.c
-index d4c446f..e94058f 100644
---- a/test/test-performance.c
-+++ b/test/test-performance.c
-@@ -175,7 +175,9 @@ main (int argc, char *argv[])
-
- free (malloc (8));
-
-+#ifndef HAVE_GLIB_2_32
- g_thread_init (NULL);
-+#endif
-
- CORBA_exception_init (&ev);
-
-diff --git a/test/timeout-client.c b/test/timeout-client.c
-index 910f57c..0e73a4e 100644
---- a/test/timeout-client.c
-+++ b/test/timeout-client.c
-@@ -154,7 +154,9 @@ main (int argc, char *argv[])
- CORBA_ORB orb;
- int retv = EXIT_FAILURE;
-
-+#ifndef HAVE_GLIB_2_32
- g_thread_init (NULL);
-+#endif
-
- CORBA_exception_init (&ev);
-
-diff --git a/test/timeout-server.c b/test/timeout-server.c
-index d6386da..e2f10a6 100644
---- a/test/timeout-server.c
-+++ b/test/timeout-server.c
-@@ -92,8 +92,9 @@ main (int argc, char *argv[])
- signal(SIGINT, exit);
- signal(SIGTERM, exit);
-
-+#ifndef HAVE_GLIB_2_32
- g_thread_init (NULL);
--
-+#endif
- CORBA_exception_init (&ev);
-
- /* create IPv4 orb */
---
-1.8.3.rc0
-
diff --git a/modulesets/patches/0001-Prevent-WebKitWebProcess-from-being-in-the-dock-or-p.patch b/modulesets/patches/0001-Prevent-WebKitWebProcess-from-being-in-the-dock-or-p.patch
deleted file mode 100644
index 44c6686..0000000
--- a/modulesets/patches/0001-Prevent-WebKitWebProcess-from-being-in-the-dock-or-p.patch
+++ /dev/null
@@ -1,80 +0,0 @@
-From 338ef8630d4aa8c15d33e66f438bc5862d4dc930 Mon Sep 17 00:00:00 2001
-From: John Ralls
-Date: Thu, 29 Oct 2020 18:30:08 -0700
-Subject: [PATCH] Prevent WebKitWebProcess from being in the dock or process
- switcher.
-
-Thanks to the Nyxt browser project, https://nyxt.atlas.engineer/.
----
- Source/WebKit/PlatformGTK.cmake | 4 ++++
- Source/WebKit/WebProcess/gtk/NSApplicationActivationPolicy.h | 4 ++++
- Source/WebKit/WebProcess/gtk/NSApplicationActivationPolicy.mm | 10 ++++++++++
- Source/WebKit/WebProcess/gtk/WebProcessMainGtk.cpp | 2 ++
- 4 files changed, 20 insertions(+)
- create mode 100644 Source/WebKit/WebProcess/gtk/NSApplicationActivationPolicy.h
- create mode 100644 Source/WebKit/WebProcess/gtk/NSApplicationActivationPolicy.mm
-
-diff --git a/Source/WebKit/PlatformGTK.cmake b/Source/WebKit/PlatformGTK.cmake
-index f6abc65..7214829 100644
---- a/Source/WebKit/PlatformGTK.cmake
-+++ b/Source/WebKit/PlatformGTK.cmake
-@@ -32,6 +32,10 @@ list(APPEND WebKit_UNIFIED_SOURCE_LIST_FILES
- "SourcesGTK.txt"
- )
-
-+find_library(APPKIT_FRAMEWORK NAMES AppKit)
-+target_link_libraries(WebKit PRIVATE ${APPKIT_FRAMEWORK})
-+list(APPEND WebKit_SOURCES WebProcess/gtk/NSApplicationActivationPolicy.mm)
-+
- list(APPEND WebKit_MESSAGES_IN_FILES
- UIProcess/ViewGestureController.messages.in
-
-diff --git a/Source/WebKit/WebProcess/gtk/NSApplicationActivationPolicy.h b/Source/WebKit/WebProcess/gtk/NSApplicationActivationPolicy.h
-new file mode 100644
-index 0000000..7285942
---- /dev/null
-+++ b/Source/WebKit/WebProcess/gtk/NSApplicationActivationPolicy.h
-@@ -0,0 +1,4 @@
-+
-+// This is the C "trampoline" function that will be used
-+// to invoke a specific Objective-C method FROM C++
-+void SetActivationPolicyProhibited ();
-diff --git a/Source/WebKit/WebProcess/gtk/NSApplicationActivationPolicy.mm b/Source/WebKit/WebProcess/gtk/NSApplicationActivationPolicy.mm
-new file mode 100644
-index 0000000..ce1d75c
---- /dev/null
-+++ b/Source/WebKit/WebProcess/gtk/NSApplicationActivationPolicy.mm
-@@ -0,0 +1,10 @@
-+#include "config.h"
-+#import "NSApplicationActivationPolicy.h"
-+#import
-+
-+// C "trampoline" function to invoke Objective-C method
-+void SetActivationPolicyProhibited ()
-+{
-+ [NSApp setActivationPolicy: NSApplicationActivationPolicyProhibited];
-+ return;
-+}
-diff --git a/Source/WebKit/WebProcess/gtk/WebProcessMainGtk.cpp b/Source/WebKit/WebProcess/gtk/WebProcessMainGtk.cpp
-index 6a4a822..5b4064f 100644
---- a/Source/WebKit/WebProcess/gtk/WebProcessMainGtk.cpp
-+++ b/Source/WebKit/WebProcess/gtk/WebProcessMainGtk.cpp
-@@ -33,6 +33,7 @@
- #include
- #include
- #include
-+#include "NSApplicationActivationPolicy.h"
-
- #if PLATFORM(X11)
- #include
-@@ -58,6 +59,7 @@ public:
-
- bindtextdomain(GETTEXT_PACKAGE, LOCALEDIR);
- bind_textdomain_codeset(GETTEXT_PACKAGE, "UTF-8");
-+ SetActivationPolicyProhibited ();
-
- return true;
- }
---
-2.2.2
-
diff --git a/modulesets/patches/0001-Restore-gl_GLIBC21-to-configure-needed-for-libcharse.patch b/modulesets/patches/0001-Restore-gl_GLIBC21-to-configure-needed-for-libcharse.patch
deleted file mode 100644
index b6f2533..0000000
--- a/modulesets/patches/0001-Restore-gl_GLIBC21-to-configure-needed-for-libcharse.patch
+++ /dev/null
@@ -1,24 +0,0 @@
-From 859b3aa3dc2af5b73145424c8290ce058f5d8346 Mon Sep 17 00:00:00 2001
-From: John Ralls
-Date: Fri, 4 Oct 2013 11:45:47 -0700
-Subject: [PATCH] Restore gl_GLIBC21 to configure; needed for libcharset
-
----
- configure.ac | 1 +
- 1 file changed, 1 insertion(+)
-
-diff --git a/configure.ac b/configure.ac
-index 1dde875..d014238 100644
---- a/configure.ac
-+++ b/configure.ac
-@@ -878,6 +878,7 @@ AC_STRUCT_DIRENT_D_TYPE
- AM_LANGINFO_CODESET
- AC_CHECK_HEADERS([stddef.h stdlib.h string.h])
- AC_CHECK_FUNCS(setlocale)
-+gl_GLIBC21
-
- # check additional type sizes
- AC_CHECK_SIZEOF(size_t)
---
-1.8.3.rc0
-
diff --git a/modulesets/patches/0001-quartz-Fix-the-32-bits-build-on-MacOSX-10.7.patch b/modulesets/patches/0001-quartz-Fix-the-32-bits-build-on-MacOSX-10.7.patch
deleted file mode 100644
index 139dcb1..0000000
--- a/modulesets/patches/0001-quartz-Fix-the-32-bits-build-on-MacOSX-10.7.patch
+++ /dev/null
@@ -1,102 +0,0 @@
-From 1f6a1aaaa75e4c4796bb376140af0213afa32881 Mon Sep 17 00:00:00 2001
-From: Andrea Canciani
-Date: Sat, 3 Sep 2011 09:39:24 -0700
-Subject: [PATCH] quartz: Fix the 32-bits build on MacOSX 10.7
-
-FMGetATSFontRefFromFont() is not public on Lion nor on 64-bits
-Frameworks, but it seems to be available in the dynamic libs, hence we
-can dlsym() it just like other private functions.
-
-Works around the error:
-cairo-quartz-font.c: In function 'cairo_quartz_font_face_create_for_atsu_font_id':
-cairo-quartz-font.c:830: error: implicit declaration of function 'FMGetATSFontRefFromFont'
-
-Fixes https://bugs.freedesktop.org/show_bug.cgi?id=39493
----
- src/cairo-quartz-font.c | 26 ++++++++++++++++++--------
- src/cairo-quartz.h | 2 --
- 2 files changed, 18 insertions(+), 10 deletions(-)
-
-diff --git a/src/cairo-quartz-font.c b/src/cairo-quartz-font.c
-index 2c7e017..d8ec919 100644
---- a/src/cairo-quartz-font.c
-+++ b/src/cairo-quartz-font.c
-@@ -90,6 +90,9 @@ static int (*CGFontGetAscentPtr) (CGFontRef fontRef) = NULL;
- static int (*CGFontGetDescentPtr) (CGFontRef fontRef) = NULL;
- static int (*CGFontGetLeadingPtr) (CGFontRef fontRef) = NULL;
-
-+/* Not public anymore in 64-bits nor in 10.7 */
-+static ATSFontRef (*FMGetATSFontRefFromFontPtr) (FMFont iFont) = NULL;
-+
- static cairo_bool_t _cairo_quartz_font_symbol_lookup_done = FALSE;
- static cairo_bool_t _cairo_quartz_font_symbols_present = FALSE;
-
-@@ -127,6 +130,8 @@ quartz_font_ensure_symbols(void)
- CGContextGetAllowsFontSmoothingPtr = dlsym(RTLD_DEFAULT, "CGContextGetAllowsFontSmoothing");
- CGContextSetAllowsFontSmoothingPtr = dlsym(RTLD_DEFAULT, "CGContextSetAllowsFontSmoothing");
-
-+ FMGetATSFontRefFromFontPtr = dlsym(RTLD_DEFAULT, "FMGetATSFontRefFromFont");
-+
- if ((CGFontCreateWithFontNamePtr || CGFontCreateWithNamePtr) &&
- CGFontGetGlyphBBoxesPtr &&
- CGFontGetGlyphsForUnicharsPtr &&
-@@ -777,7 +782,6 @@ _cairo_quartz_scaled_font_get_cg_font_ref (cairo_scaled_font_t *abstract_font)
- return ffont->cgFont;
- }
-
--#ifndef __LP64__
- /*
- * compat with old ATSUI backend
- */
-@@ -798,15 +802,22 @@ _cairo_quartz_scaled_font_get_cg_font_ref (cairo_scaled_font_t *abstract_font)
- cairo_font_face_t *
- cairo_quartz_font_face_create_for_atsu_font_id (ATSUFontID font_id)
- {
-- ATSFontRef atsFont = FMGetATSFontRefFromFont (font_id);
-- CGFontRef cgFont = CGFontCreateWithPlatformFont (&atsFont);
-- cairo_font_face_t *ff;
-+ quartz_font_ensure_symbols();
-
-- ff = cairo_quartz_font_face_create_for_cgfont (cgFont);
-+ if (FMGetATSFontRefFromFontPtr != NULL) {
-+ ATSFontRef atsFont = FMGetATSFontRefFromFontPtr (font_id);
-+ CGFontRef cgFont = CGFontCreateWithPlatformFont (&atsFont);
-+ cairo_font_face_t *ff;
-
-- CGFontRelease (cgFont);
-+ ff = cairo_quartz_font_face_create_for_cgfont (cgFont);
-+
-+ CGFontRelease (cgFont);
-
-- return ff;
-+ return ff;
-+ } else {
-+ _cairo_error_throw (CAIRO_STATUS_NO_MEMORY);
-+ return (cairo_font_face_t *)&_cairo_font_face_nil;
-+ }
- }
-
- /* This is the old name for the above function, exported for compat purposes */
-@@ -817,4 +828,3 @@ cairo_atsui_font_face_create_for_atsu_font_id (ATSUFontID font_id)
- {
- return cairo_quartz_font_face_create_for_atsu_font_id (font_id);
- }
--#endif
-diff --git a/src/cairo-quartz.h b/src/cairo-quartz.h
-index 8d001c5..9be5f9a 100644
---- a/src/cairo-quartz.h
-+++ b/src/cairo-quartz.h
-@@ -66,10 +66,8 @@ cairo_quartz_surface_get_cg_context (cairo_surface_t *surface);
- cairo_public cairo_font_face_t *
- cairo_quartz_font_face_create_for_cgfont (CGFontRef font);
-
--#ifndef __LP64__
- cairo_public cairo_font_face_t *
- cairo_quartz_font_face_create_for_atsu_font_id (ATSUFontID font_id);
--#endif
-
- #endif /* CAIRO_HAS_QUARTZ_FONT */
-
---
-1.7.7.5 (Apple Git-28)
-
diff --git a/modulesets/patches/0001-scanner-split-CC-environment-variable.patch b/modulesets/patches/0001-scanner-split-CC-environment-variable.patch
deleted file mode 100644
index 0857e89..0000000
--- a/modulesets/patches/0001-scanner-split-CC-environment-variable.patch
+++ /dev/null
@@ -1,31 +0,0 @@
-From 33293e16045cb1667c0be8c13cb60daeec0594a9 Mon Sep 17 00:00:00 2001
-From: Natanael Copa
-Date: Mon, 10 Oct 2011 13:37:55 +0000
-Subject: [PATCH] scanner: split CC environment variable
-
-This fixes compilation where CC="ccache gcc" and similar.
-
-https://bugzilla.gnome.org/show_bug.cgi?id=660160
-
-Signed-off-by: Natanael Copa
----
- giscanner/sourcescanner.py | 3 ++-
- 1 files changed, 2 insertions(+), 1 deletions(-)
-
-diff --git a/giscanner/sourcescanner.py b/giscanner/sourcescanner.py
-index 5f0ec2d..1e61ecf 100644
---- a/giscanner/sourcescanner.py
-+++ b/giscanner/sourcescanner.py
-@@ -274,7 +274,8 @@ class SourceScanner(object):
-
- defines = ['__GI_SCANNER__']
- undefs = []
-- cpp_args = [os.environ.get('CC', 'cc'), '-E', '-C', '-I.', '-']
-+ cpp_args = os.environ.get('CC', 'cc').split()
-+ cpp_args += ['-E', '-C', '-I.', '-']
-
- cpp_args += self._cpp_options
- proc = subprocess.Popen(cpp_args,
---
-1.7.6.3.dirty
-
diff --git a/modulesets/patches/0002-gtk2-Extract-reasons-and-reasons_desc-arrays-to-file-leve.patch b/modulesets/patches/0002-gtk2-Extract-reasons-and-reasons_desc-arrays-to-file-leve.patch
deleted file mode 100644
index 0b70b42..0000000
--- a/modulesets/patches/0002-gtk2-Extract-reasons-and-reasons_desc-arrays-to-file-leve.patch
+++ /dev/null
@@ -1,102 +0,0 @@
-From 330a278dd3f1b29dc4a29b80ee389691fdd81fe7 Mon Sep 17 00:00:00 2001
-From: John Ralls
-Date: Sat, 25 Feb 2012 17:44:13 -0800
-Subject: [PATCH 2/9] Extract reasons and reasons_desc arrays to file level
-
-So that they can be used from more than one function. Rename them to
-avoid naming conflicts.
----
- modules/printbackends/cups/gtkprintbackendcups.c | 70 +++++++++++-----------
- 1 files changed, 36 insertions(+), 34 deletions(-)
-
-diff --git a/modules/printbackends/cups/gtkprintbackendcups.c b/modules/printbackends/cups/gtkprintbackendcups.c
-index 283a0ff..875c080 100644
---- a/modules/printbackends/cups/gtkprintbackendcups.c
-+++ b/modules/printbackends/cups/gtkprintbackendcups.c
-@@ -1679,6 +1679,42 @@ find_printer (GtkPrinter *printer,
- printer_name = gtk_printer_get_name (printer);
- return g_ascii_strcasecmp (printer_name, find_name);
- }
-+/* Printer messages we're interested in */
-+static const char * const printer_messages[] =
-+ {
-+ "toner-low",
-+ "toner-empty",
-+ "developer-low",
-+ "developer-empty",
-+ "marker-supply-low",
-+ "marker-supply-empty",
-+ "cover-open",
-+ "door-open",
-+ "media-low",
-+ "media-empty",
-+ "offline",
-+ "other"
-+ };
-+/* Our translatable versions of the printer messages */
-+static const char * printer_strings[] =
-+ {
-+ N_("Printer '%s' is low on toner."),
-+ N_("Printer '%s' has no toner left."),
-+ /* Translators: "Developer" like on photo development context */
-+ N_("Printer '%s' is low on developer."),
-+ /* Translators: "Developer" like on photo development context */
-+ N_("Printer '%s' is out of developer."),
-+ /* Translators: "marker" is one color bin of the printer */
-+ N_("Printer '%s' is low on at least one marker supply."),
-+ /* Translators: "marker" is one color bin of the printer */
-+ N_("Printer '%s' is out of at least one marker supply."),
-+ N_("The cover is open on printer '%s'."),
-+ N_("The door is open on printer '%s'."),
-+ N_("Printer '%s' is low on paper."),
-+ N_("Printer '%s' is out of paper."),
-+ N_("Printer '%s' is currently offline."),
-+ N_("There is a problem on printer '%s'.")
-+ };
-
- static void
- cups_request_printer_list_cb (GtkPrintBackendCups *cups_backend,
-@@ -1750,40 +1786,6 @@ cups_request_printer_list_cb (GtkPrintBackendCups *cups_backend,
- gint printer_state_reason_level = 0; /* 0 - none, 1 - report, 2 - warning, 3 - error */
- gboolean interested_in = FALSE;
- gboolean found = FALSE;
-- static const char * const reasons[] = /* Reasons we're interested in */
-- {
-- "toner-low",
-- "toner-empty",
-- "developer-low",
-- "developer-empty",
-- "marker-supply-low",
-- "marker-supply-empty",
-- "cover-open",
-- "door-open",
-- "media-low",
-- "media-empty",
-- "offline",
-- "other"
-- };
-- static const char * reasons_descs[] =
-- {
-- N_("Printer '%s' is low on toner."),
-- N_("Printer '%s' has no toner left."),
-- /* Translators: "Developer" like on photo development context */
-- N_("Printer '%s' is low on developer."),
-- /* Translators: "Developer" like on photo development context */
-- N_("Printer '%s' is out of developer."),
-- /* Translators: "marker" is one color bin of the printer */
-- N_("Printer '%s' is low on at least one marker supply."),
-- /* Translators: "marker" is one color bin of the printer */
-- N_("Printer '%s' is out of at least one marker supply."),
-- N_("The cover is open on printer '%s'."),
-- N_("The door is open on printer '%s'."),
-- N_("Printer '%s' is low on paper."),
-- N_("Printer '%s' is out of paper."),
-- N_("Printer '%s' is currently offline."),
-- N_("There is a problem on printer '%s'.")
-- };
- gboolean is_paused = FALSE;
- gboolean is_accepting_jobs = TRUE;
- gboolean default_printer = FALSE;
---
-1.7.7.5 (Apple Git-28)
-
diff --git a/modulesets/patches/0002-gtk3-Extract-reasons-and-reasons_desc-arrays-to-file-leve.patch b/modulesets/patches/0002-gtk3-Extract-reasons-and-reasons_desc-arrays-to-file-leve.patch
deleted file mode 100644
index db2b79b..0000000
--- a/modulesets/patches/0002-gtk3-Extract-reasons-and-reasons_desc-arrays-to-file-leve.patch
+++ /dev/null
@@ -1,101 +0,0 @@
-From 0822a32530945c9df43f7224b6a9167674529fdb Mon Sep 17 00:00:00 2001
-From: John Ralls
-Date: Sun, 19 Feb 2012 13:14:36 -0800
-Subject: [PATCH 2/9] Extract reasons and reasons_desc arrays to file level
-
-So that they can be used from more than one function. Rename them to avoid naming conflicts.
----
- modules/printbackends/cups/gtkprintbackendcups.c | 70 +++++++++++-----------
- 1 files changed, 36 insertions(+), 34 deletions(-)
-
-diff --git a/modules/printbackends/cups/gtkprintbackendcups.c b/modules/printbackends/cups/gtkprintbackendcups.c
-index 12c6ab6..88c7137 100644
---- a/modules/printbackends/cups/gtkprintbackendcups.c
-+++ b/modules/printbackends/cups/gtkprintbackendcups.c
-@@ -1613,6 +1613,42 @@ find_printer (GtkPrinter *printer,
- printer_name = gtk_printer_get_name (printer);
- return g_ascii_strcasecmp (printer_name, find_name);
- }
-+/* Printer messages we're interested in */
-+static const char * const printer_messages[] =
-+ {
-+ "toner-low",
-+ "toner-empty",
-+ "developer-low",
-+ "developer-empty",
-+ "marker-supply-low",
-+ "marker-supply-empty",
-+ "cover-open",
-+ "door-open",
-+ "media-low",
-+ "media-empty",
-+ "offline",
-+ "other"
-+ };
-+/* Our translatable versions of the printer messages */
-+static const char * printer_strings[] =
-+ {
-+ N_("Printer '%s' is low on toner."),
-+ N_("Printer '%s' has no toner left."),
-+ /* Translators: "Developer" like on photo development context */
-+ N_("Printer '%s' is low on developer."),
-+ /* Translators: "Developer" like on photo development context */
-+ N_("Printer '%s' is out of developer."),
-+ /* Translators: "marker" is one color bin of the printer */
-+ N_("Printer '%s' is low on at least one marker supply."),
-+ /* Translators: "marker" is one color bin of the printer */
-+ N_("Printer '%s' is out of at least one marker supply."),
-+ N_("The cover is open on printer '%s'."),
-+ N_("The door is open on printer '%s'."),
-+ N_("Printer '%s' is low on paper."),
-+ N_("Printer '%s' is out of paper."),
-+ N_("Printer '%s' is currently offline."),
-+ N_("There is a problem on printer '%s'.")
-+ };
-
- static void
- cups_request_printer_list_cb (GtkPrintBackendCups *cups_backend,
-@@ -1684,40 +1720,6 @@ cups_request_printer_list_cb (GtkPrintBackendCups *cups_backend,
- gint printer_state_reason_level = 0; /* 0 - none, 1 - report, 2 - warning, 3 - error */
- gboolean interested_in = FALSE;
- gboolean found = FALSE;
-- static const char * const reasons[] = /* Reasons we're interested in */
-- {
-- "toner-low",
-- "toner-empty",
-- "developer-low",
-- "developer-empty",
-- "marker-supply-low",
-- "marker-supply-empty",
-- "cover-open",
-- "door-open",
-- "media-low",
-- "media-empty",
-- "offline",
-- "other"
-- };
-- static const char * reasons_descs[] =
-- {
-- N_("Printer '%s' is low on toner."),
-- N_("Printer '%s' has no toner left."),
-- /* Translators: "Developer" like on photo development context */
-- N_("Printer '%s' is low on developer."),
-- /* Translators: "Developer" like on photo development context */
-- N_("Printer '%s' is out of developer."),
-- /* Translators: "marker" is one color bin of the printer */
-- N_("Printer '%s' is low on at least one marker supply."),
-- /* Translators: "marker" is one color bin of the printer */
-- N_("Printer '%s' is out of at least one marker supply."),
-- N_("The cover is open on printer '%s'."),
-- N_("The door is open on printer '%s'."),
-- N_("Printer '%s' is low on paper."),
-- N_("Printer '%s' is out of paper."),
-- N_("Printer '%s' is currently offline."),
-- N_("There is a problem on printer '%s'.")
-- };
- gboolean is_paused = FALSE;
- gboolean is_accepting_jobs = TRUE;
- gboolean default_printer = FALSE;
---
-1.7.7.5 (Apple Git-28)
-
diff --git a/modulesets/patches/0003-Fix-double-free-introduced-in-f86dc163.patch b/modulesets/patches/0003-Fix-double-free-introduced-in-f86dc163.patch
deleted file mode 100644
index d6db4a3..0000000
--- a/modulesets/patches/0003-Fix-double-free-introduced-in-f86dc163.patch
+++ /dev/null
@@ -1,25 +0,0 @@
-From 5c820fe22d7484f1f09ebe4c59491c1c5dde34d7 Mon Sep 17 00:00:00 2001
-From: John Ralls
-Date: Fri, 11 Oct 2013 10:40:26 -0700
-Subject: [PATCH 3/4] Fix double-free introduced in f86dc163
-
----
- gtk/gtkdnd-quartz.c | 2 +-
- 1 file changed, 1 insertion(+), 1 deletion(-)
-
-diff --git a/gtk/gtkdnd-quartz.c b/gtk/gtkdnd-quartz.c
-index 1ec5db5..11a4855 100644
---- a/gtk/gtkdnd-quartz.c
-+++ b/gtk/gtkdnd-quartz.c
-@@ -1263,7 +1263,7 @@ gtk_drag_begin_internal (GtkWidget *widget,
- window = [(id)[nswindow contentView] gdkWindow];
- g_return_val_if_fail (nsevent != NULL, NULL);
-
-- context = gdk_drag_begin (window, target_list->list);
-+ context = gdk_drag_begin (window, g_list_copy (target_list->list));
- g_return_val_if_fail (context != NULL, NULL);
-
- info = gtk_drag_get_source_info (context, TRUE);
---
-1.8.3.rc0
-
diff --git a/modulesets/patches/0003-gtk2-Create-enum-PrinterStateLevel.patch b/modulesets/patches/0003-gtk2-Create-enum-PrinterStateLevel.patch
deleted file mode 100644
index 15d242d..0000000
--- a/modulesets/patches/0003-gtk2-Create-enum-PrinterStateLevel.patch
+++ /dev/null
@@ -1,31 +0,0 @@
-From f11bc5f5e865950d4b2ed99c9a20332e5d2c5b0d Mon Sep 17 00:00:00 2001
-From: John Ralls
-Date: Sat, 25 Feb 2012 17:45:04 -0800
-Subject: [PATCH 3/9] Create enum PrinterStateLevel
-
-Fixes "magic number" in printer_state_reason_level.
----
- modules/printbackends/cups/gtkprintbackendcups.c | 7 +++++++
- 1 files changed, 7 insertions(+), 0 deletions(-)
-
-diff --git a/modules/printbackends/cups/gtkprintbackendcups.c b/modules/printbackends/cups/gtkprintbackendcups.c
-index 875c080..ed138fd 100644
---- a/modules/printbackends/cups/gtkprintbackendcups.c
-+++ b/modules/printbackends/cups/gtkprintbackendcups.c
-@@ -1716,6 +1716,13 @@ static const char * printer_strings[] =
- N_("There is a problem on printer '%s'.")
- };
-
-+typedef enum
-+ {
-+ GTK_PRINTER_STATE_LEVEL_NONE = 0,
-+ GTK_PRINTER_STATE_LEVEL_INFO = 1,
-+ GTK_PRINTER_STATE_LEVEL_WARNING = 2,
-+ GTK_PRINTER_STATE_LEVEL_ERROR = 3
-+ } PrinterStateLevel;
- static void
- cups_request_printer_list_cb (GtkPrintBackendCups *cups_backend,
- GtkCupsResult *result,
---
-1.7.7.5 (Apple Git-28)
-
diff --git a/modulesets/patches/0003-gtk3-Create-enum-PrinterStateLevel.patch b/modulesets/patches/0003-gtk3-Create-enum-PrinterStateLevel.patch
deleted file mode 100644
index c76306d..0000000
--- a/modulesets/patches/0003-gtk3-Create-enum-PrinterStateLevel.patch
+++ /dev/null
@@ -1,31 +0,0 @@
-From 6333a3724e1e93b96077c0ce4eb3e01aeb6da453 Mon Sep 17 00:00:00 2001
-From: John Ralls
-Date: Sun, 19 Feb 2012 13:15:40 -0800
-Subject: [PATCH 3/9] Create enum PrinterStateLevel
-
-Fixes "magic number" in printer_state_reason_level.
----
- modules/printbackends/cups/gtkprintbackendcups.c | 7 +++++++
- 1 files changed, 7 insertions(+), 0 deletions(-)
-
-diff --git a/modules/printbackends/cups/gtkprintbackendcups.c b/modules/printbackends/cups/gtkprintbackendcups.c
-index 88c7137..fab3f40 100644
---- a/modules/printbackends/cups/gtkprintbackendcups.c
-+++ b/modules/printbackends/cups/gtkprintbackendcups.c
-@@ -1650,6 +1650,13 @@ static const char * printer_strings[] =
- N_("There is a problem on printer '%s'.")
- };
-
-+typedef enum
-+ {
-+ GTK_PRINTER_STATE_LEVEL_NONE = 0,
-+ GTK_PRINTER_STATE_LEVEL_INFO = 1,
-+ GTK_PRINTER_STATE_LEVEL_WARNING = 2,
-+ GTK_PRINTER_STATE_LEVEL_ERROR = 3
-+ } PrinterStateLevel;
- static void
- cups_request_printer_list_cb (GtkPrintBackendCups *cups_backend,
- GtkCupsResult *result,
---
-1.7.7.5 (Apple Git-28)
-
diff --git a/modulesets/patches/0003-quartz-NULL-check-on-default-keymap.patch b/modulesets/patches/0003-quartz-NULL-check-on-default-keymap.patch
deleted file mode 100644
index cff1aa9..0000000
--- a/modulesets/patches/0003-quartz-NULL-check-on-default-keymap.patch
+++ /dev/null
@@ -1,28 +0,0 @@
-From 041605bc50c7f06cb4aab5c3fd7c1189854c810c Mon Sep 17 00:00:00 2001
-From: Philip Chimento
-Date: Tue, 27 Aug 2013 23:46:22 -0700
-Subject: [PATCH 3/5] [quartz] NULL check on default keymap
-
-Ensure that Quartz's default keymap is not accessed before it is
-created.
----
- gdk/quartz/gdkkeys-quartz.c | 3 ++-
- 1 file changed, 2 insertions(+), 1 deletion(-)
-
-diff --git a/gdk/quartz/gdkkeys-quartz.c b/gdk/quartz/gdkkeys-quartz.c
-index 8ecf79e..d2b5110 100644
---- a/gdk/quartz/gdkkeys-quartz.c
-+++ b/gdk/quartz/gdkkeys-quartz.c
-@@ -492,7 +492,8 @@ update_keymap (void)
- p[0] = known_numeric_keys[i].keypad_keyval;
- }
-
-- g_signal_emit_by_name (default_keymap, "keys-changed");
-+ if (default_keymap != NULL)
-+ g_signal_emit_by_name (default_keymap, "keys-changed");
- }
-
- static PangoDirection
---
-1.7.12.4 (Apple Git-37)
-
diff --git a/modulesets/patches/0004-Bug-571582-GtkSelection-implementation-for-quartz.patch b/modulesets/patches/0004-Bug-571582-GtkSelection-implementation-for-quartz.patch
deleted file mode 100644
index 0d8dbe9..0000000
--- a/modulesets/patches/0004-Bug-571582-GtkSelection-implementation-for-quartz.patch
+++ /dev/null
@@ -1,923 +0,0 @@
-From 6118cdb88497c5531e64886d51a96fd24a895c61 Mon Sep 17 00:00:00 2001
-From: John Ralls
-Date: Sun, 26 Dec 2010 13:48:47 -0800
-Subject: [PATCH 04/15] Bug 571582: GtkSelection implementation for quartz.
-
----
- gdk/quartz/gdkselection-quartz.c | 36 ++-
- gtk/Makefile.am | 10 +-
- gtk/gtkquartz.c | 1 +
- gtk/gtkselection-quartz.c | 670 ++++++++++++++++++++++++++++++++++++++
- gtk/gtkselection.c | 14 +-
- 5 files changed, 711 insertions(+), 20 deletions(-)
- create mode 100644 gtk/gtkselection-quartz.c
-
-diff --git a/gdk/quartz/gdkselection-quartz.c b/gdk/quartz/gdkselection-quartz.c
-index c327eb9..a51f567 100644
---- a/gdk/quartz/gdkselection-quartz.c
-+++ b/gdk/quartz/gdkselection-quartz.c
-@@ -32,7 +32,8 @@ gdk_selection_owner_set_for_display (GdkDisplay *display,
- guint32 time,
- gint send_event)
- {
-- /* FIXME: Implement */
-+ g_print ("Not a valid interface on Quartz. Use GtkSelection.\n");
-+ g_return_val_if_reached(TRUE);
- return TRUE;
- }
-
-@@ -40,7 +41,7 @@ GdkWindow*
- gdk_selection_owner_get_for_display (GdkDisplay *display,
- GdkAtom selection)
- {
-- /* FIXME: Implement */
-+ /* Quartz doesn't have an X-selection, so it doesn't have a gdk_selection. */
- return NULL;
- }
-
-@@ -50,7 +51,9 @@ gdk_selection_convert (GdkWindow *requestor,
- GdkAtom target,
- guint32 time)
- {
-- /* FIXME: Implement */
-+ g_print ("Not a valid interface on Quartz. Use GtkSelection.\n");
-+ g_return_if_reached();
-+
- }
-
- gint
-@@ -59,7 +62,8 @@ gdk_selection_property_get (GdkWindow *requestor,
- GdkAtom *ret_type,
- gint *ret_format)
- {
-- /* FIXME: Implement */
-+ g_print ("Quartz windows do not support properties.\n");
-+ g_return_val_if_reached(-1);
- return 0;
- }
-
-@@ -71,7 +75,8 @@ gdk_selection_send_notify_for_display (GdkDisplay *display,
- GdkAtom property,
- guint32 time)
- {
-- /* FIXME: Implement */
-+ g_print ("Not a valid interface on Quartz. Use GtkSelection.\n");
-+ g_return_if_reached();
- }
-
- gint
-@@ -82,8 +87,9 @@ gdk_text_property_to_text_list_for_display (GdkDisplay *display,
- gint length,
- gchar ***list)
- {
-- /* FIXME: Implement */
-- return 0;
-+ /* text and utf8 are equivalent on OSX */
-+ return gdk_text_property_to_utf8_list_for_display (display, encoding, format,
-+ text, length, list);
- }
-
- gint
-@@ -94,20 +100,21 @@ gdk_string_to_compound_text_for_display (GdkDisplay *display,
- guchar **ctext,
- gint *length)
- {
-- /* FIXME: Implement */
-+ *ctext = (guchar*)g_strdup (str);
-+ *length = strlen (str);
- return 0;
- }
-
- void gdk_free_compound_text (guchar *ctext)
- {
-- /* FIXME: Implement */
-+ g_free (ctext);
- }
-
- gchar *
- gdk_utf8_to_string_target (const gchar *str)
- {
-- /* FIXME: Implement */
-- return NULL;
-+ /* UTF8 is the standard string on OSX */
-+ return g_strdup (str);
- }
-
- gboolean
-@@ -118,8 +125,11 @@ gdk_utf8_to_compound_text_for_display (GdkDisplay *display,
- guchar **ctext,
- gint *length)
- {
-- /* FIXME: Implement */
-- return 0;
-+ /* We don't use compound text on OSX, just stuff a copy of the string*/
-+
-+ *ctext = (guchar*)g_strdup (str);
-+ *length = strlen (str);
-+ return TRUE;
- }
-
- void
-diff --git a/gtk/Makefile.am b/gtk/Makefile.am
-index 78f4684..4794835 100644
---- a/gtk/Makefile.am
-+++ b/gtk/Makefile.am
-@@ -560,7 +560,6 @@ gtk_base_c_sources = \
- gtkscalebutton.c \
- gtkscrollbar.c \
- gtkscrolledwindow.c \
-- gtkselection.c \
- gtkseparator.c \
- gtkseparatormenuitem.c \
- gtkseparatortoolitem.c \
-@@ -759,10 +758,15 @@ endif
- endif
-
- if USE_QUARTZ
--gtk_clipboard_dnd_c_sources = gtkclipboard-quartz.c gtkdnd-quartz.c gtkquartz.c
-+gtk_clipboard_dnd_c_sources = \
-+ gtkselection.c \
-+ gtkselection-quartz.c \
-+ gtkclipboard-quartz.c \
-+ gtkdnd-quartz.c \
-+ gtkquartz.c
- gtk_clipboard_dnd_h_sources = gtkquartz.h
- else
--gtk_clipboard_dnd_c_sources = gtkclipboard.c gtkdnd.c
-+gtk_clipboard_dnd_c_sources = gtkselection.c gtkclipboard.c gtkdnd.c
- endif
- EXTRA_DIST += gtkquartz.h
-
-diff --git a/gtk/gtkquartz.c b/gtk/gtkquartz.c
-index 5b54104..8ffeb0b 100644
---- a/gtk/gtkquartz.c
-+++ b/gtk/gtkquartz.c
-@@ -271,6 +271,7 @@ _gtk_quartz_set_selection_data_for_pasteboard (NSPasteboard *pasteboard,
-
- type = target_to_pasteboard_type (target);
- g_free (target);
-+ g_return_if_fail (data != NULL);
-
- if ([type isEqualTo:NSStringPboardType])
- [pasteboard setString:[NSString stringWithUTF8String:(const char *)data]
-diff --git a/gtk/gtkselection-quartz.c b/gtk/gtkselection-quartz.c
-new file mode 100644
-index 0000000..1ce7d55
---- /dev/null
-+++ b/gtk/gtkselection-quartz.c
-@@ -0,0 +1,670 @@
-+/* GTK - The GIMP Toolkit
-+ * Copyright (C) 1995-1997 Peter Mattis, Spencer Kimball and Josh MacDonald
-+ *
-+ * This library is free software; you can redistribute it and/or
-+ * modify it under the terms of the GNU Lesser General Public
-+ * License as published by the Free Software Foundation; either
-+ * version 2 of the License, or (at your option) any later version.
-+ *
-+ * This library is distributed in the hope that it will be useful,
-+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
-+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
-+ * Lesser General Public License for more details.
-+ *
-+ * You should have received a copy of the GNU Lesser General Public
-+ * License along with this library; if not, write to the
-+ * Free Software Foundation, Inc., 59 Temple Place - Suite 330,
-+ * Boston, MA 02111-1307, USA.
-+ */
-+
-+/* This file implements most of the work of the ICCCM selection protocol.
-+ * The code was written after an intensive study of the equivalent part
-+ * of John Ousterhout's Tk toolkit, and does many things in much the
-+ * same way.
-+ *
-+ * The one thing in the ICCCM that isn't fully supported here (or in Tk)
-+ * is side effects targets. For these to be handled properly, MULTIPLE
-+ * targets need to be done in the order specified. This cannot be
-+ * guaranteed with the way we do things, since if we are doing INCR
-+ * transfers, the order will depend on the timing of the requestor.
-+ *
-+ * By Owen Taylor 8/16/97
-+ */
-+
-+/* Terminology note: when not otherwise specified, the term "incr" below
-+ * refers to the _sending_ part of the INCR protocol. The receiving
-+ * portion is referred to just as "retrieval". (Terminology borrowed
-+ * from Tk, because there is no good opposite to "retrieval" in English.
-+ * "send" can't be made into a noun gracefully and we're already using
-+ * "emission" for something else ....)
-+ */
-+
-+/* The MOTIF entry widget seems to ask for the TARGETS target, then
-+ (regardless of the reply) ask for the TEXT target. It's slightly
-+ possible though that it somehow thinks we are responding negatively
-+ to the TARGETS request, though I don't really think so ... */
-+
-+/*
-+ * Modified by the GTK+ Team and others 1997-2000. See the AUTHORS
-+ * file for a list of people on the GTK+ Team. See the ChangeLog
-+ * files for a list of changes. These files are distributed with
-+ * GTK+ at ftp://ftp.gtk.org/pub/gtk/.
-+ */
-+
-+#include "config.h"
-+#include
-+#include
-+#include "gdk.h"
-+
-+#include "gtkmain.h"
-+#include "gtkselection.h"
-+#include "gtktextbufferrichtext.h"
-+#include "gtkintl.h"
-+#include "gdk-pixbuf/gdk-pixbuf.h"
-+#include "gtkclipboard.h"
-+
-+#import
-+#include "gtkalias.h"
-+
-+#undef DEBUG_SELECTION
-+/*
-+ * DON'T USE THIS INTERFACE: USE GTKCLIPBOARD INSTEAD!
-+ *
-+ * This is the Quartz version of gtkselection. Unlike the other
-+ * versions, it was written in 2010, after most code was rewritten to
-+ * use GtkClipboard. Quartz, unlike X11, is not a remote-capable
-+ * display system, so most of ICCCM is pointless. This implementation
-+ * can therefore be much simpler than the X11 implementation. Text is
-+ * a lot simpler, too. It's UTF8. No compound text, no legacy
-+ * charsets. There's also only one display, so instead of passing it
-+ * around, we'll generally just use gdk_display_get_default() when we
-+ * need it.
-+ *
-+ * There are two constraints: The existing code in various GtkWidgets
-+ * which uses GDK_SELECTION_CLIPBOARD (which gtkclipboard-quartz sets
-+ * to generalPasteboard) for c copies and GDK_SELECTION_PRIMARY
-+ * (for which gtkclipboard-quartz creates a separate pasteboard) for
-+ * X-style selection transfers, and Apple's X11 Quartz implementation
-+ * which by default puts both on the generalPasteboard. We need to
-+ * operate with both.
-+ *
-+ * IMPORTANT: There is no X11 magic in quartz. If you insist on using
-+ * this interface (and you really shouldn't), your MUST connect to
-+ * selection-get, selection-received, and selection-clear-event for
-+ * your widget.
-+ */
-+
-+/* Maximum size of a sent chunk, in bytes. Also the default size of
-+ our buffers */
-+
-+
-+#define IDLE_ABORT_TIME 30
-+
-+enum {
-+ INCR,
-+ MULTIPLE,
-+ TARGETS,
-+ TIMESTAMP,
-+ SAVE_TARGETS,
-+ LAST_ATOM
-+};
-+
-+typedef struct _GtkSelectionInfo GtkSelectionInfo;
-+
-+struct _GtkSelectionInfo
-+{
-+ GdkAtom selection;
-+ GtkWidget *owner; /* widget that owns selection */
-+ guint32 time; /* time used to acquire selection */
-+};
-+
-+
-+/* Local Functions */
-+static void gtk_selection_get_cb (GtkClipboard *clipboard,
-+ GtkSelectionData *data,
-+ guint info,
-+ gpointer widget);
-+static void gtk_selection_clear_cb (GtkClipboard *clipboard,
-+ gpointer widget);
-+static void gtk_selection_default_handler (GtkWidget *widget,
-+ GtkSelectionData *data);
-+static int gtk_selection_bytes_per_item (gint format);
-+static GtkSelectionInfo *gtk_selection_info_get (GdkAtom selection);
-+static void gtk_selection_info_remove (GdkAtom selection,
-+ GtkWidget *owner);
-+static void gtk_selection_info_append (GdkAtom selection,
-+ GtkWidget *owner,
-+ guint32 time);
-+static void gtk_selection_info_clear (GtkWidget *owner);
-+static GtkTargetList *gtk_selection_target_list_get (GtkWidget *widget,
-+ GdkAtom selection);
-+static void gtk_selection_target_list_remove (GtkWidget *widget);
-+
-+/* Local Data */
-+static gint initialize = TRUE;
-+static GList *current_selections = NULL;
-+
-+static GdkAtom gtk_selection_atoms[LAST_ATOM];
-+static const char gtk_selection_handler_key[] = "gtk-selection-handlers";
-+
-+static GtkTargetEntry default_target = {"UTF8_STRING", 0, 1};
-+
-+/**
-+ * gtk_selection_owner_set_for_display:
-+ * @display: the #Gdkdisplay where the selection is set
-+ * @widget: (allow-none): new selection owner (a #GdkWidget), or %NULL.
-+ * @selection: an interned atom representing the selection to claim.
-+ * @time_: timestamp with which to claim the selection
-+ *
-+ * Claim ownership of a given selection for a particular widget, or,
-+ * if @widget is %NULL, release ownership of the selection.
-+ *
-+ * Return value: TRUE if the operation succeeded
-+ *
-+ * Since: 2.2
-+ */
-+gboolean
-+gtk_selection_owner_set_for_display (GdkDisplay *display,
-+ GtkWidget *widget,
-+ GdkAtom selection,
-+ guint32 time)
-+{
-+ GObject *old_owner;
-+ GtkClipboard *clip = gtk_clipboard_get (selection);
-+ GtkTargetEntry *targets = &default_target;
-+ gint num_targets = 1;
-+ GtkTargetList *tlist;
-+
-+ g_return_val_if_fail (GDK_IS_DISPLAY (display), FALSE);
-+ g_return_val_if_fail (selection != GDK_NONE, FALSE);
-+
-+ old_owner = gtk_clipboard_get_owner (clip);
-+ if (old_owner)
-+ gtk_selection_info_remove (selection, GTK_WIDGET(old_owner));
-+
-+ if (widget == NULL)
-+ return TRUE;
-+
-+ g_return_val_if_fail (gtk_widget_get_display (widget) == display, FALSE);
-+
-+ if ((tlist = gtk_selection_target_list_get (widget, selection)) != NULL)
-+ targets = gtk_target_table_new_from_list (tlist, &num_targets);
-+
-+ if (gtk_clipboard_set_with_owner (clip, targets, num_targets,
-+ gtk_selection_get_cb,
-+ gtk_selection_clear_cb,
-+ G_OBJECT (widget)))
-+ {
-+ gtk_selection_info_append (selection, widget, GDK_CURRENT_TIME);
-+ return TRUE;
-+ }
-+ return FALSE;
-+}
-+
-+
-+typedef struct _GtkSelectionTargetList GtkSelectionTargetList;
-+
-+struct _GtkSelectionTargetList {
-+ GdkAtom selection;
-+ GtkTargetList *list;
-+};
-+
-+/**
-+ * gtk_selection_remove_all:
-+ * @widget: a #GtkWidget
-+ *
-+ * Removes all handlers and unsets ownership of all
-+ * selections for a widget. Called when widget is being
-+ * destroyed. This function will not generally be
-+ * called by applications.
-+ **/
-+void
-+gtk_selection_remove_all (GtkWidget *widget)
-+{
-+ g_return_if_fail(widget == NULL || GTK_IS_WIDGET(widget));
-+ gtk_selection_info_clear (widget);
-+ /* Remove all selection lists */
-+ gtk_selection_target_list_remove (widget);
-+}
-+
-+
-+/**
-+ * gtk_selection_convert:
-+ * @widget: The widget which acts as requestor
-+ * @selection: Which selection to get
-+ * @target: Form of information desired (e.g., STRING)
-+ * @time_: Time of request (usually of triggering event)
-+ In emergency, you could use #GDK_CURRENT_TIME
-+ *
-+ * Requests the contents of a selection. When received,
-+ * a "selection-received" signal will be generated.
-+ *
-+ * Return value: %TRUE if requested succeeded. %FALSE if we could not process
-+ * request. (e.g., there was already a request in process for
-+ * this widget).
-+ **/
-+gboolean
-+gtk_selection_convert (GtkWidget *widget,
-+ GdkAtom selection,
-+ GdkAtom target,
-+ guint32 time_)
-+{
-+ GtkClipboard *clip = gtk_clipboard_get (selection);
-+ GtkSelectionData *data;
-+
-+ g_return_val_if_fail (GTK_IS_WIDGET (widget), FALSE);
-+ g_return_val_if_fail (selection != GDK_NONE, FALSE);
-+
-+ data = gtk_clipboard_wait_for_contents (clip, target);
-+ if (data == NULL)
-+ return FALSE;
-+
-+ g_signal_emit_by_name (widget, "selection-received", data, time);
-+
-+ return TRUE;
-+}
-+
-+
-+/**
-+ * gtk_selection_clear:
-+ * @widget: a #GtkWidget
-+ * @event: the event
-+ *
-+ * The default handler for the #GtkWidget::selection-clear-event
-+ * signal.
-+ *
-+ * Return value: %TRUE if the event was handled, otherwise false
-+ **/
-+gboolean
-+gtk_selection_clear (GtkWidget *widget,
-+ GdkEventSelection *event)
-+{
-+ gtk_selection_clear_targets (widget, event->selection);
-+ return FALSE;
-+}
-+
-+
-+/*************************************************************
-+ * _gtk_selection_request:
-+ * Handler for "selection_request_event"
-+ * arguments:
-+ * widget:
-+ * event:
-+ * results:
-+ *************************************************************/
-+
-+gboolean
-+_gtk_selection_request (GtkWidget *widget,
-+ GdkEventSelection *event)
-+{
-+ g_print ("Selection Request Events should not occur in quartz\n");
-+ return TRUE;
-+}
-+
-+/*************************************************************
-+ * _gtk_selection_incr_event:
-+ * Called whenever an PropertyNotify event occurs for an
-+ * GdkWindow with user_data == NULL. These will be notifications
-+ * that a window we are sending the selection to via the
-+ * INCR protocol has deleted a property and is ready for
-+ * more data.
-+ *
-+ * arguments:
-+ * window: the requestor window
-+ * event: the property event structure
-+ *
-+ * results:
-+ *************************************************************/
-+
-+gboolean
-+_gtk_selection_incr_event (GdkWindow *window,
-+ GdkEventProperty *event)
-+{
-+ g_print ("Selection_INCR_Events should not occur in quartz\n");
-+ return TRUE;
-+}
-+
-+/*************************************************************
-+ * _gtk_selection_notify:
-+ * Handler for "selection-notify-event" signals on windows
-+ * where a retrieval is currently in process. The selection
-+ * owner has responded to our conversion request.
-+ * arguments:
-+ * widget: Widget getting signal
-+ * event: Selection event structure
-+ * info: Information about this retrieval
-+ * results:
-+ * was event handled?
-+ *************************************************************/
-+
-+gboolean
-+_gtk_selection_notify (GtkWidget *widget,
-+ GdkEventSelection *event)
-+{
-+ g_print ("Selection_Notifications should not occur in quartz\n");
-+
-+ return TRUE;
-+}
-+
-+/*************************************************************
-+ * _gtk_selection_property_notify:
-+ * Handler for "property-notify-event" signals on windows
-+ * where a retrieval is currently in process. The selection
-+ * owner has added more data.
-+ * arguments:
-+ * widget: Widget getting signal
-+ * event: Property event structure
-+ * info: Information about this retrieval
-+ * results:
-+ * was event handled?
-+ *************************************************************/
-+
-+gboolean
-+_gtk_selection_property_notify (GtkWidget *widget,
-+ GdkEventProperty *event)
-+{
-+ g_print ("Selection_Property_Notifications should not occur in quartz\n");
-+ return TRUE;
-+}
-+
-+
-+/*************************************************************
-+ * gtk_selection_get_cb()
-+ * @clipboard: The clipboard requesting the data
-+ * @data: Pass to selection-get signal; handlers should put requested
-+ * data in the structure pointed to.
-+ * @info: DND uses this on Windows and X11. It can be ignored for
-+ * normal selection use.
-+ * @owner: The window to which the information request is sent; it's
-+ * the owner set with gtk_selection_owner_set_for_display.
-+ *
-+ * Emits a signal to the owner window to fill in the provided data structure.
-+ *************************************************************/
-+/* GtkClipboardGetFunc */
-+static void
-+gtk_selection_get_cb (GtkClipboard* clipboard,
-+ GtkSelectionData *data,
-+ guint info,
-+ gpointer owner)
-+{
-+ GtkTargetList *target_list;
-+ GtkWidget *widget = GTK_WIDGET (owner);
-+
-+
-+ g_return_if_fail (widget != NULL);
-+
-+ target_list = gtk_selection_target_list_get (widget, data->selection);
-+
-+ if ( data->target == gtk_selection_atoms[TIMESTAMP] ||
-+ data->target == gtk_selection_atoms[TARGETS] ||
-+ data->target == gtk_selection_atoms[SAVE_TARGETS])
-+ {
-+ gtk_selection_default_handler (widget, data);
-+ return;
-+ }
-+ if (target_list &&
-+ gtk_target_list_find (target_list, data->target, &info))
-+ {
-+ g_signal_emit_by_name (widget,
-+ "selection-get",
-+ data,
-+ info, time);
-+ }
-+}
-+
-+static void
-+gtk_selection_clear_cb (GtkClipboard* clipboard,
-+ gpointer owner)
-+{
-+ GtkWidget *widget = GTK_WIDGET (owner);
-+ GdkEventSelection event;
-+ event.type = GDK_SELECTION_CLEAR;
-+ event.selection = GDK_SELECTION_PRIMARY;
-+ event.window = gtk_widget_get_window(widget);
-+ g_signal_emit_by_name (widget,
-+ "selection-clear-event",
-+ &event,
-+ NULL);
-+}
-+
-+/*************************************************************
-+ * gtk_selection_default_handler:
-+ * Handles some default targets that exist for any widget
-+ * If it can't fit results into buffer, returns -1. This
-+ * won't happen in any conceivable case, since it would
-+ * require 1000 selection targets!
-+ *
-+ * arguments:
-+ * widget: selection owner
-+ * data: selection data [INOUT]
-+ *
-+ *************************************************************/
-+
-+static void
-+gtk_selection_default_handler (GtkWidget *widget,
-+ GtkSelectionData *data)
-+{
-+ if (data->target == gtk_selection_atoms[TIMESTAMP])
-+ {
-+ /* Time which was used to obtain selection */
-+ GList *tmp_list;
-+ GtkSelectionInfo *selection_info;
-+
-+ tmp_list = current_selections;
-+ while (tmp_list)
-+ {
-+ selection_info = (GtkSelectionInfo *)tmp_list->data;
-+ if ((selection_info->owner == widget) &&
-+ (selection_info->selection == data->selection))
-+ {
-+ gulong time = selection_info->time;
-+
-+ gtk_selection_data_set (data,
-+ GDK_SELECTION_TYPE_INTEGER,
-+ 32,
-+ (guchar *)&time,
-+ sizeof (time));
-+ return;
-+ }
-+
-+ tmp_list = tmp_list->next;
-+ }
-+
-+ data->length = -1;
-+ }
-+ else if (data->target == gtk_selection_atoms[TARGETS])
-+ {
-+ /* List of all targets supported for this widget/selection pair */
-+ GdkAtom *p;
-+ guint count;
-+ GList *tmp_list;
-+ GtkTargetList *target_list;
-+ GtkTargetPair *pair;
-+
-+ target_list = gtk_selection_target_list_get (widget,
-+ data->selection);
-+ count = g_list_length (target_list->list) + 3;
-+
-+ data->type = GDK_SELECTION_TYPE_ATOM;
-+ data->format = 32;
-+ data->length = count * sizeof (GdkAtom);
-+
-+ /* selection data is always terminated by a trailing \0
-+ */
-+ p = g_malloc (data->length + 1);
-+ data->data = (guchar *)p;
-+ data->data[data->length] = '\0';
-+
-+ *p++ = gtk_selection_atoms[TIMESTAMP];
-+ *p++ = gtk_selection_atoms[TARGETS];
-+ *p++ = gtk_selection_atoms[MULTIPLE];
-+
-+ tmp_list = target_list->list;
-+ while (tmp_list)
-+ {
-+ pair = (GtkTargetPair *)tmp_list->data;
-+ *p++ = pair->target;
-+
-+ tmp_list = tmp_list->next;
-+ }
-+ }
-+ else if (data->target == gtk_selection_atoms[SAVE_TARGETS])
-+ {
-+ gtk_selection_data_set (data,
-+ gdk_atom_intern_static_string ("NULL"),
-+ 32, NULL, 0);
-+ }
-+ else
-+ {
-+ data->length = -1;
-+ }
-+}
-+
-+static GtkSelectionInfo *
-+gtk_selection_info_get (GdkAtom selection)
-+{
-+ GList *tmp_list;
-+ GList *next;
-+ GtkSelectionInfo *selection_info;
-+
-+ tmp_list = current_selections;
-+ while (tmp_list)
-+ {
-+ next = tmp_list->next;
-+ selection_info = (GtkSelectionInfo *)tmp_list->data;
-+
-+ if (selection_info->selection == selection)
-+ {
-+ return selection_info;
-+ }
-+
-+ tmp_list = next;
-+ }
-+ return NULL;
-+}
-+
-+static void
-+gtk_selection_info_remove (GdkAtom selection, GtkWidget *owner)
-+{
-+ GList *tmp_list;
-+ GList *next;
-+ GtkSelectionInfo *selection_info;
-+
-+ g_return_if_fail (GTK_IS_WIDGET (owner));
-+
-+ tmp_list = current_selections;
-+ while (tmp_list)
-+ {
-+ next = tmp_list->next;
-+ selection_info = (GtkSelectionInfo *)tmp_list->data;
-+
-+ if (selection_info->selection == selection &&
-+ selection_info->owner == owner)
-+ {
-+ GtkClipboard *clip = gtk_clipboard_get(selection_info->selection);
-+ gtk_clipboard_clear(clip);
-+ current_selections = g_list_remove_link (current_selections,
-+ tmp_list);
-+ g_list_free (tmp_list);
-+ g_slice_free (GtkSelectionInfo, selection_info);
-+ return;
-+ }
-+
-+ tmp_list = next;
-+ }
-+}
-+static void
-+gtk_selection_info_append (GdkAtom selection, GtkWidget *owner, guint32 time)
-+{
-+ GtkSelectionInfo *selection_info;
-+
-+ g_return_if_fail (GTK_IS_WIDGET (owner));
-+
-+ selection_info = g_slice_new (GtkSelectionInfo);
-+ selection_info->selection = selection;
-+ selection_info->owner = owner;
-+ selection_info->time = time;
-+ current_selections = g_list_prepend (current_selections,
-+ selection_info);
-+}
-+
-+static void
-+gtk_selection_info_clear (GtkWidget *owner)
-+{
-+ GList *tmp_list;
-+ GList *next;
-+ GtkSelectionInfo *selection_info;
-+
-+ g_return_if_fail (GTK_IS_WIDGET (owner));
-+
-+ tmp_list = current_selections;
-+ while (tmp_list)
-+ {
-+ next = tmp_list->next;
-+ selection_info = (GtkSelectionInfo *)tmp_list->data;
-+
-+ if (selection_info->owner == owner)
-+ {
-+ current_selections = g_list_remove_link (current_selections,
-+ tmp_list);
-+ g_list_free (tmp_list);
-+ g_slice_free (GtkSelectionInfo, selection_info);
-+ }
-+
-+ tmp_list = next;
-+ }
-+}
-+
-+static GtkTargetList *
-+gtk_selection_target_list_get (GtkWidget *widget,
-+ GdkAtom selection)
-+{
-+ GtkSelectionTargetList *sellist;
-+ GList *tmp_list;
-+ GList *lists;
-+
-+ lists = g_object_get_data (G_OBJECT (widget), gtk_selection_handler_key);
-+
-+ tmp_list = lists;
-+ while (tmp_list)
-+ {
-+ sellist = tmp_list->data;
-+ if (sellist->selection == selection)
-+ return sellist->list;
-+ tmp_list = tmp_list->next;
-+ }
-+
-+ sellist = g_slice_new (GtkSelectionTargetList);
-+ sellist->selection = selection;
-+ sellist->list = gtk_target_list_new (NULL, 0);
-+
-+ lists = g_list_prepend (lists, sellist);
-+ g_object_set_data (G_OBJECT (widget), I_(gtk_selection_handler_key), lists);
-+
-+ return sellist->list;
-+}
-+
-+static void
-+gtk_selection_target_list_remove (GtkWidget *widget)
-+{
-+ GtkSelectionTargetList *sellist;
-+ GList *tmp_list;
-+ GList *lists;
-+
-+ lists = g_object_get_data (G_OBJECT (widget), gtk_selection_handler_key);
-+
-+ tmp_list = lists;
-+ while (tmp_list)
-+ {
-+ sellist = tmp_list->data;
-+
-+ gtk_target_list_unref (sellist->list);
-+
-+ g_slice_free (GtkSelectionTargetList, sellist);
-+ tmp_list = tmp_list->next;
-+ }
-+
-+ g_list_free (lists);
-+ g_object_set_data (G_OBJECT (widget), I_(gtk_selection_handler_key), NULL);
-+}
-+
-diff --git a/gtk/gtkselection.c b/gtk/gtkselection.c
-index c2c9d97..01774dc 100644
---- a/gtk/gtkselection.c
-+++ b/gtk/gtkselection.c
-@@ -633,6 +633,7 @@ gtk_target_table_free (GtkTargetEntry *targets,
- g_free (targets);
- }
-
-+#ifndef GDK_WINDOWING_QUARTZ /* Quartz handled by gtkselection-quartz.c */
- /**
- * gtk_selection_owner_set_for_display:
- * @display: the #Gdkdisplay where the selection is set
-@@ -735,7 +736,7 @@ gtk_selection_owner_set_for_display (GdkDisplay *display,
- else
- return FALSE;
- }
--
-+#endif /* GDK_WINDOWING_QUARTZ */
- /**
- * gtk_selection_owner_set:
- * @widget: (allow-none): a #GtkWidget, or %NULL.
-@@ -937,7 +938,7 @@ gtk_selection_add_targets (GtkWidget *widget,
- #endif
- }
-
--
-+#ifndef GDK_WINDOWING_QUARTZ /* Quartz is handled in gtkselection-quartz.c */
- /**
- * gtk_selection_remove_all:
- * @widget: a #GtkWidget
-@@ -998,8 +999,9 @@ gtk_selection_remove_all (GtkWidget *widget)
- /* Remove all selection lists */
- gtk_selection_target_list_remove (widget);
- }
-+#endif /* GDK_WINDOWING_QUARTZ */
-
--
-+#ifndef GDK_WINDOWING_QUARTZ /* Quartz is handled in gtkselection-quartz.c */
- /**
- * gtk_selection_convert:
- * @widget: The widget which acts as requestor
-@@ -1111,7 +1113,7 @@ gtk_selection_convert (GtkWidget *widget,
-
- return TRUE;
- }
--
-+#endif /* GDK_WINDOWING_QUARTZ */
- /**
- * gtk_selection_data_get_selection:
- * @selection_data: a pointer to a #GtkSelectionData structure.
-@@ -2184,6 +2186,7 @@ gtk_selection_init (void)
- initialize = FALSE;
- }
-
-+#ifndef GDK_WINDOWING_QUARTZ /* Quartz handled by gtkselection-quartz.c */
- /**
- * gtk_selection_clear:
- * @widget: a #GtkWidget
-@@ -2622,6 +2625,7 @@ _gtk_selection_incr_event (GdkWindow *window,
-
- return TRUE;
- }
-+#endif /* GDK_WINDOWING_QUARTZ */
-
- /*************************************************************
- * gtk_selection_incr_timeout:
-@@ -2676,6 +2680,7 @@ gtk_selection_incr_timeout (GtkIncrInfo *info)
- return retval;
- }
-
-+#ifndef GDK_WINDOWING_QUARTZ /* Quartz handled by gtkselection-quartz.c */
- /*************************************************************
- * _gtk_selection_notify:
- * Handler for "selection-notify-event" signals on windows
-@@ -2869,6 +2874,7 @@ _gtk_selection_property_notify (GtkWidget *widget,
-
- return TRUE;
- }
-+#endif /* GDK_WINDOWING_QUARTZ */
-
- /*************************************************************
- * gtk_selection_retrieval_timeout:
---
-1.7.6.3.dirty
-
diff --git a/modulesets/patches/0004-Ensure-src-and-dest-are-GdkWindows-in-_gdk_sythesize.patch b/modulesets/patches/0004-Ensure-src-and-dest-are-GdkWindows-in-_gdk_sythesize.patch
deleted file mode 100644
index d6b2444..0000000
--- a/modulesets/patches/0004-Ensure-src-and-dest-are-GdkWindows-in-_gdk_sythesize.patch
+++ /dev/null
@@ -1,32 +0,0 @@
-From 3ca7cfe29b62883d7cfe736216deadfe35c9116c Mon Sep 17 00:00:00 2001
-From: John Ralls
-Date: Fri, 11 Oct 2013 10:40:50 -0700
-Subject: [PATCH 4/4] Ensure src and dest are GdkWindows in
- _gdk_sythesize_crossing_events
-
-Discovered via a crash because b's (dest's) toplevel was NULL;
-ensuring that the dest is actually a GdkWindow or setting b to NULL
-prevents that path from being taken.
----
- gdk/gdkwindow.c | 5 +++--
- 1 file changed, 3 insertions(+), 2 deletions(-)
-
-diff --git a/gdk/gdkwindow.c b/gdk/gdkwindow.c
-index 7437552..ee10901 100644
---- a/gdk/gdkwindow.c
-+++ b/gdk/gdkwindow.c
-@@ -7570,8 +7570,9 @@ _gdk_synthesize_crossing_events (GdkDisplay *display,
-
- /* TODO: Don't send events to toplevel, as we get those from the windowing system */
-
-- a = src;
-- b = dest;
-+ a = (src && GDK_IS_WINDOW (src)) ? src : NULL;
-+ b = (dest && GDK_IS_WINDOW (dest)) ? dest : NULL;
-+
- if (src == dest)
- return; /* No crossings generated between src and dest */
-
---
-1.8.3.rc0
-
diff --git a/modulesets/patches/0004-gtk2-Extract-printer-setup-variables-into-a-struct.patch b/modulesets/patches/0004-gtk2-Extract-printer-setup-variables-into-a-struct.patch
deleted file mode 100644
index b9ef8c8..0000000
--- a/modulesets/patches/0004-gtk2-Extract-printer-setup-variables-into-a-struct.patch
+++ /dev/null
@@ -1,256 +0,0 @@
-From d72449b440363b0d1d06823fbf704f5ef8cd1717 Mon Sep 17 00:00:00 2001
-From: John Ralls
-Date: Sat, 25 Feb 2012 17:47:19 -0800
-Subject: [PATCH 4/9] Extract printer setup variables into a struct
-
-So that it can be passed as a single parameter to functions as we
-extract-function to make cups_request_printer_list_cb more manageable.
-
-Note that not all of the affected variables are changed in this
-changeset. Those are in extracted functions and will be addressed in the
-next two changes.
----
- modules/printbackends/cups/gtkprintbackendcups.c | 123 ++++++++++++----------
- 1 files changed, 67 insertions(+), 56 deletions(-)
-
-diff --git a/modules/printbackends/cups/gtkprintbackendcups.c b/modules/printbackends/cups/gtkprintbackendcups.c
-index ed138fd..5ec918c 100644
---- a/modules/printbackends/cups/gtkprintbackendcups.c
-+++ b/modules/printbackends/cups/gtkprintbackendcups.c
-@@ -1723,6 +1723,28 @@ typedef enum
- GTK_PRINTER_STATE_LEVEL_WARNING = 2,
- GTK_PRINTER_STATE_LEVEL_ERROR = 3
- } PrinterStateLevel;
-+
-+typedef struct
-+{
-+ const gchar *printer_name;
-+ const gchar *printer_uri;
-+ const gchar *member_uris;
-+ const gchar *location;
-+ const gchar *description;
-+ const gchar *state_msg;
-+ const gchar *reason_msg;
-+ PrinterStateLevel reason_level;
-+ gint state;
-+ gint job_count;
-+ gboolean is_paused;
-+ gboolean is_accepting_jobs;
-+ const gchar *default_cover_before;
-+ const gchar *default_cover_after;
-+ gboolean default_printer;
-+ gboolean got_printer_type;
-+ gboolean remote_printer;
-+ gchar **auth_info_required;
-+} PrinterSetupInfo;
- static void
- cups_request_printer_list_cb (GtkPrintBackendCups *cups_backend,
- GtkCupsResult *result,
-@@ -1775,32 +1797,14 @@ cups_request_printer_list_cb (GtkPrintBackendCups *cups_backend,
- for (attr = response->attrs; attr != NULL; attr = attr->next)
- {
- GtkPrinter *printer;
-- const gchar *printer_name = NULL;
-- const gchar *printer_uri = NULL;
-- const gchar *member_uris = NULL;
-- const gchar *location = NULL;
-- const gchar *description = NULL;
-- const gchar *state_msg = NULL;
-- gint state = 0;
-- gint job_count = 0;
- gboolean status_changed = FALSE;
- GList *node;
- gint i,j;
-- const gchar *reason_msg = NULL;
- gchar *reason_msg_desc = NULL;
- gchar *tmp_msg = NULL;
- gchar *tmp_msg2 = NULL;
-- gint printer_state_reason_level = 0; /* 0 - none, 1 - report, 2 - warning, 3 - error */
-- gboolean interested_in = FALSE;
- gboolean found = FALSE;
-- gboolean is_paused = FALSE;
-- gboolean is_accepting_jobs = TRUE;
-- gboolean default_printer = FALSE;
-- gboolean got_printer_type = FALSE;
-- const gchar *default_cover_before = NULL;
-- const gchar *default_cover_after = NULL;
-- gboolean remote_printer = FALSE;
-- gchar **auth_info_required = NULL;
-+ PrinterSetupInfo *info = g_slice_new0 (PrinterSetupInfo);
-
- /* Skip leading attributes until we hit a printer...
- */
-@@ -1937,8 +1941,8 @@ cups_request_printer_list_cb (GtkPrintBackendCups *cups_backend,
- attr = attr->next;
- }
-
-- if (printer_name == NULL ||
-- (printer_uri == NULL && member_uris == NULL))
-+ if (info->printer_name == NULL ||
-+ (info->printer_uri == NULL && info->member_uris == NULL))
- {
- if (attr == NULL)
- break;
-@@ -1946,19 +1950,19 @@ cups_request_printer_list_cb (GtkPrintBackendCups *cups_backend,
- continue;
- }
-
-- if (got_printer_type)
-+ if (info->got_printer_type)
- {
-- if (default_printer && !cups_backend->got_default_printer)
-+ if (info->default_printer && !cups_backend->got_default_printer)
- {
-- if (!remote_printer)
-+ if (!info->remote_printer)
- {
- cups_backend->got_default_printer = TRUE;
-- cups_backend->default_printer = g_strdup (printer_name);
-+ cups_backend->default_printer = g_strdup (info->printer_name);
- }
- else
- {
- if (remote_default_printer == NULL)
-- remote_default_printer = g_strdup (printer_name);
-+ remote_default_printer = g_strdup (info->printer_name);
- }
- }
- }
-@@ -1969,10 +1973,13 @@ cups_request_printer_list_cb (GtkPrintBackendCups *cups_backend,
- }
-
- /* remove name from checklist if it was found */
-- node = g_list_find_custom (removed_printer_checklist, printer_name, (GCompareFunc) find_printer);
-- removed_printer_checklist = g_list_delete_link (removed_printer_checklist, node);
-+ node = g_list_find_custom (removed_printer_checklist,
-+ info->printer_name,
-+ (GCompareFunc) find_printer);
-+ removed_printer_checklist = g_list_delete_link (removed_printer_checklist,
-+ node);
-
-- printer = gtk_print_backend_find_printer (backend, printer_name);
-+ printer = gtk_print_backend_find_printer (backend, info->printer_name);
- if (!printer)
- {
- GtkPrinterCups *cups_printer;
-@@ -2064,10 +2071,10 @@ cups_request_printer_list_cb (GtkPrintBackendCups *cups_backend,
- else
- g_object_ref (printer);
-
-- GTK_PRINTER_CUPS (printer)->remote = remote_printer;
-+ GTK_PRINTER_CUPS (printer)->remote = info->remote_printer;
-
-- gtk_printer_set_is_paused (printer, is_paused);
-- gtk_printer_set_is_accepting_jobs (printer, is_accepting_jobs);
-+ gtk_printer_set_is_paused (printer, info->is_paused);
-+ gtk_printer_set_is_accepting_jobs (printer, info->is_accepting_jobs);
-
- if (!gtk_printer_is_active (printer))
- {
-@@ -2090,57 +2097,60 @@ cups_request_printer_list_cb (GtkPrintBackendCups *cups_backend,
- cups_request_printer_info (cups_backend, gtk_printer_get_name (printer));
- #endif
-
-- GTK_PRINTER_CUPS (printer)->state = state;
-- status_changed = gtk_printer_set_job_count (printer, job_count);
-- status_changed |= gtk_printer_set_location (printer, location);
-- status_changed |= gtk_printer_set_description (printer, description);
-+ GTK_PRINTER_CUPS (printer)->state = info->state;
-+ status_changed = gtk_printer_set_job_count (printer, info->job_count);
-+ status_changed |= gtk_printer_set_location (printer, info->location);
-+ status_changed |= gtk_printer_set_description (printer,
-+ info->description);
-
-- if (state_msg != NULL && strlen (state_msg) == 0)
-+ if (info->state_msg != NULL && strlen (info->state_msg) == 0)
- {
-- if (is_paused && !is_accepting_jobs)
-+ if (info->is_paused && !info->is_accepting_jobs)
- /* Translators: this is a printer status. */
- tmp_msg2 = g_strdup ( N_("Paused ; Rejecting Jobs"));
-- if (is_paused && is_accepting_jobs)
-+ if (info->is_paused && info->is_accepting_jobs)
- /* Translators: this is a printer status. */
- tmp_msg2 = g_strdup ( N_("Paused"));
-- if (!is_paused && !is_accepting_jobs)
-+ if (!info->is_paused && !info->is_accepting_jobs)
- /* Translators: this is a printer status. */
- tmp_msg2 = g_strdup ( N_("Rejecting Jobs"));
-
- if (tmp_msg2 != NULL)
-- state_msg = tmp_msg2;
-+ info->state_msg = tmp_msg2;
- }
-
- /* Set description of the reason and combine it with printer-state-message. */
-- if ( (reason_msg != NULL))
-+ if ( (info->reason_msg != NULL))
- {
-- for (i = 0; i < G_N_ELEMENTS (reasons); i++)
-+ for (i = 0; i < G_N_ELEMENTS (printer_messages); i++)
- {
-- if (strncmp (reason_msg, reasons[i], strlen (reasons[i])) == 0)
-+ if (strncmp (info->reason_msg, printer_messages[i],
-+ strlen (printer_messages[i])) == 0)
- {
-- reason_msg_desc = g_strdup_printf (reasons_descs[i], printer_name);
-+ reason_msg_desc = g_strdup_printf (printer_strings[i],
-+ info->printer_name);
- found = TRUE;
- break;
- }
- }
-
- if (!found)
-- printer_state_reason_level = 0;
-+ info->reason_level = GTK_PRINTER_STATE_LEVEL_NONE;
-
-- if (printer_state_reason_level >= 2)
-+ if (info->reason_level >= GTK_PRINTER_STATE_LEVEL_WARNING)
- {
-- if (strlen (state_msg) == 0)
-- state_msg = reason_msg_desc;
-+ if (strlen (info->state_msg) == 0)
-+ info->state_msg = reason_msg_desc;
- else
- {
-- tmp_msg = g_strjoin (" ; ", state_msg, reason_msg_desc, NULL);
-- state_msg = tmp_msg;
-+ tmp_msg = g_strjoin (" ; ", info->state_msg, reason_msg_desc, NULL);
-+ info->state_msg = tmp_msg;
- }
- }
- }
-
-- status_changed |= gtk_printer_set_state_message (printer, state_msg);
-- status_changed |= gtk_printer_set_is_accepting_jobs (printer, is_accepting_jobs);
-+ status_changed |= gtk_printer_set_state_message (printer, info->state_msg);
-+ status_changed |= gtk_printer_set_is_accepting_jobs (printer, info->is_accepting_jobs);
-
- if (tmp_msg != NULL)
- g_free (tmp_msg);
-@@ -2153,9 +2163,9 @@ cups_request_printer_list_cb (GtkPrintBackendCups *cups_backend,
-
- /* Set printer icon according to importance
- (none, report, warning, error - report is omitted). */
-- if (printer_state_reason_level == 3)
-+ if (info->reason_level == 3)
- gtk_printer_set_icon_name (printer, "gtk-print-error");
-- else if (printer_state_reason_level == 2)
-+ else if (info->reason_level == 2)
- gtk_printer_set_icon_name (printer, "gtk-print-warning");
- else if (gtk_printer_is_paused (printer))
- gtk_printer_set_icon_name (printer, "gtk-print-paused");
-@@ -2168,7 +2178,8 @@ cups_request_printer_list_cb (GtkPrintBackendCups *cups_backend,
-
- /* The ref is held by GtkPrintBackend, in add_printer() */
- g_object_unref (printer);
--
-+ g_slice_free (PrinterSetupInfo, info);
-+
- if (attr == NULL)
- break;
- }
---
-1.7.7.5 (Apple Git-28)
-
diff --git a/modulesets/patches/0004-gtk3-Extract-printer-setup-variables-into-a-struct.patch b/modulesets/patches/0004-gtk3-Extract-printer-setup-variables-into-a-struct.patch
deleted file mode 100644
index df3b9fc..0000000
--- a/modulesets/patches/0004-gtk3-Extract-printer-setup-variables-into-a-struct.patch
+++ /dev/null
@@ -1,253 +0,0 @@
-From 766446e4948f7e764902b58f21e6a74c29f4348d Mon Sep 17 00:00:00 2001
-From: John Ralls
-Date: Sun, 19 Feb 2012 13:19:11 -0800
-Subject: [PATCH 4/9] Extract printer setup variables into a struct
-
-So that it can be passed as a single parameter to functions as we extract-function to make cups_request_printer_list_cb more manageable.
-
-Note that not all of the affected variables are changed in this changeset. Those are in extracted functions and will be addressed in the next two changes.
----
- modules/printbackends/cups/gtkprintbackendcups.c | 123 ++++++++++++----------
- 1 files changed, 67 insertions(+), 56 deletions(-)
-
-diff --git a/modules/printbackends/cups/gtkprintbackendcups.c b/modules/printbackends/cups/gtkprintbackendcups.c
-index fab3f40..17f3ddc 100644
---- a/modules/printbackends/cups/gtkprintbackendcups.c
-+++ b/modules/printbackends/cups/gtkprintbackendcups.c
-@@ -1657,6 +1657,28 @@ typedef enum
- GTK_PRINTER_STATE_LEVEL_WARNING = 2,
- GTK_PRINTER_STATE_LEVEL_ERROR = 3
- } PrinterStateLevel;
-+
-+typedef struct
-+{
-+ const gchar *printer_name;
-+ const gchar *printer_uri;
-+ const gchar *member_uris;
-+ const gchar *location;
-+ const gchar *description;
-+ const gchar *state_msg;
-+ const gchar *reason_msg;
-+ PrinterStateLevel reason_level;
-+ gint state;
-+ gint job_count;
-+ gboolean is_paused;
-+ gboolean is_accepting_jobs;
-+ const gchar *default_cover_before;
-+ const gchar *default_cover_after;
-+ gboolean default_printer;
-+ gboolean got_printer_type;
-+ gboolean remote_printer;
-+ gchar **auth_info_required;
-+} PrinterSetupInfo;
- static void
- cups_request_printer_list_cb (GtkPrintBackendCups *cups_backend,
- GtkCupsResult *result,
-@@ -1709,32 +1731,14 @@ cups_request_printer_list_cb (GtkPrintBackendCups *cups_backend,
- for (attr = response->attrs; attr != NULL; attr = attr->next)
- {
- GtkPrinter *printer;
-- const gchar *printer_name = NULL;
-- const gchar *printer_uri = NULL;
-- const gchar *member_uris = NULL;
-- const gchar *location = NULL;
-- const gchar *description = NULL;
-- const gchar *state_msg = NULL;
-- gint state = 0;
-- gint job_count = 0;
- gboolean status_changed = FALSE;
- GList *node;
- gint i,j;
-- const gchar *reason_msg = NULL;
- gchar *reason_msg_desc = NULL;
- gchar *tmp_msg = NULL;
- gchar *tmp_msg2 = NULL;
-- gint printer_state_reason_level = 0; /* 0 - none, 1 - report, 2 - warning, 3 - error */
-- gboolean interested_in = FALSE;
- gboolean found = FALSE;
-- gboolean is_paused = FALSE;
-- gboolean is_accepting_jobs = TRUE;
-- gboolean default_printer = FALSE;
-- gboolean got_printer_type = FALSE;
-- gchar *default_cover_before = NULL;
-- gchar *default_cover_after = NULL;
-- gboolean remote_printer = FALSE;
-- gchar **auth_info_required = NULL;
-+ PrinterSetupInfo *info = g_slice_new0 (PrinterSetupInfo);
-
- /* Skip leading attributes until we hit a printer...
- */
-@@ -1871,8 +1875,8 @@ cups_request_printer_list_cb (GtkPrintBackendCups *cups_backend,
- attr = attr->next;
- }
-
-- if (printer_name == NULL ||
-- (printer_uri == NULL && member_uris == NULL))
-+ if (info->printer_name == NULL ||
-+ (info->printer_uri == NULL && info->member_uris == NULL))
- {
- if (attr == NULL)
- break;
-@@ -1880,19 +1884,19 @@ cups_request_printer_list_cb (GtkPrintBackendCups *cups_backend,
- continue;
- }
-
-- if (got_printer_type)
-+ if (info->got_printer_type)
- {
-- if (default_printer && !cups_backend->got_default_printer)
-+ if (info->default_printer && !cups_backend->got_default_printer)
- {
-- if (!remote_printer)
-+ if (!info->remote_printer)
- {
- cups_backend->got_default_printer = TRUE;
-- cups_backend->default_printer = g_strdup (printer_name);
-+ cups_backend->default_printer = g_strdup (info->printer_name);
- }
- else
- {
- if (remote_default_printer == NULL)
-- remote_default_printer = g_strdup (printer_name);
-+ remote_default_printer = g_strdup (info->printer_name);
- }
- }
- }
-@@ -1903,10 +1907,13 @@ cups_request_printer_list_cb (GtkPrintBackendCups *cups_backend,
- }
-
- /* remove name from checklist if it was found */
-- node = g_list_find_custom (removed_printer_checklist, printer_name, (GCompareFunc) find_printer);
-- removed_printer_checklist = g_list_delete_link (removed_printer_checklist, node);
-+ node = g_list_find_custom (removed_printer_checklist,
-+ info->printer_name,
-+ (GCompareFunc) find_printer);
-+ removed_printer_checklist = g_list_delete_link (removed_printer_checklist,
-+ node);
-
-- printer = gtk_print_backend_find_printer (backend, printer_name);
-+ printer = gtk_print_backend_find_printer (backend, info->printer_name);
- if (!printer)
- {
- GtkPrinterCups *cups_printer;
-@@ -2003,10 +2007,10 @@ cups_request_printer_list_cb (GtkPrintBackendCups *cups_backend,
- else
- g_object_ref (printer);
-
-- GTK_PRINTER_CUPS (printer)->remote = remote_printer;
-+ GTK_PRINTER_CUPS (printer)->remote = info->remote_printer;
-
-- gtk_printer_set_is_paused (printer, is_paused);
-- gtk_printer_set_is_accepting_jobs (printer, is_accepting_jobs);
-+ gtk_printer_set_is_paused (printer, info->is_paused);
-+ gtk_printer_set_is_accepting_jobs (printer, info->is_accepting_jobs);
-
- if (!gtk_printer_is_active (printer))
- {
-@@ -2031,57 +2035,60 @@ cups_request_printer_list_cb (GtkPrintBackendCups *cups_backend,
- cups_request_printer_info (cups_backend, gtk_printer_get_name (printer));
- #endif
-
-- GTK_PRINTER_CUPS (printer)->state = state;
-- status_changed = gtk_printer_set_job_count (printer, job_count);
-- status_changed |= gtk_printer_set_location (printer, location);
-- status_changed |= gtk_printer_set_description (printer, description);
-+ GTK_PRINTER_CUPS (printer)->state = info->state;
-+ status_changed = gtk_printer_set_job_count (printer, info->job_count);
-+ status_changed |= gtk_printer_set_location (printer, info->location);
-+ status_changed |= gtk_printer_set_description (printer,
-+ info->description);
-
-- if (state_msg != NULL && strlen (state_msg) == 0)
-+ if (info->state_msg != NULL && strlen (info->state_msg) == 0)
- {
-- if (is_paused && !is_accepting_jobs)
-+ if (info->is_paused && !info->is_accepting_jobs)
- /* Translators: this is a printer status. */
- tmp_msg2 = g_strdup ( N_("Paused ; Rejecting Jobs"));
-- if (is_paused && is_accepting_jobs)
-+ if (info->is_paused && info->is_accepting_jobs)
- /* Translators: this is a printer status. */
- tmp_msg2 = g_strdup ( N_("Paused"));
-- if (!is_paused && !is_accepting_jobs)
-+ if (!info->is_paused && !info->is_accepting_jobs)
- /* Translators: this is a printer status. */
- tmp_msg2 = g_strdup ( N_("Rejecting Jobs"));
-
- if (tmp_msg2 != NULL)
-- state_msg = tmp_msg2;
-+ info->state_msg = tmp_msg2;
- }
-
- /* Set description of the reason and combine it with printer-state-message. */
-- if ( (reason_msg != NULL))
-+ if ( (info->reason_msg != NULL))
- {
-- for (i = 0; i < G_N_ELEMENTS (reasons); i++)
-+ for (i = 0; i < G_N_ELEMENTS (printer_messages); i++)
- {
-- if (strncmp (reason_msg, reasons[i], strlen (reasons[i])) == 0)
-+ if (strncmp (info->reason_msg, printer_messages[i],
-+ strlen (printer_messages[i])) == 0)
- {
-- reason_msg_desc = g_strdup_printf (reasons_descs[i], printer_name);
-+ reason_msg_desc = g_strdup_printf (printer_strings[i],
-+ info->printer_name);
- found = TRUE;
- break;
- }
- }
-
- if (!found)
-- printer_state_reason_level = 0;
-+ info->reason_level = GTK_PRINTER_STATE_LEVEL_NONE;
-
-- if (printer_state_reason_level >= 2)
-+ if (info->reason_level >= GTK_PRINTER_STATE_LEVEL_WARNING)
- {
-- if (strlen (state_msg) == 0)
-- state_msg = reason_msg_desc;
-+ if (strlen (info->state_msg) == 0)
-+ info->state_msg = reason_msg_desc;
- else
- {
-- tmp_msg = g_strjoin (" ; ", state_msg, reason_msg_desc, NULL);
-- state_msg = tmp_msg;
-+ tmp_msg = g_strjoin (" ; ", info->state_msg, reason_msg_desc, NULL);
-+ info->state_msg = tmp_msg;
- }
- }
- }
-
-- status_changed |= gtk_printer_set_state_message (printer, state_msg);
-- status_changed |= gtk_printer_set_is_accepting_jobs (printer, is_accepting_jobs);
-+ status_changed |= gtk_printer_set_state_message (printer, info->state_msg);
-+ status_changed |= gtk_printer_set_is_accepting_jobs (printer, info->is_accepting_jobs);
-
- if (tmp_msg != NULL)
- g_free (tmp_msg);
-@@ -2093,9 +2103,9 @@ cups_request_printer_list_cb (GtkPrintBackendCups *cups_backend,
-
- /* Set printer icon according to importance
- (none, report, warning, error - report is omitted). */
-- if (printer_state_reason_level == 3)
-+ if (info->reason_level == GTK_PRINTER_STATE_LEVEL_ERROR)
- gtk_printer_set_icon_name (printer, "printer-error");
-- else if (printer_state_reason_level == 2)
-+ else if (info->reason_level == GTK_PRINTER_STATE_LEVEL_WARNING)
- gtk_printer_set_icon_name (printer, "printer-warning");
- else if (gtk_printer_is_paused (printer))
- gtk_printer_set_icon_name (printer, "printer-paused");
-@@ -2108,7 +2118,8 @@ cups_request_printer_list_cb (GtkPrintBackendCups *cups_backend,
-
- /* The ref is held by GtkPrintBackend, in add_printer() */
- g_object_unref (printer);
--
-+ g_slice_free (PrinterSetupInfo, info);
-+
- if (attr == NULL)
- break;
- }
---
-1.7.7.5 (Apple Git-28)
-
diff --git a/modulesets/patches/0005-gtk2-Extract-function-cups_printer_handle_attribute.patch b/modulesets/patches/0005-gtk2-Extract-function-cups_printer_handle_attribute.patch
deleted file mode 100644
index 4410729..0000000
--- a/modulesets/patches/0005-gtk2-Extract-function-cups_printer_handle_attribute.patch
+++ /dev/null
@@ -1,282 +0,0 @@
-From ce133d00fdb641ea53edb385567d863730b10813 Mon Sep 17 00:00:00 2001
-From: John Ralls
-Date: Sat, 25 Feb 2012 17:48:06 -0800
-Subject: [PATCH 5/9] Extract function cups_printer_handle_attribute
-
----
- modules/printbackends/cups/gtkprintbackendcups.c | 252 +++++++++++-----------
- 1 files changed, 130 insertions(+), 122 deletions(-)
-
-diff --git a/modules/printbackends/cups/gtkprintbackendcups.c b/modules/printbackends/cups/gtkprintbackendcups.c
-index 5ec918c..8bd68bc 100644
---- a/modules/printbackends/cups/gtkprintbackendcups.c
-+++ b/modules/printbackends/cups/gtkprintbackendcups.c
-@@ -1745,6 +1745,135 @@ typedef struct
- gboolean remote_printer;
- gchar **auth_info_required;
- } PrinterSetupInfo;
-+
-+static void
-+cups_printer_handle_attribute (GtkPrintBackendCups *cups_backend,
-+ ipp_attribute_t *attr,
-+ PrinterSetupInfo *info)
-+{
-+ gint i,j;
-+
-+ if (strcmp (ippGetName (attr), "printer-name") == 0 &&
-+ ippGetValueTag (attr) == IPP_TAG_NAME)
-+ info->printer_name = ippGetString (attr, 0, NULL);
-+ else if (strcmp (ippGetName (attr), "printer-uri-supported") == 0 &&
-+ ippGetValueTag (attr) == IPP_TAG_URI)
-+ info->printer_uri = ippGetString (attr, 0, NULL);
-+ else if (strcmp (ippGetName (attr), "member-uris") == 0 &&
-+ ippGetValueTag (attr) == IPP_TAG_URI)
-+ info->member_uris = ippGetString (attr, 0, NULL);
-+ else if (strcmp (ippGetName (attr), "printer-location") == 0)
-+ info->location = ippGetString (attr, 0, NULL);
-+ else if (strcmp (ippGetName (attr), "printer-info") == 0)
-+ info->description = ippGetString (attr, 0, NULL);
-+ else if (strcmp (ippGetName (attr), "printer-state-message") == 0)
-+ info->state_msg = ippGetString (attr, 0, NULL);
-+ else if (strcmp (ippGetName (attr), "printer-state-reasons") == 0)
-+ /* Store most important reason to reason_msg and set
-+ its importance at printer_state_reason_level */
-+ {
-+ for (i = 0; i < ippGetCount (attr); i++)
-+ {
-+ gboolean interested_in = FALSE;
-+ if (strcmp (ippGetString (attr, i, NULL), "none") == 0)
-+ continue;
-+ /* Sets is_paused flag for paused printer. */
-+ if (strcmp (ippGetString (attr, i, NULL), "paused") == 0)
-+ {
-+ info->is_paused = TRUE;
-+ }
-+
-+ for (j = 0; j < G_N_ELEMENTS (printer_messages); j++)
-+ if (strncmp (ippGetString (attr, i, NULL), printer_messages[j], strlen (printer_messages[j])) == 0)
-+ {
-+ interested_in = TRUE;
-+ break;
-+ }
-+
-+ if (!interested_in)
-+ continue;
-+ if (g_str_has_suffix (ippGetString (attr, i, NULL), "-report"))
-+ {
-+ if (info->reason_level <= GTK_PRINTER_STATE_LEVEL_INFO)
-+ {
-+ info->reason_msg = ippGetString (attr, i, NULL);
-+ info->reason_level = GTK_PRINTER_STATE_LEVEL_INFO;
-+ }
-+ }
-+ else if (g_str_has_suffix (ippGetString (attr, i, NULL), "-warning"))
-+ {
-+ if (info->reason_level <= GTK_PRINTER_STATE_LEVEL_WARNING)
-+ {
-+ info->reason_msg = ippGetString (attr, i, NULL);
-+ info->reason_level = GTK_PRINTER_STATE_LEVEL_WARNING;
-+ }
-+ }
-+ else /* It is error in the case of no suffix. */
-+ {
-+ info->reason_msg = ippGetString (attr, i, NULL);
-+ info->reason_level = GTK_PRINTER_STATE_LEVEL_ERROR;
-+ }
-+ }
-+ }
-+ else if (strcmp (ippGetName (attr), "printer-state") == 0)
-+ info->state = ippGetInteger (attr, 0);
-+ else if (strcmp (ippGetName (attr), "queued-job-count") == 0)
-+ info->job_count = ippGetInteger (attr, 0);
-+ else if (strcmp (ippGetName (attr), "printer-is-accepting-jobs") == 0)
-+ {
-+ if (ippGetBoolean (attr, 0) == 1)
-+ info->is_accepting_jobs = TRUE;
-+ else
-+ info->is_accepting_jobs = FALSE;
-+ }
-+ else if (strcmp (ippGetName (attr), "job-sheets-supported") == 0)
-+ {
-+ if (cups_backend->covers == NULL)
-+ {
-+ cups_backend->number_of_covers = ippGetCount (attr);
-+ cups_backend->covers = g_new (char *, cups_backend->number_of_covers + 1);
-+ for (i = 0; i < cups_backend->number_of_covers; i++)
-+ cups_backend->covers[i] = g_strdup (ippGetString (attr, i, NULL));
-+ cups_backend->covers[cups_backend->number_of_covers] = NULL;
-+ }
-+ }
-+ else if (strcmp (ippGetName (attr), "job-sheets-default") == 0)
-+ {
-+ if (ippGetCount (attr) == 2)
-+ {
-+ info->default_cover_before = ippGetString (attr, 0, NULL);
-+ info->default_cover_after = ippGetString (attr, 1, NULL);
-+ }
-+ }
-+ else if (strcmp (ippGetName (attr), "printer-type") == 0)
-+ {
-+ info->got_printer_type = TRUE;
-+ if (ippGetInteger (attr, 0) & 0x00020000)
-+ info->default_printer = TRUE;
-+ else
-+ info->default_printer = FALSE;
-+
-+ if (ippGetInteger (attr, 0) & 0x00000002)
-+ info->remote_printer = TRUE;
-+ else
-+ info->remote_printer = FALSE;
-+ }
-+ else if (strcmp (ippGetName (attr), "auth-info-required") == 0)
-+ {
-+ if (strcmp (ippGetString (attr, 0, NULL), "none") != 0)
-+ {
-+ info->auth_info_required = g_new0 (gchar *, ippGetCount (attr) + 1);
-+ for (i = 0; i < ippGetCount (attr); i++)
-+ info->auth_info_required[i] = g_strdup (ippGetString (attr, i, NULL));
-+ }
-+ }
-+ else
-+ {
-+ GTK_NOTE (PRINTING,
-+ g_print ("CUPS Backend: Attribute %s ignored", ippGetName (attr)));
-+ }
-+
-+}
- static void
- cups_request_printer_list_cb (GtkPrintBackendCups *cups_backend,
- GtkCupsResult *result,
-@@ -1816,128 +1945,7 @@ cups_request_printer_list_cb (GtkPrintBackendCups *cups_backend,
-
- while (attr != NULL && ippGetGroupTag (attr) == IPP_TAG_PRINTER)
- {
-- if (strcmp (ippGetName (attr), "printer-name") == 0 &&
-- ippGetValueTag (attr) == IPP_TAG_NAME)
-- printer_name = ippGetString (attr, 0, NULL);
-- else if (strcmp (ippGetName (attr), "printer-uri-supported") == 0 &&
-- ippGetValueTag (attr) == IPP_TAG_URI)
-- printer_uri = ippGetString (attr, 0, NULL);
-- else if (strcmp (ippGetName (attr), "member-uris") == 0 &&
-- ippGetValueTag (attr) == IPP_TAG_URI)
-- member_uris = ippGetString (attr, 0, NULL);
-- else if (strcmp (ippGetName (attr), "printer-location") == 0)
-- location = ippGetString (attr, 0, NULL);
-- else if (strcmp (ippGetName (attr), "printer-info") == 0)
-- description = ippGetString (attr, 0, NULL);
-- else if (strcmp (ippGetName (attr), "printer-state-message") == 0)
-- state_msg = ippGetString (attr, 0, NULL);
-- else if (strcmp (ippGetName (attr), "printer-state-reasons") == 0)
-- /* Store most important reason to reason_msg and set
-- its importance at printer_state_reason_level */
-- {
-- for (i = 0; i < ippGetCount (attr); i++)
-- {
-- if (strcmp (ippGetString (attr, i, NULL), "none") != 0)
-- {
-- /* Sets is_paused flag for paused printer. */
-- if (strcmp (ippGetString (attr, i, NULL), "paused") == 0)
-- {
-- is_paused = TRUE;
-- }
--
-- interested_in = FALSE;
-- for (j = 0; j < G_N_ELEMENTS (reasons); j++)
-- if (strncmp (ippGetString (attr, i, NULL), reasons[j], strlen (reasons[j])) == 0)
-- {
-- interested_in = TRUE;
-- break;
-- }
--
-- if (interested_in)
-- {
-- if (g_str_has_suffix (ippGetString (attr, i, NULL), "-report"))
-- {
-- if (printer_state_reason_level <= 1)
-- {
-- reason_msg = ippGetString (attr, i, NULL);
-- printer_state_reason_level = 1;
-- }
-- }
-- else if (g_str_has_suffix (ippGetString (attr, i, NULL), "-warning"))
-- {
-- if (printer_state_reason_level <= 2)
-- {
-- reason_msg = ippGetString (attr, i, NULL);
-- printer_state_reason_level = 2;
-- }
-- }
-- else /* It is error in the case of no suffix. */
-- {
-- reason_msg = ippGetString (attr, i, NULL);
-- printer_state_reason_level = 3;
-- }
-- }
-- }
-- }
-- }
-- else if (strcmp (ippGetName (attr), "printer-state") == 0)
-- state = ippGetInteger (attr, 0);
-- else if (strcmp (ippGetName (attr), "queued-job-count") == 0)
-- job_count = ippGetInteger (attr, 0);
-- else if (strcmp (ippGetName (attr), "printer-is-accepting-jobs") == 0)
-- {
-- if (ippGetBoolean (attr, 0) == 1)
-- is_accepting_jobs = TRUE;
-- else
-- is_accepting_jobs = FALSE;
-- }
-- else if (strcmp (ippGetName (attr), "job-sheets-supported") == 0)
-- {
-- if (cups_backend->covers == NULL)
-- {
-- cups_backend->number_of_covers = ippGetCount (attr);
-- cups_backend->covers = g_new (char *, cups_backend->number_of_covers + 1);
-- for (i = 0; i < cups_backend->number_of_covers; i++)
-- cups_backend->covers[i] = g_strdup (ippGetString (attr, i, NULL));
-- cups_backend->covers[cups_backend->number_of_covers] = NULL;
-- }
-- }
-- else if (strcmp (ippGetName (attr), "job-sheets-default") == 0)
-- {
-- if (ippGetCount (attr) == 2)
-- {
-- default_cover_before = ippGetString (attr, 0, NULL);
-- default_cover_after = ippGetString (attr, 1, NULL);
-- }
-- }
-- else if (strcmp (ippGetName (attr), "printer-type") == 0)
-- {
-- got_printer_type = TRUE;
-- if (ippGetInteger (attr, 0) & 0x00020000)
-- default_printer = TRUE;
-- else
-- default_printer = FALSE;
--
-- if (ippGetInteger (attr, 0) & 0x00000002)
-- remote_printer = TRUE;
-- else
-- remote_printer = FALSE;
-- }
-- else if (strcmp (ippGetName (attr), "auth-info-required") == 0)
-- {
-- if (strcmp (ippGetString (attr, 0, NULL), "none") != 0)
-- {
-- auth_info_required = g_new0 (gchar *, ippGetCount (attr) + 1);
-- for (i = 0; i < ippGetCount (attr); i++)
-- auth_info_required[i] = g_strdup (ippGetString (attr, i, NULL));
-- }
-- }
-- else
-- {
-- GTK_NOTE (PRINTING,
-- g_print ("CUPS Backend: Attribute %s ignored", ippGetName (attr)));
-- }
--
-+ cups_printer_handle_attribute (cups_backend, attr, info);
- attr = attr->next;
- }
-
---
-1.7.7.5 (Apple Git-28)
-
diff --git a/modulesets/patches/0005-gtk3-Extract-function-cups_printer_handle_attribute.patch b/modulesets/patches/0005-gtk3-Extract-function-cups_printer_handle_attribute.patch
deleted file mode 100644
index 3584f5c..0000000
--- a/modulesets/patches/0005-gtk3-Extract-function-cups_printer_handle_attribute.patch
+++ /dev/null
@@ -1,268 +0,0 @@
---- a/modules/printbackends/cups/gtkprintbackendcups.c 2012-04-20 14:44:01.000000000 -0700
-+++ b/modules/printbackends/cups/gtkprintbackendcups.c 2012-04-20 15:07:10.000000000 -0700
-@@ -1679,6 +1679,135 @@
- gboolean remote_printer;
- gchar **auth_info_required;
- } PrinterSetupInfo;
-+
-+static void
-+cups_printer_handle_attribute (GtkPrintBackendCups *cups_backend,
-+ ipp_attribute_t *attr,
-+ PrinterSetupInfo *info)
-+{
-+ gint i,j;
-+
-+ if (strcmp (ippGetName (attr), "printer-name") == 0 &&
-+ ippGetValueTag (attr) == IPP_TAG_NAME)
-+ info->printer_name = ippGetString (attr, 0, NULL);
-+ else if (strcmp (ippGetName (attr), "printer-uri-supported") == 0 &&
-+ ippGetValueTag (attr) == IPP_TAG_URI)
-+ info->printer_uri = ippGetString (attr, 0, NULL);
-+ else if (strcmp (ippGetName (attr), "member-uris") == 0 &&
-+ ippGetValueTag (attr) == IPP_TAG_URI)
-+ info->member_uris = ippGetString (attr, 0, NULL);
-+ else if (strcmp (ippGetName (attr), "printer-location") == 0)
-+ info->location = ippGetString (attr, 0, NULL);
-+ else if (strcmp (ippGetName (attr), "printer-info") == 0)
-+ info->description = ippGetString (attr, 0, NULL);
-+ else if (strcmp (ippGetName (attr), "printer-state-message") == 0)
-+ info->state_msg = ippGetString (attr, 0, NULL);
-+ else if (strcmp (ippGetName (attr), "printer-state-reasons") == 0)
-+ /* Store most important reason to reason_msg and set
-+ its importance at printer_state_reason_level */
-+ {
-+ for (i = 0; i < ippGetCount (attr); i++)
-+ {
-+ gboolean interested_in = FALSE;
-+ if (strcmp (ippGetString (attr, i, NULL), "none") == 0)
-+ continue;
-+ /* Sets is_paused flag for paused printer. */
-+ if (strcmp (ippGetString (attr, i, NULL), "paused") == 0)
-+ {
-+ info->is_paused = TRUE;
-+ }
-+
-+ for (j = 0; j < G_N_ELEMENTS (printer_messages); j++)
-+ if (strncmp (ippGetString (attr, i, NULL), printer_messages[j], strlen (printer_messages[j])) == 0)
-+ {
-+ interested_in = TRUE;
-+ break;
-+ }
-+
-+ if (!interested_in)
-+ continue;
-+ if (g_str_has_suffix (ippGetString (attr, i, NULL), "-report"))
-+ {
-+ if (info->reason_level <= GTK_PRINTER_STATE_LEVEL_INFO)
-+ {
-+ info->reason_msg = ippGetString (attr, i, NULL);
-+ info->reason_level = GTK_PRINTER_STATE_LEVEL_INFO;
-+ }
-+ }
-+ else if (g_str_has_suffix (ippGetString (attr, i, NULL), "-warning"))
-+ {
-+ if (info->reason_level <= GTK_PRINTER_STATE_LEVEL_WARNING)
-+ {
-+ info->reason_msg = ippGetString (attr, i, NULL);
-+ info->reason_level = GTK_PRINTER_STATE_LEVEL_WARNING;
-+ }
-+ }
-+ else /* It is error in the case of no suffix. */
-+ {
-+ info->reason_msg = ippGetString (attr, i, NULL);
-+ info->reason_level = GTK_PRINTER_STATE_LEVEL_ERROR;
-+ }
-+ }
-+ }
-+ else if (strcmp (ippGetName (attr), "printer-state") == 0)
-+ info->state = ippGetInteger (attr, 0);
-+ else if (strcmp (ippGetName (attr), "queued-job-count") == 0)
-+ info->job_count = ippGetInteger (attr, 0);
-+ else if (strcmp (ippGetName (attr), "printer-is-accepting-jobs") == 0)
-+ {
-+ if (ippGetBoolean (attr, 0) == 1)
-+ info->is_accepting_jobs = TRUE;
-+ else
-+ info->is_accepting_jobs = FALSE;
-+ }
-+ else if (strcmp (ippGetName (attr), "job-sheets-supported") == 0)
-+ {
-+ if (cups_backend->covers == NULL)
-+ {
-+ cups_backend->number_of_covers = ippGetCount (attr);
-+ cups_backend->covers = g_new (char *, cups_backend->number_of_covers + 1);
-+ for (i = 0; i < cups_backend->number_of_covers; i++)
-+ cups_backend->covers[i] = g_strdup (ippGetString (attr, i, NULL));
-+ cups_backend->covers[cups_backend->number_of_covers] = NULL;
-+ }
-+ }
-+ else if (strcmp (ippGetName (attr), "job-sheets-default") == 0)
-+ {
-+ if (ippGetCount (attr) == 2)
-+ {
-+ info->default_cover_before = ippGetString (attr, 0, NULL);
-+ info->default_cover_after = ippGetString (attr, 1, NULL);
-+ }
-+ }
-+ else if (strcmp (ippGetName (attr), "printer-type") == 0)
-+ {
-+ info->got_printer_type = TRUE;
-+ if (ippGetInteger (attr, 0) & 0x00020000)
-+ info->default_printer = TRUE;
-+ else
-+ info->default_printer = FALSE;
-+
-+ if (ippGetInteger (attr, 0) & 0x00000002)
-+ info->remote_printer = TRUE;
-+ else
-+ info->remote_printer = FALSE;
-+ }
-+ else if (strcmp (ippGetName (attr), "auth-info-required") == 0)
-+ {
-+ if (strcmp (ippGetString (attr, 0, NULL), "none") != 0)
-+ {
-+ info->auth_info_required = g_new0 (gchar *, ippGetCount (attr) + 1);
-+ for (i = 0; i < ippGetCount (attr); i++)
-+ info->auth_info_required[i] = g_strdup (ippGetString (attr, i, NULL));
-+ }
-+ }
-+ else
-+ {
-+ GTK_NOTE (PRINTING,
-+ g_print ("CUPS Backend: Attribute %s ignored", ippGetName (attr)));
-+ }
-+
-+}
- static void
- cups_request_printer_list_cb (GtkPrintBackendCups *cups_backend,
- GtkCupsResult *result,
-@@ -1750,128 +1879,7 @@
-
- while (attr != NULL && attr->group_tag == IPP_TAG_PRINTER)
- {
-- if (strcmp (attr->name, "printer-name") == 0 &&
-- attr->value_tag == IPP_TAG_NAME)
-- printer_name = attr->values[0].string.text;
-- else if (strcmp (attr->name, "printer-uri-supported") == 0 &&
-- attr->value_tag == IPP_TAG_URI)
-- printer_uri = attr->values[0].string.text;
-- else if (strcmp (attr->name, "member-uris") == 0 &&
-- attr->value_tag == IPP_TAG_URI)
-- member_uris = attr->values[0].string.text;
-- else if (strcmp (attr->name, "printer-location") == 0)
-- location = attr->values[0].string.text;
-- else if (strcmp (attr->name, "printer-info") == 0)
-- description = attr->values[0].string.text;
-- else if (strcmp (attr->name, "printer-state-message") == 0)
-- state_msg = attr->values[0].string.text;
-- else if (strcmp (attr->name, "printer-state-reasons") == 0)
-- /* Store most important reason to reason_msg and set
-- its importance at printer_state_reason_level */
-- {
-- for (i = 0; i < attr->num_values; i++)
-- {
-- if (strcmp (attr->values[i].string.text, "none") != 0)
-- {
-- /* Sets is_paused flag for paused printer. */
-- if (strcmp (attr->values[i].string.text, "paused") == 0)
-- {
-- is_paused = TRUE;
-- }
--
-- interested_in = FALSE;
-- for (j = 0; j < G_N_ELEMENTS (reasons); j++)
-- if (strncmp (attr->values[i].string.text, reasons[j], strlen (reasons[j])) == 0)
-- {
-- interested_in = TRUE;
-- break;
-- }
--
-- if (interested_in)
-- {
-- if (g_str_has_suffix (attr->values[i].string.text, "-report"))
-- {
-- if (printer_state_reason_level <= 1)
-- {
-- reason_msg = attr->values[i].string.text;
-- printer_state_reason_level = 1;
-- }
-- }
-- else if (g_str_has_suffix (attr->values[i].string.text, "-warning"))
-- {
-- if (printer_state_reason_level <= 2)
-- {
-- reason_msg = attr->values[i].string.text;
-- printer_state_reason_level = 2;
-- }
-- }
-- else /* It is error in the case of no suffix. */
-- {
-- reason_msg = attr->values[i].string.text;
-- printer_state_reason_level = 3;
-- }
-- }
-- }
-- }
-- }
-- else if (strcmp (attr->name, "printer-state") == 0)
-- state = attr->values[0].integer;
-- else if (strcmp (attr->name, "queued-job-count") == 0)
-- job_count = attr->values[0].integer;
-- else if (strcmp (attr->name, "printer-is-accepting-jobs") == 0)
-- {
-- if (attr->values[0].boolean == 1)
-- is_accepting_jobs = TRUE;
-- else
-- is_accepting_jobs = FALSE;
-- }
-- else if (strcmp (attr->name, "job-sheets-supported") == 0)
-- {
-- if (cups_backend->covers == NULL)
-- {
-- cups_backend->number_of_covers = attr->num_values;
-- cups_backend->covers = g_new (char *, cups_backend->number_of_covers + 1);
-- for (i = 0; i < cups_backend->number_of_covers; i++)
-- cups_backend->covers[i] = g_strdup (attr->values[i].string.text);
-- cups_backend->covers[cups_backend->number_of_covers] = NULL;
-- }
-- }
-- else if (strcmp (attr->name, "job-sheets-default") == 0)
-- {
-- if (attr->num_values == 2)
-- {
-- default_cover_before = attr->values[0].string.text;
-- default_cover_after = attr->values[1].string.text;
-- }
-- }
-- else if (strcmp (attr->name, "printer-type") == 0)
-- {
-- got_printer_type = TRUE;
-- if (attr->values[0].integer & 0x00020000)
-- default_printer = TRUE;
-- else
-- default_printer = FALSE;
--
-- if (attr->values[0].integer & 0x00000002)
-- remote_printer = TRUE;
-- else
-- remote_printer = FALSE;
-- }
-- else if (strcmp (attr->name, "auth-info-required") == 0)
-- {
-- if (strcmp (attr->values[0].string.text, "none") != 0)
-- {
-- auth_info_required = g_new0 (gchar *, attr->num_values + 1);
-- for (i = 0; i < attr->num_values; i++)
-- auth_info_required[i] = g_strdup (attr->values[i].string.text);
-- }
-- }
-- else
-- {
-- GTK_NOTE (PRINTING,
-- g_print ("CUPS Backend: Attribute %s ignored", attr->name));
-- }
--
-+ cups_printer_handle_attribute (cups_backend, attr, info);
- attr = attr->next;
- }
-
diff --git a/modulesets/patches/0006-Bug-658722-Drag-and-Drop-sometimes-stops-working.patch b/modulesets/patches/0006-Bug-658722-Drag-and-Drop-sometimes-stops-working.patch
deleted file mode 100644
index fc27587..0000000
--- a/modulesets/patches/0006-Bug-658722-Drag-and-Drop-sometimes-stops-working.patch
+++ /dev/null
@@ -1,209 +0,0 @@
-From 2bf33d856464d33ed1bd5ab787c9279e464f08df Mon Sep 17 00:00:00 2001
-From: John Ralls
-Date: Thu, 11 Feb 2016 15:53:33 -0800
-Subject: [PATCH] Bug-658722-Drag-and-Drop-sometimes-stops-working
-
----
- gdk/quartz/gdkdnd-quartz.c | 35 ++++-
- gtk/gtkdnd-quartz.c | 321 +++++++++++++++++++++------------------------
- 2 files changed, 179 insertions(+), 177 deletions(-)
-
-diff --git a/gdk/quartz/gdkdnd-quartz.c b/gdk/quartz/gdkdnd-quartz.c
-index ec89ad2..7a70415 100644
---- a/gdk/quartz/gdkdnd-quartz.c
-+++ b/gdk/quartz/gdkdnd-quartz.c
-@@ -111,11 +111,20 @@ GdkDragContext *
- gdk_drag_begin (GdkWindow *window,
- GList *targets)
- {
-- g_assert (_gdk_quartz_drag_source_context == NULL);
-+ if (_gdk_quartz_drag_source_context != NULL)
-+ {
-+ /* Something is amiss with the existing drag, so log a message
-+ and abort it */
-+ g_warning ("Drag begun with existing context; aborting the preexisting drag");
-+ gdk_drag_abort (_gdk_quartz_drag_source_context,
-+ (guint32)g_get_real_time ());
-+ }
-+
-
- /* Create fake context */
- _gdk_quartz_drag_source_context = gdk_drag_context_new ();
- _gdk_quartz_drag_source_context->is_source = TRUE;
-+ _gdk_quartz_drag_source_context->source_window = window;
-
- return _gdk_quartz_drag_source_context;
- }
-@@ -155,20 +164,36 @@ gdk_drag_find_window_for_screen (GdkDragContext *context,
- /* FIXME: Implement */
- }
-
-+static void
-+gdk_quartz_drag_end (GdkDragContext *context)
-+{
-+ GdkEvent event;
-+
-+ g_assert (context != NULL);
-+ event.dnd.type = GDK_DROP_FINISHED;
-+ event.dnd.window = g_object_ref (context->source_window);
-+ event.dnd.send_event = FALSE;
-+ event.dnd.context = context;
-+
-+ (*_gdk_event_func) (&event, _gdk_event_data);
-+
-+ g_object_run_dispose (_gdk_quartz_drag_source_context);
-+ _gdk_quartz_drag_source_context = NULL;
-+}
-+
- void
- gdk_drag_drop (GdkDragContext *context,
- guint32 time)
- {
-- /* FIXME: Implement */
-+ gdk_quartz_drag_end (context);
- }
-
- void
- gdk_drag_abort (GdkDragContext *context,
- guint32 time)
- {
-- g_return_if_fail (context != NULL);
--
-- /* FIXME: Implement */
-+ g_warning ("Gdk-quartz-drag-drop, aborting\n");
-+ gdk_quartz_drag_end (context);
- }
-
- void
-diff --git a/gtk/gtkdnd-quartz.c b/gtk/gtkdnd-quartz.c
-index 62b8570..483525d 100644
---- a/gtk/gtkdnd-quartz.c
-+++ b/gtk/gtkdnd-quartz.c
-@@ -270,6 +270,39 @@ gtk_drag_dest_info_destroy (gpointer data)
- g_free (info);
- }
-
-+static void
-+gtk_drag_source_info_destroy (GtkDragSourceInfo *info)
-+{
-+ NSPasteboard *pasteboard;
-+ NSAutoreleasePool *pool;
-+
-+ if (info->icon_pixbuf)
-+ g_object_unref (info->icon_pixbuf);
-+
-+ g_signal_emit_by_name (info->widget, "drag-end",
-+ info->context);
-+
-+ if (info->source_widget)
-+ g_object_unref (info->source_widget);
-+
-+ if (info->widget)
-+ g_object_unref (info->widget);
-+
-+ gtk_target_list_unref (info->target_list);
-+
-+ pool = [[NSAutoreleasePool alloc] init];
-+
-+ /* Empty the pasteboard, so that it will not accidentally access
-+ * info->context after it has been destroyed.
-+ */
-+ pasteboard = [NSPasteboard pasteboardWithName: NSDragPboard];
-+ [pasteboard declareTypes: nil owner: nil];
-+
-+ [pool release];
-+
-+ g_free (info);
-+}
-+
- static GtkDragDestInfo *
- gtk_drag_get_dest_info (GdkDragContext *context,
- gboolean create)
-@@ -303,18 +336,14 @@ gtk_drag_get_source_info (GdkDragContext *context,
- {
- info = g_new0 (GtkDragSourceInfo, 1);
- info->context = context;
-- g_object_set_qdata (G_OBJECT (context), dest_info_quark, info);
-+ g_object_ref (info->context);
-+ g_object_set_qdata_full (G_OBJECT (context), dest_info_quark,
-+ info, gtk_drag_source_info_destroy);
- }
-
- return info;
- }
-
--static void
--gtk_drag_clear_source_info (GdkDragContext *context)
--{
-- g_object_set_qdata (G_OBJECT (context), dest_info_quark, NULL);
--}
--
- GtkWidget *
- gtk_drag_get_source_widget (GdkDragContext *context)
- {
-@@ -1888,53 +1917,6 @@ gtk_drag_set_default_icon (GdkColormap *colormap,
- g_warning ("gtk_drag_set_default_icon is not supported on Mac OS X.");
- }
-
--static void
--gtk_drag_source_info_destroy (GtkDragSourceInfo *info)
--{
-- NSPasteboard *pasteboard;
-- NSAutoreleasePool *pool;
--
-- if (info->icon_pixbuf)
-- g_object_unref (info->icon_pixbuf);
--
-- g_signal_emit_by_name (info->widget, "drag-end",
-- info->context);
--
-- if (info->source_widget)
-- g_object_unref (info->source_widget);
--
-- if (info->widget)
-- g_object_unref (info->widget);
--
-- gtk_target_list_unref (info->target_list);
--
-- pool = [[NSAutoreleasePool alloc] init];
--
-- /* Empty the pasteboard, so that it will not accidentally access
-- * info->context after it has been destroyed.
-- */
-- pasteboard = [NSPasteboard pasteboardWithName: NSDragPboard];
-- [pasteboard declareTypes: nil owner: nil];
--
-- [pool release];
--
-- gtk_drag_clear_source_info (info->context);
-- g_object_unref (info->context);
--
-- g_free (info);
-- info = NULL;
--}
--
--static gboolean
--drag_drop_finished_idle_cb (gpointer data)
--{
-- GtkDragSourceInfo* info = (GtkDragSourceInfo*) data;
--
-- if (info->success)
-- gtk_drag_source_info_destroy (data);
--
-- return FALSE;
--}
-
- static void
- gtk_drag_drop_finished (GtkDragSourceInfo *info,
-@@ -1950,11 +1932,6 @@ gtk_drag_drop_finished (GtkDragSourceInfo *info,
- g_signal_emit_by_name (info->source_widget, "drag-data-delete",
- info->context);
-
-- /* Workaround for the fact that the NS API blocks until the drag is
-- * over. This way the context is still valid when returning from
-- * drag_begin, even if it will still be quite useless. See bug #501588.
-- */
-- g_idle_add (drag_drop_finished_idle_cb, info);
- }
-
- /*************************************************************
diff --git a/modulesets/patches/0006-gtk2-Extract-Function-cups_create_printer.patch b/modulesets/patches/0006-gtk2-Extract-Function-cups_create_printer.patch
deleted file mode 100644
index 0f6f931..0000000
--- a/modulesets/patches/0006-gtk2-Extract-Function-cups_create_printer.patch
+++ /dev/null
@@ -1,222 +0,0 @@
-From 814c0944a953371708ec9ffa32c8d261245409d2 Mon Sep 17 00:00:00 2001
-From: John Ralls
-Date: Sat, 25 Feb 2012 17:52:02 -0800
-Subject: [PATCH 6/9] Extract Function cups_create_printer
-
----
- modules/printbackends/cups/gtkprintbackendcups.c | 185 ++++++++++++----------
- 1 files changed, 99 insertions(+), 86 deletions(-)
-
-diff --git a/modules/printbackends/cups/gtkprintbackendcups.c b/modules/printbackends/cups/gtkprintbackendcups.c
-index 8bd68bc..e2d9192 100644
---- a/modules/printbackends/cups/gtkprintbackendcups.c
-+++ b/modules/printbackends/cups/gtkprintbackendcups.c
-@@ -1874,6 +1874,102 @@ cups_printer_handle_attribute (GtkPrintBackendCups *cups_backend,
- }
-
- }
-+
-+static GtkPrinter*
-+cups_create_printer (GtkPrintBackendCups *cups_backend,
-+ PrinterSetupInfo *info)
-+{
-+ GtkPrinterCups *cups_printer;
-+ GtkPrinter *printer;
-+ char uri[HTTP_MAX_URI]; /* Printer URI */
-+ char method[HTTP_MAX_URI]; /* Method/scheme name */
-+ char username[HTTP_MAX_URI]; /* Username:password */
-+ char hostname[HTTP_MAX_URI]; /* Hostname */
-+ char resource[HTTP_MAX_URI]; /* Resource name */
-+ int port; /* Port number */
-+ char *cups_server; /* CUPS server */
-+ GtkPrintBackend *backend = GTK_PRINT_BACKEND (cups_backend);
-+
-+ cups_printer = gtk_printer_cups_new (info->printer_name, backend);
-+
-+ cups_printer->device_uri = g_strdup_printf ("/printers/%s",
-+ info->printer_name);
-+
-+ /* Check to see if we are looking at a class */
-+ if (info->member_uris)
-+ {
-+ cups_printer->printer_uri = g_strdup (info->member_uris);
-+ /* TODO if member_uris is a class we need to recursivly find a printer */
-+ GTK_NOTE (PRINTING,
-+ g_print ("CUPS Backend: Found class with printer %s\n",
-+ info->member_uris));
-+ }
-+ else
-+ {
-+ cups_printer->printer_uri = g_strdup (info->printer_uri);
-+ GTK_NOTE (PRINTING,
-+ g_print ("CUPS Backend: Found printer %s\n", info->printer_uri));
-+ }
-+
-+#ifdef HAVE_CUPS_API_1_2
-+ httpSeparateURI (HTTP_URI_CODING_ALL, cups_printer->printer_uri,
-+ method, sizeof (method),
-+ username, sizeof (username),
-+ hostname, sizeof (hostname),
-+ &port,
-+ resource, sizeof (resource));
-+
-+#else
-+ httpSeparate (cups_printer->printer_uri,
-+ method,
-+ username,
-+ hostname,
-+ &port,
-+ resource);
-+#endif
-+
-+ if (strncmp (resource, "/printers/", 10) == 0)
-+ {
-+ cups_printer->ppd_name = g_strdup (resource + 10);
-+ GTK_NOTE (PRINTING,
-+ g_print ("CUPS Backend: Setting ppd name '%s' for printer/class '%s'\n", cups_printer->ppd_name, info->printer_name));
-+ }
-+
-+ gethostname (uri, sizeof (uri));
-+ cups_server = g_strdup (cupsServer());
-+
-+ if (strcasecmp (uri, hostname) == 0)
-+ strcpy (hostname, "localhost");
-+
-+ /* if the cups server is local and listening at a unix domain socket
-+ * then use the socket connection
-+ */
-+ if ((strstr (hostname, "localhost") != NULL) &&
-+ (cups_server[0] == '/'))
-+ strcpy (hostname, cups_server);
-+
-+ g_free (cups_server);
-+
-+ cups_printer->default_cover_before = g_strdup (info->default_cover_before);
-+ cups_printer->default_cover_after = g_strdup (info->default_cover_after);
-+
-+ cups_printer->hostname = g_strdup (hostname);
-+ cups_printer->port = port;
-+
-+ cups_printer->auth_info_required = g_strdupv (info->auth_info_required);
-+ g_strfreev (info->auth_info_required);
-+
-+ printer = GTK_PRINTER (cups_printer);
-+
-+ if (cups_backend->default_printer != NULL &&
-+ strcmp (cups_backend->default_printer, gtk_printer_get_name (printer)) == 0)
-+ gtk_printer_set_is_default (printer, TRUE);
-+
-+
-+ gtk_print_backend_add_printer (backend, printer);
-+ return printer;
-+}
-+
- static void
- cups_request_printer_list_cb (GtkPrintBackendCups *cups_backend,
- GtkCupsResult *result,
-@@ -1928,7 +2024,7 @@ cups_request_printer_list_cb (GtkPrintBackendCups *cups_backend,
- GtkPrinter *printer;
- gboolean status_changed = FALSE;
- GList *node;
-- gint i,j;
-+ gint i;
- gchar *reason_msg_desc = NULL;
- gchar *tmp_msg = NULL;
- gchar *tmp_msg2 = NULL;
-@@ -1990,91 +2086,8 @@ cups_request_printer_list_cb (GtkPrintBackendCups *cups_backend,
- printer = gtk_print_backend_find_printer (backend, info->printer_name);
- if (!printer)
- {
-- GtkPrinterCups *cups_printer;
-- char uri[HTTP_MAX_URI]; /* Printer URI */
-- char method[HTTP_MAX_URI]; /* Method/scheme name */
-- char username[HTTP_MAX_URI]; /* Username:password */
-- char hostname[HTTP_MAX_URI]; /* Hostname */
-- char resource[HTTP_MAX_URI]; /* Resource name */
-- int port; /* Port number */
-- char *cups_server; /* CUPS server */
--
-- list_has_changed = TRUE;
-- cups_printer = gtk_printer_cups_new (printer_name, backend);
--
-- cups_printer->device_uri = g_strdup_printf ("/printers/%s", printer_name);
--
-- /* Check to see if we are looking at a class */
-- if (member_uris)
-- {
-- cups_printer->printer_uri = g_strdup (member_uris);
-- /* TODO if member_uris is a class we need to recursivly find a printer */
-- GTK_NOTE (PRINTING,
-- g_print ("CUPS Backend: Found class with printer %s\n", member_uris));
-- }
-- else
-- {
-- cups_printer->printer_uri = g_strdup (printer_uri);
-- GTK_NOTE (PRINTING,
-- g_print ("CUPS Backend: Found printer %s\n", printer_uri));
-- }
--
--#if (CUPS_VERSION_MAJOR == 1 && CUPS_VERSION_MINOR >= 2) || CUPS_VERSION_MAJOR > 1
-- httpSeparateURI (HTTP_URI_CODING_ALL, cups_printer->printer_uri,
-- method, sizeof (method),
-- username, sizeof (username),
-- hostname, sizeof (hostname),
-- &port,
-- resource, sizeof (resource));
--
--#else
-- httpSeparate (cups_printer->printer_uri,
-- method,
-- username,
-- hostname,
-- &port,
-- resource);
--#endif
--
-- if (strncmp (resource, "/printers/", 10) == 0)
-- {
-- cups_printer->ppd_name = g_strdup (resource + 10);
-- GTK_NOTE (PRINTING,
-- g_print ("CUPS Backend: Setting ppd name '%s' for printer/class '%s'\n", cups_printer->ppd_name, printer_name));
-- }
--
-- gethostname (uri, sizeof (uri));
-- cups_server = g_strdup (cupsServer());
--
-- if (strcasecmp (uri, hostname) == 0)
-- strcpy (hostname, "localhost");
--
-- /* if the cups server is local and listening at a unix domain socket
-- * then use the socket connection
-- */
-- if ((strstr (hostname, "localhost") != NULL) &&
-- (cups_server[0] == '/'))
-- strcpy (hostname, cups_server);
--
-- g_free (cups_server);
--
-- cups_printer->default_cover_before = g_strdup (default_cover_before);
-- cups_printer->default_cover_after = g_strdup (default_cover_after);
--
-- cups_printer->hostname = g_strdup (hostname);
-- cups_printer->port = port;
--
-- cups_printer->auth_info_required = g_strdupv (auth_info_required);
-- g_strfreev (auth_info_required);
--
-- printer = GTK_PRINTER (cups_printer);
--
-- if (cups_backend->default_printer != NULL &&
-- strcmp (cups_backend->default_printer, gtk_printer_get_name (printer)) == 0)
-- gtk_printer_set_is_default (printer, TRUE);
--
--
-- gtk_print_backend_add_printer (backend, printer);
-+ printer = cups_create_printer (cups_backend, info);
-+ list_has_changed = TRUE;
- }
- else
- g_object_ref (printer);
---
-1.7.7.5 (Apple Git-28)
-
diff --git a/modulesets/patches/0006-gtk3-Extract-Function-cups_create_printer.patch b/modulesets/patches/0006-gtk3-Extract-Function-cups_create_printer.patch
deleted file mode 100644
index 7c47bb2..0000000
--- a/modulesets/patches/0006-gtk3-Extract-Function-cups_create_printer.patch
+++ /dev/null
@@ -1,238 +0,0 @@
-From 722dbc499b97f4df9fabcee1b5e652b89e1af676 Mon Sep 17 00:00:00 2001
-From: John Ralls
-Date: Sun, 19 Feb 2012 13:29:11 -0800
-Subject: [PATCH 6/9] Extract Function cups_create_printer
-
----
- modules/printbackends/cups/gtkprintbackendcups.c | 201 ++++++++++++----------
- 1 files changed, 107 insertions(+), 94 deletions(-)
-
-diff --git a/modules/printbackends/cups/gtkprintbackendcups.c b/modules/printbackends/cups/gtkprintbackendcups.c
-index d57974e..6055b36 100644
---- a/modules/printbackends/cups/gtkprintbackendcups.c
-+++ b/modules/printbackends/cups/gtkprintbackendcups.c
-@@ -1808,6 +1808,108 @@ cups_printer_handle_attribute (GtkPrintBackendCups *cups_backend,
- }
-
- }
-+
-+static GtkPrinter*
-+cups_create_printer (GtkPrintBackendCups *cups_backend,
-+ PrinterSetupInfo *info)
-+{
-+ GtkPrinterCups *cups_printer;
-+ GtkPrinter *printer;
-+ char uri[HTTP_MAX_URI]; /* Printer URI */
-+ char method[HTTP_MAX_URI]; /* Method/scheme name */
-+ char username[HTTP_MAX_URI]; /* Username:password */
-+ char hostname[HTTP_MAX_URI]; /* Hostname */
-+ char resource[HTTP_MAX_URI]; /* Resource name */
-+ int port; /* Port number */
-+ char *cups_server; /* CUPS server */
-+ GtkPrintBackend *backend = GTK_PRINT_BACKEND (cups_backend);
-+
-+#ifdef HAVE_COLORD
-+ cups_printer = gtk_printer_cups_new (info->printer_name,
-+ backend,
-+ cups_backend->colord_client);
-+#else
-+ cups_printer = gtk_printer_cups_new (info->printer_name, backend, NULL);
-+#endif
-+
-+ cups_printer->device_uri = g_strdup_printf ("/printers/%s",
-+ info->printer_name);
-+
-+ /* Check to see if we are looking at a class */
-+ if (info->member_uris)
-+ {
-+ cups_printer->printer_uri = g_strdup (info->member_uris);
-+ /* TODO if member_uris is a class we need to recursivly find a printer */
-+ GTK_NOTE (PRINTING,
-+ g_print ("CUPS Backend: Found class with printer %s\n",
-+ info->member_uris));
-+ }
-+ else
-+ {
-+ cups_printer->printer_uri = g_strdup (info->printer_uri);
-+ GTK_NOTE (PRINTING,
-+ g_print ("CUPS Backend: Found printer %s\n", info->printer_uri));
-+ }
-+
-+#ifdef HAVE_CUPS_API_1_2
-+ httpSeparateURI (HTTP_URI_CODING_ALL, cups_printer->printer_uri,
-+ method, sizeof (method),
-+ username, sizeof (username),
-+ hostname, sizeof (hostname),
-+ &port,
-+ resource, sizeof (resource));
-+
-+#else
-+ httpSeparate (cups_printer->printer_uri,
-+ method,
-+ username,
-+ hostname,
-+ &port,
-+ resource);
-+#endif
-+
-+ if (strncmp (resource, "/printers/", 10) == 0)
-+ {
-+ cups_printer->ppd_name = g_strdup (resource + 10);
-+ GTK_NOTE (PRINTING,
-+ g_print ("CUPS Backend: Setting ppd name '%s' for printer/class '%s'\n", cups_printer->ppd_name, info->printer_name));
-+ }
-+
-+ gethostname (uri, sizeof (uri));
-+ cups_server = g_strdup (cupsServer());
-+
-+ if (strcasecmp (uri, hostname) == 0)
-+ strcpy (hostname, "localhost");
-+
-+ /* if the cups server is local and listening at a unix domain socket
-+ * then use the socket connection
-+ */
-+ if ((strstr (hostname, "localhost") != NULL) &&
-+ (cups_server[0] == '/'))
-+ strcpy (hostname, cups_server);
-+
-+ g_free (cups_server);
-+
-+ cups_printer->default_cover_before = g_strdup (info->default_cover_before);
-+ cups_printer->default_cover_after = g_strdup (info->default_cover_after);
-+
-+ cups_printer->hostname = g_strdup (hostname);
-+ cups_printer->port = port;
-+
-+ cups_printer->auth_info_required = g_strdupv (info->auth_info_required);
-+ g_strfreev (info->auth_info_required);
-+
-+ printer = GTK_PRINTER (cups_printer);
-+
-+ if (cups_backend->default_printer != NULL &&
-+ strcmp (cups_backend->default_printer, gtk_printer_get_name (printer)) == 0)
-+ gtk_printer_set_is_default (printer, TRUE);
-+
-+
-+ gtk_print_backend_add_printer (backend, printer);
-+ return printer;
-+}
-+
- static void
- cups_request_printer_list_cb (GtkPrintBackendCups *cups_backend,
- GtkCupsResult *result,
-@@ -1872,7 +1964,7 @@ cups_request_printer_list_cb (GtkPrintBackendCups *cups_backend,
- GtkPrinter *printer;
- gboolean status_changed = FALSE;
- GList *node;
-- gint i,j;
-+ gint i;
- gchar *reason_msg_desc = NULL;
- gchar *tmp_msg = NULL;
- gchar *tmp_msg2 = NULL;
-@@ -1923,99 +2025,10 @@ cups_request_printer_list_cb (GtkPrintBackendCups *cups_backend,
-
- printer = gtk_print_backend_find_printer (backend, info->printer_name);
- if (!printer)
-- {
-- GtkPrinterCups *cups_printer;
-- char uri[HTTP_MAX_URI]; /* Printer URI */
-- char method[HTTP_MAX_URI]; /* Method/scheme name */
-- char username[HTTP_MAX_URI]; /* Username:password */
-- char hostname[HTTP_MAX_URI]; /* Hostname */
-- char resource[HTTP_MAX_URI]; /* Resource name */
-- int port; /* Port number */
-- char *cups_server; /* CUPS server */
--
-- list_has_changed = TRUE;
--#ifdef HAVE_COLORD
-- cups_printer = gtk_printer_cups_new (printer_name,
-- backend,
-- cups_backend->colord_client);
--#else
-- cups_printer = gtk_printer_cups_new (printer_name, backend, NULL);
--#endif
--
-- cups_printer->device_uri = g_strdup_printf ("/printers/%s", printer_name);
--
-- /* Check to see if we are looking at a class */
-- if (member_uris)
-- {
-- cups_printer->printer_uri = g_strdup (member_uris);
-- /* TODO if member_uris is a class we need to recursivly find a printer */
-- GTK_NOTE (PRINTING,
-- g_print ("CUPS Backend: Found class with printer %s\n", member_uris));
-- }
-- else
-- {
-- cups_printer->printer_uri = g_strdup (printer_uri);
-- GTK_NOTE (PRINTING,
-- g_print ("CUPS Backend: Found printer %s\n", printer_uri));
-- }
--
--#if (CUPS_VERSION_MAJOR == 1 && CUPS_VERSION_MINOR >= 2) || CUPS_VERSION_MAJOR > 1
-- httpSeparateURI (HTTP_URI_CODING_ALL, cups_printer->printer_uri,
-- method, sizeof (method),
-- username, sizeof (username),
-- hostname, sizeof (hostname),
-- &port,
-- resource, sizeof (resource));
--
--#else
-- httpSeparate (cups_printer->printer_uri,
-- method,
-- username,
-- hostname,
-- &port,
-- resource);
--#endif
--
-- if (strncmp (resource, "/printers/", 10) == 0)
-- {
-- cups_printer->ppd_name = g_strdup (resource + 10);
-- GTK_NOTE (PRINTING,
-- g_print ("CUPS Backend: Setting ppd name '%s' for printer/class '%s'\n", cups_printer->ppd_name, printer_name));
-- }
--
-- gethostname (uri, sizeof (uri));
-- cups_server = g_strdup (cupsServer());
--
-- if (strcasecmp (uri, hostname) == 0)
-- strcpy (hostname, "localhost");
--
-- /* if the cups server is local and listening at a unix domain socket
-- * then use the socket connection
-- */
-- if ((strstr (hostname, "localhost") != NULL) &&
-- (cups_server[0] == '/'))
-- strcpy (hostname, cups_server);
--
-- g_free (cups_server);
--
-- cups_printer->default_cover_before = g_strdup (default_cover_before);
-- cups_printer->default_cover_after = g_strdup (default_cover_after);
--
-- cups_printer->hostname = g_strdup (hostname);
-- cups_printer->port = port;
--
-- cups_printer->auth_info_required = g_strdupv (auth_info_required);
-- g_strfreev (auth_info_required);
--
-- printer = GTK_PRINTER (cups_printer);
--
-- if (cups_backend->default_printer != NULL &&
-- strcmp (cups_backend->default_printer, gtk_printer_get_name (printer)) == 0)
-- gtk_printer_set_is_default (printer, TRUE);
--
--
-- gtk_print_backend_add_printer (backend, printer);
-- }
-+ {
-+ printer = cups_create_printer (cups_backend, info);
-+ list_has_changed = TRUE;
-+ }
- else
- g_object_ref (printer);
-
---
-1.7.7.5 (Apple Git-28)
-
diff --git a/modulesets/patches/0007-gtk2-Move-some-variable-declarations-into-the-scopes-in-w.patch b/modulesets/patches/0007-gtk2-Move-some-variable-declarations-into-the-scopes-in-w.patch
deleted file mode 100644
index 73423a3..0000000
--- a/modulesets/patches/0007-gtk2-Move-some-variable-declarations-into-the-scopes-in-w.patch
+++ /dev/null
@@ -1,98 +0,0 @@
-From a9b8fbefb1a2285d30752ffa5bd481f9a175f16c Mon Sep 17 00:00:00 2001
-From: John Ralls
-Date: Sat, 25 Feb 2012 17:52:46 -0800
-Subject: [PATCH 7/9] Move some variable declarations into the scopes in which
- they're used.
-
----
- modules/printbackends/cups/gtkprintbackendcups.c | 39 +++++++++++----------
- 1 files changed, 20 insertions(+), 19 deletions(-)
-
-diff --git a/modules/printbackends/cups/gtkprintbackendcups.c b/modules/printbackends/cups/gtkprintbackendcups.c
-index e2d9192..a51f681 100644
---- a/modules/printbackends/cups/gtkprintbackendcups.c
-+++ b/modules/printbackends/cups/gtkprintbackendcups.c
-@@ -2025,12 +2025,8 @@ cups_request_printer_list_cb (GtkPrintBackendCups *cups_backend,
- gboolean status_changed = FALSE;
- GList *node;
- gint i;
-- gchar *reason_msg_desc = NULL;
-- gchar *tmp_msg = NULL;
-- gchar *tmp_msg2 = NULL;
-- gboolean found = FALSE;
- PrinterSetupInfo *info = g_slice_new0 (PrinterSetupInfo);
--
-+
- /* Skip leading attributes until we hit a printer...
- */
- while (attr != NULL && ippGetGroupTag (attr) != IPP_TAG_PRINTER)
-@@ -2126,23 +2122,30 @@ cups_request_printer_list_cb (GtkPrintBackendCups *cups_backend,
-
- if (info->state_msg != NULL && strlen (info->state_msg) == 0)
- {
-- if (info->is_paused && !info->is_accepting_jobs)
-- /* Translators: this is a printer status. */
-+ gchar *tmp_msg2 = NULL;
-+ if (info->is_paused && !info->is_accepting_jobs)
-+ /* Translators: this is a printer status. */
- tmp_msg2 = g_strdup ( N_("Paused ; Rejecting Jobs"));
- if (info->is_paused && info->is_accepting_jobs)
-- /* Translators: this is a printer status. */
-+ /* Translators: this is a printer status. */
- tmp_msg2 = g_strdup ( N_("Paused"));
- if (!info->is_paused && !info->is_accepting_jobs)
-- /* Translators: this is a printer status. */
-+ /* Translators: this is a printer status. */
- tmp_msg2 = g_strdup ( N_("Rejecting Jobs"));
-
- if (tmp_msg2 != NULL)
-- info->state_msg = tmp_msg2;
-- }
-+ {
-+ info->state_msg = tmp_msg2;
-+ g_free (tmp_msg2);
-+ }
-+ }
-
- /* Set description of the reason and combine it with printer-state-message. */
- if ( (info->reason_msg != NULL))
- {
-+ gchar *reason_msg_desc = NULL;
-+ gboolean found = FALSE;
-+
- for (i = 0; i < G_N_ELEMENTS (printer_messages); i++)
- {
- if (strncmp (info->reason_msg, printer_messages[i],
-@@ -2164,23 +2167,21 @@ cups_request_printer_list_cb (GtkPrintBackendCups *cups_backend,
- info->state_msg = reason_msg_desc;
- else
- {
-- tmp_msg = g_strjoin (" ; ", info->state_msg, reason_msg_desc, NULL);
-+ gchar *tmp_msg = NULL;
-+ tmp_msg = g_strjoin (" ; ", info->state_msg,
-+ reason_msg_desc, NULL);
- info->state_msg = tmp_msg;
-+ g_free (tmp_msg);
- }
- }
-+ if (reason_msg_desc != NULL)
-+ g_free (reason_msg_desc);
- }
-
- status_changed |= gtk_printer_set_state_message (printer, info->state_msg);
- status_changed |= gtk_printer_set_is_accepting_jobs (printer, info->is_accepting_jobs);
-
-- if (tmp_msg != NULL)
-- g_free (tmp_msg);
--
-- if (tmp_msg2 != NULL)
-- g_free (tmp_msg2);
-
-- if (reason_msg_desc != NULL)
-- g_free (reason_msg_desc);
-
- /* Set printer icon according to importance
- (none, report, warning, error - report is omitted). */
---
-1.7.7.5 (Apple Git-28)
-
diff --git a/modulesets/patches/0007-gtk3-Move-some-variable-declarations-into-the-scopes-in-w.patch b/modulesets/patches/0007-gtk3-Move-some-variable-declarations-into-the-scopes-in-w.patch
deleted file mode 100644
index 8ad799c..0000000
--- a/modulesets/patches/0007-gtk3-Move-some-variable-declarations-into-the-scopes-in-w.patch
+++ /dev/null
@@ -1,98 +0,0 @@
-From 3c9483f6ef5ac72e25f1520231116f500fba035d Mon Sep 17 00:00:00 2001
-From: John Ralls
-Date: Sun, 19 Feb 2012 13:45:17 -0800
-Subject: [PATCH 7/9] Move some variable declarations into the scopes in which
- they're used.
-
----
- modules/printbackends/cups/gtkprintbackendcups.c | 39 +++++++++++----------
- 1 files changed, 20 insertions(+), 19 deletions(-)
-
-diff --git a/modules/printbackends/cups/gtkprintbackendcups.c b/modules/printbackends/cups/gtkprintbackendcups.c
-index 6055b36..5d99dc0 100644
---- a/modules/printbackends/cups/gtkprintbackendcups.c
-+++ b/modules/printbackends/cups/gtkprintbackendcups.c
-@@ -1965,12 +1965,8 @@ cups_request_printer_list_cb (GtkPrintBackendCups *cups_backend,
- gboolean status_changed = FALSE;
- GList *node;
- gint i;
-- gchar *reason_msg_desc = NULL;
-- gchar *tmp_msg = NULL;
-- gchar *tmp_msg2 = NULL;
-- gboolean found = FALSE;
- PrinterSetupInfo *info = g_slice_new0 (PrinterSetupInfo);
--
-+
- /* Skip leading attributes until we hit a printer...
- */
- while (attr != NULL && ippGetGroupTag (attr) != IPP_TAG_PRINTER)
-@@ -2065,23 +2062,30 @@ cups_request_printer_list_cb (GtkPrintBackendCups *cups_backend,
-
- if (info->state_msg != NULL && strlen (info->state_msg) == 0)
- {
-- if (info->is_paused && !info->is_accepting_jobs)
-- /* Translators: this is a printer status. */
-+ gchar *tmp_msg2 = NULL;
-+ if (info->is_paused && !info->is_accepting_jobs)
-+ /* Translators: this is a printer status. */
- tmp_msg2 = g_strdup ( N_("Paused ; Rejecting Jobs"));
- if (info->is_paused && info->is_accepting_jobs)
-- /* Translators: this is a printer status. */
-+ /* Translators: this is a printer status. */
- tmp_msg2 = g_strdup ( N_("Paused"));
- if (!info->is_paused && !info->is_accepting_jobs)
-- /* Translators: this is a printer status. */
-+ /* Translators: this is a printer status. */
- tmp_msg2 = g_strdup ( N_("Rejecting Jobs"));
-
- if (tmp_msg2 != NULL)
-- info->state_msg = tmp_msg2;
-- }
-+ {
-+ info->state_msg = tmp_msg2;
-+ g_free (tmp_msg2);
-+ }
-+ }
-
- /* Set description of the reason and combine it with printer-state-message. */
- if ( (info->reason_msg != NULL))
- {
-+ gchar *reason_msg_desc = NULL;
-+ gboolean found = FALSE;
-+
- for (i = 0; i < G_N_ELEMENTS (printer_messages); i++)
- {
- if (strncmp (info->reason_msg, printer_messages[i],
-@@ -2104,23 +2107,21 @@ cups_request_printer_list_cb (GtkPrintBackendCups *cups_backend,
- info->state_msg = reason_msg_desc;
- else
- {
-- tmp_msg = g_strjoin (" ; ", info->state_msg, reason_msg_desc, NULL);
-+ gchar *tmp_msg = NULL;
-+ tmp_msg = g_strjoin (" ; ", info->state_msg,
-+ reason_msg_desc, NULL);
- info->state_msg = tmp_msg;
-+ g_free (tmp_msg);
- }
- }
-+ if (reason_msg_desc != NULL)
-+ g_free (reason_msg_desc);
- }
-
- status_changed |= gtk_printer_set_state_message (printer, info->state_msg);
- status_changed |= gtk_printer_set_is_accepting_jobs (printer, info->is_accepting_jobs);
-
-- if (tmp_msg != NULL)
-- g_free (tmp_msg);
--
-- if (tmp_msg2 != NULL)
-- g_free (tmp_msg2);
-
-- if (reason_msg_desc != NULL)
-- g_free (reason_msg_desc);
-
- /* Set printer icon according to importance
- (none, report, warning, error - report is omitted). */
---
-1.7.7.5 (Apple Git-28)
-
diff --git a/modulesets/patches/0008-Bug-670373-gtk2-modules-printing-cups-gtkprintbackendcups.patch b/modulesets/patches/0008-Bug-670373-gtk2-modules-printing-cups-gtkprintbackendcups.patch
deleted file mode 100644
index b7990c4..0000000
--- a/modulesets/patches/0008-Bug-670373-gtk2-modules-printing-cups-gtkprintbackendcups.patch
+++ /dev/null
@@ -1,64 +0,0 @@
-From 97cacfeb64cb4f36e3465cd8dcfc91afafd0b97c Mon Sep 17 00:00:00 2001
-From: John Ralls
-Date: Sat, 25 Feb 2012 17:53:32 -0800
-Subject: [PATCH 8/9] [Bug 670373] modules/printing/cups/gtkprintbackendcups.c
- won't build with CUPS 1.6
-
- Having refactored cups_request_printer_list_cb so that the cups
- version-dependent block size is small enough to be handled in a single
- ifdef, make the ifdef HAVE_CUPS_API_1_6 block
----
- modules/printbackends/cups/gtkprintbackendcups.c | 24 +++++++++++++++++++++-
- 1 files changed, 23 insertions(+), 1 deletions(-)
-
-diff --git a/modules/printbackends/cups/gtkprintbackendcups.c b/modules/printbackends/cups/gtkprintbackendcups.c
-index a51f681..c7ee014 100644
---- a/modules/printbackends/cups/gtkprintbackendcups.c
-+++ b/modules/printbackends/cups/gtkprintbackendcups.c
-@@ -2018,7 +2018,29 @@ cups_request_printer_list_cb (GtkPrintBackendCups *cups_backend,
- removed_printer_checklist = gtk_print_backend_get_printer_list (backend);
-
- response = gtk_cups_result_get_response (result);
-+#ifdef HAVE_CUPS_API_1_6
-+ for (attr = ippFirstAttribute (response); attr != NULL;
-+ attr = ippNextAttribute (response))
-+ {
-+ GtkPrinter *printer;
-+ gboolean status_changed = FALSE;
-+ GList *node;
-+ gint i;
-+ PrinterSetupInfo *info = g_slice_new0 (PrinterSetupInfo);
-+
-+ /* Skip leading attributes until we hit a printer...
-+ */
-+ while (attr != NULL && ippGetGroupTag (attr) != IPP_TAG_PRINTER)
-+ attr = ippNextAttribute (response);
-
-+ if (attr == NULL)
-+ break;
-+ while (attr != NULL && ippGetGroupTag (attr) == IPP_TAG_PRINTER)
-+ {
-+ cups_printer_handle_attribute (cups_backend, attr, info);
-+ attr = ippNextAttribute (response);
-+ }
-+#else
- for (attr = response->attrs; attr != NULL; attr = attr->next)
- {
- GtkPrinter *printer;
-@@ -2034,12 +2056,12 @@ cups_request_printer_list_cb (GtkPrintBackendCups *cups_backend,
-
- if (attr == NULL)
- break;
--
- while (attr != NULL && ippGetGroupTag (attr) == IPP_TAG_PRINTER)
- {
- cups_printer_handle_attribute (cups_backend, attr, info);
- attr = attr->next;
- }
-+#endif
-
- if (info->printer_name == NULL ||
- (info->printer_uri == NULL && info->member_uris == NULL))
---
-1.7.7.5 (Apple Git-28)
-
diff --git a/modulesets/patches/0008-Bug-670373-gtk3-modules-printing-cups-gtkprintbackendcups.patch b/modulesets/patches/0008-Bug-670373-gtk3-modules-printing-cups-gtkprintbackendcups.patch
deleted file mode 100644
index 71d9937..0000000
--- a/modulesets/patches/0008-Bug-670373-gtk3-modules-printing-cups-gtkprintbackendcups.patch
+++ /dev/null
@@ -1,48 +0,0 @@
---- a/modules/printbackends/cups/gtkprintbackendcups.c 2012-04-20 15:18:59.000000000 -0700
-+++ b/modules/printbackends/cups/gtkprintbackendcups.c 2012-04-20 15:20:00.000000000 -0700
-@@ -1958,7 +1958,29 @@
- removed_printer_checklist = gtk_print_backend_get_printer_list (backend);
-
- response = gtk_cups_result_get_response (result);
-+#ifdef HAVE_CUPS_API_1_6
-+ for (attr = ippFirstAttribute (response); attr != NULL;
-+ attr = ippNextAttribute (response))
-+ {
-+ GtkPrinter *printer;
-+ gboolean status_changed = FALSE;
-+ GList *node;
-+ gint i;
-+ PrinterSetupInfo *info = g_slice_new0 (PrinterSetupInfo);
-+
-+ /* Skip leading attributes until we hit a printer...
-+ */
-+ while (attr != NULL && ippGetGroupTag (attr) != IPP_TAG_PRINTER)
-+ attr = ippNextAttribute (response);
-
-+ if (attr == NULL)
-+ break;
-+ while (attr != NULL && ippGetGroupTag (attr) == IPP_TAG_PRINTER)
-+ {
-+ cups_printer_handle_attribute (cups_backend, attr, info);
-+ attr = ippNextAttribute (response);
-+ }
-+#else
- for (attr = response->attrs; attr != NULL; attr = attr->next)
- {
- GtkPrinter *printer;
-@@ -1971,7 +1993,6 @@
- */
- while (attr != NULL && attr->group_tag != IPP_TAG_PRINTER)
- attr = attr->next;
--
- if (attr == NULL)
- break;
-
-@@ -1980,6 +2001,7 @@
- cups_printer_handle_attribute (cups_backend, attr, info);
- attr = attr->next;
- }
-+#endif
-
- if (info->printer_name == NULL ||
- (info->printer_uri == NULL && info->member_uris == NULL))
diff --git a/modulesets/patches/0008-Implement-GtkDragSourceOwner-pasteboardChangedOwner.patch b/modulesets/patches/0008-Implement-GtkDragSourceOwner-pasteboardChangedOwner.patch
deleted file mode 100644
index 5b9153c..0000000
--- a/modulesets/patches/0008-Implement-GtkDragSourceOwner-pasteboardChangedOwner.patch
+++ /dev/null
@@ -1,39 +0,0 @@
-From 259563958047ccbf6f61578f2d724fc731218304 Mon Sep 17 00:00:00 2001
-From: John Ralls
-Date: Sun, 25 Sep 2011 12:03:54 -0700
-Subject: [PATCH 08/15] Implement GtkDragSourceOwner pasteboardChangedOwner:
-
----
- gtk/gtkdnd-quartz.c | 11 +++++++++++
- 1 files changed, 11 insertions(+), 0 deletions(-)
-
-diff --git a/gtk/gtkdnd-quartz.c b/gtk/gtkdnd-quartz.c
-index 084aada..21ce11a 100644
---- a/gtk/gtkdnd-quartz.c
-+++ b/gtk/gtkdnd-quartz.c
-@@ -149,6 +149,8 @@ struct _GtkDragFindData
- guint target_info;
- GtkSelectionData selection_data;
-
-+ g_return_if_fail(info->source_widget != NULL);
-+ g_return_if_fail(info->target_list != NULL);
- selection_data.selection = GDK_NONE;
- selection_data.data = NULL;
- selection_data.length = -1;
-@@ -171,6 +173,15 @@ struct _GtkDragFindData
- }
- }
-
-+- (void)pasteboardChangedOwner: (NSPasteboard*)sender
-+{
-+ if (!info) return;
-+
-+ info->target_list = NULL;
-+ info->widget = NULL;
-+ info->source_widget = NULL;
-+}
-+
- - (id)initWithInfo:(GtkDragSourceInfo *)anInfo
- {
- self = [super init];
-
diff --git a/modulesets/patches/0009-Bug-670373-gtk2-modules-printing-cups-gtkprintbackendcups.patch b/modulesets/patches/0009-Bug-670373-gtk2-modules-printing-cups-gtkprintbackendcups.patch
deleted file mode 100644
index c0d9d03..0000000
--- a/modulesets/patches/0009-Bug-670373-gtk2-modules-printing-cups-gtkprintbackendcups.patch
+++ /dev/null
@@ -1,73 +0,0 @@
-From 2d59385649cf916594fd802a4445525a3c6656b1 Mon Sep 17 00:00:00 2001
-From: John Ralls
-Date: Sat, 25 Feb 2012 17:54:10 -0800
-Subject: [PATCH 9/9] [Bug 670373] modules/printing/cups/gtkprintbackendcups.c
- won't build with CUPS 1.6
-
- Fix up accesses of ipp structures in gtkcupsutils.c
----
- modules/printbackends/cups/gtkcupsutils.c | 20 ++++++++++++++------
- 1 files changed, 14 insertions(+), 6 deletions(-)
-
-diff --git a/modules/printbackends/cups/gtkcupsutils.c b/modules/printbackends/cups/gtkcupsutils.c
-index a1eb1a1..9fe79d1 100644
---- a/modules/printbackends/cups/gtkcupsutils.c
-+++ b/modules/printbackends/cups/gtkcupsutils.c
-@@ -83,6 +83,14 @@ static GtkCupsRequestStateFunc get_states[] = {
- _get_read_data
- };
-
-+#ifndef HAVE_CUPS_API_1_6
-+#define ippSetOperation(ipp_request, ipp_op_id) ipp_request->request.op.operation_id = ipp_op_id
-+#define ippSetRequestId(ipp_request, ipp_rq_id) ipp_request->request.op.request_id = ipp_rq_id
-+#define ippSetState(ipp_request, ipp_state) ipp_request->state = ipp_state
-+#define ippGetString(attr, index, foo) attr->values[index].string.text
-+#define ippGetCount(attr) attr->num_values
-+#endif
-+
- static void
- gtk_cups_result_set_error (GtkCupsResult *result,
- GtkCupsErrorType error_type,
-@@ -165,8 +173,8 @@ gtk_cups_request_new_with_username (http_t *connection,
- request->data_io = data_io;
-
- request->ipp_request = ippNew ();
-- request->ipp_request->request.op.operation_id = operation_id;
-- request->ipp_request->request.op.request_id = 1;
-+ ippSetOperation (request->ipp_request, operation_id);
-+ ippSetRequestId (request->ipp_request, 1);
-
- language = cupsLangDefault ();
-
-@@ -352,8 +360,8 @@ gtk_cups_request_ipp_get_string (GtkCupsRequest *request,
- name,
- tag);
-
-- if (attribute != NULL && attribute->values != NULL)
-- return attribute->values[0].string.text;
-+ if (attribute != NULL && ippGetCount (attribute) > 0)
-+ return ippGetString (attribute, 0, NULL);
- else
- return NULL;
- }
-@@ -731,7 +739,7 @@ _post_send (GtkCupsRequest *request)
- request->attempts = 0;
-
- request->state = GTK_CUPS_POST_WRITE_REQUEST;
-- request->ipp_request->state = IPP_IDLE;
-+ ippSetState (request->ipp_request, IPP_IDLE);
- }
-
- static void
-@@ -1223,7 +1231,7 @@ _get_send (GtkCupsRequest *request)
- request->state = GTK_CUPS_GET_CHECK;
- request->poll_state = GTK_CUPS_HTTP_READ;
-
-- request->ipp_request->state = IPP_IDLE;
-+ ippSetState (request->ipp_request, IPP_IDLE);
- }
-
- static void
---
-1.7.7.5 (Apple Git-28)
-
diff --git a/modulesets/patches/0009-Bug-670373-gtk3-modules-printing-cups-gtkprintbackendcups.patch b/modulesets/patches/0009-Bug-670373-gtk3-modules-printing-cups-gtkprintbackendcups.patch
deleted file mode 100644
index e54899f..0000000
--- a/modulesets/patches/0009-Bug-670373-gtk3-modules-printing-cups-gtkprintbackendcups.patch
+++ /dev/null
@@ -1,73 +0,0 @@
-From 2478a24b02db310c2db3e5abd3f48dc5ed21b1f1 Mon Sep 17 00:00:00 2001
-From: John Ralls
-Date: Sun, 19 Feb 2012 15:11:24 -0800
-Subject: [PATCH 9/9] [Bug 670373] modules/printing/cups/gtkprintbackendcups.c
- won't build with CUPS 1.6
-
-Fix up accesses of ipp structures in gtkcupsutils.c
----
- modules/printbackends/cups/gtkcupsutils.c | 20 ++++++++++++++------
- 1 files changed, 14 insertions(+), 6 deletions(-)
-
-diff --git a/modules/printbackends/cups/gtkcupsutils.c b/modules/printbackends/cups/gtkcupsutils.c
-index 39a743f..48b2a27 100644
---- a/modules/printbackends/cups/gtkcupsutils.c
-+++ b/modules/printbackends/cups/gtkcupsutils.c
-@@ -83,6 +83,14 @@ static GtkCupsRequestStateFunc get_states[] = {
- _get_read_data
- };
-
-+#ifndef HAVE_CUPS_API_1_6
-+#define ippSetOperation(ipp_request, ipp_op_id) ipp_request->request.op.operation_id = ipp_op_id
-+#define ippSetRequestId(ipp_request, ipp_rq_id) ipp_request->request.op.request_id = ipp_rq_id
-+#define ippSetState(ipp_request, ipp_state) ipp_request->state = ipp_state
-+#define ippGetString(attr, index, foo) attr->values[index].string.text
-+#define ippGetCount(attr) attr->num_values
-+#endif
-+
- static void
- gtk_cups_result_set_error (GtkCupsResult *result,
- GtkCupsErrorType error_type,
-@@ -165,8 +173,8 @@ gtk_cups_request_new_with_username (http_t *connection,
- request->data_io = data_io;
-
- request->ipp_request = ippNew ();
-- request->ipp_request->request.op.operation_id = operation_id;
-- request->ipp_request->request.op.request_id = 1;
-+ ippSetOperation (request->ipp_request, operation_id);
-+ ippSetRequestId (request->ipp_request, 1);
-
- language = cupsLangDefault ();
-
-@@ -355,8 +363,8 @@ gtk_cups_request_ipp_get_string (GtkCupsRequest *request,
- name,
- tag);
-
-- if (attribute != NULL && attribute->values != NULL)
-- return attribute->values[0].string.text;
-+ if (attribute != NULL && ippGetCount (attribute) > 0)
-+ return ippGetString (attribute, 0, NULL);
- else
- return NULL;
- }
-@@ -734,7 +742,7 @@ _post_send (GtkCupsRequest *request)
- request->attempts = 0;
-
- request->state = GTK_CUPS_POST_WRITE_REQUEST;
-- request->ipp_request->state = IPP_IDLE;
-+ ippSetState (request->ipp_request, IPP_IDLE);
- }
-
- static void
-@@ -1227,7 +1235,7 @@ _get_send (GtkCupsRequest *request)
- request->state = GTK_CUPS_GET_CHECK;
- request->poll_state = GTK_CUPS_HTTP_READ;
-
-- request->ipp_request->state = IPP_IDLE;
-+ ippSetState (request->ipp_request, IPP_IDLE);
- }
-
- static void
---
-1.7.7.5 (Apple Git-28)
-
diff --git a/modulesets/patches/Bug-555525-plug-ins-twain-tw_mac.c.patch b/modulesets/patches/Bug-555525-plug-ins-twain-tw_mac.c.patch
deleted file mode 100644
index 5d54118..0000000
--- a/modulesets/patches/Bug-555525-plug-ins-twain-tw_mac.c.patch
+++ /dev/null
@@ -1,68 +0,0 @@
-From 1b8aa4be14d80f53c85552adc7cb2192afde3217 Mon Sep 17 00:00:00 2001
-From: John Ralls
-Date: Mon, 23 Feb 2015 15:12:33 -0800
-Subject: [PATCH] Fix clang complaining about missing void in function
- prototypes.
-
----
- plug-ins/twain/tw_local.h | 6 +++---
- plug-ins/twain/tw_mac.c | 6 ++++--
- 2 files changed, 7 insertions(+), 5 deletions(-)
-
-diff --git a/plug-ins/twain/tw_local.h b/plug-ins/twain/tw_local.h
-index e76cf87..45b2fca 100644
---- a/plug-ins/twain/tw_local.h
-+++ b/plug-ins/twain/tw_local.h
-@@ -34,7 +34,7 @@ TW_UINT16 callDSM(pTW_IDENTITY, pTW_IDENTITY,
- TW_UINT16, TW_MEMREF);
-
- int twainIsAvailable(void);
--void twainQuitApplication ();
-+void twainQuitApplication (void);
- gboolean twainSetupCallback (pTW_SESSION twSession);
-
- TW_HANDLE twainAllocHandle(size_t size);
-@@ -42,7 +42,7 @@ TW_MEMREF twainLockHandle (TW_HANDLE handle);
- void twainUnlockHandle (TW_HANDLE handle);
- void twainFreeHandle (TW_HANDLE handle);
-
--int twainMain ();
--int scanImage ();
-+int twainMain (void);
-+int scanImage (void);
-
- #endif
-diff --git a/plug-ins/twain/tw_mac.c b/plug-ins/twain/tw_mac.c
-index 796d28e..48cc0d9 100644
---- a/plug-ins/twain/tw_mac.c
-+++ b/plug-ins/twain/tw_mac.c
-@@ -146,7 +146,7 @@ TW_UINT16 twainCallback(pTW_IDENTITY pOrigin,
- return TWRC_SUCCESS;
- }
-
--void twainQuitApplication ()
-+void twainQuitApplication (void)
- {
- QuitApplicationEventLoop();
- }
-@@ -192,14 +192,16 @@ static void twainSetupMacUI()
-
- /* Voodoo magic fix inspired by java_swt launcher */
- /* Without this the icon setting doesn't work about half the time. */
-+#ifdef __LP_64__
- CGrafPtr p = BeginQDContextForApplicationDockTile();
- EndQDContextForApplicationDockTile(p);
-
- SetApplicationDockTileImage (icon);
-+#endif
- }
-
- int
--twainMain()
-+twainMain(void)
- {
- EventLoopTimerRef timer;
- OSStatus err;
---
-2.2.2
-
diff --git a/modulesets/patches/Bug-673403-replace-values_h.patch b/modulesets/patches/Bug-673403-replace-values_h.patch
deleted file mode 100644
index 8cd1f7f..0000000
--- a/modulesets/patches/Bug-673403-replace-values_h.patch
+++ /dev/null
@@ -1,14 +0,0 @@
-
---- a/babl/babl-palette.c~ Thu Mar 29 16:10:26 2012
-+++ b/babl/babl-palette.c Sat Oct 27 16:04:12 2012
-@@ -19,7 +19,7 @@
- #include
- #include
- #include
--#include
-+#include
- #include
- #include "config.h"
- #include "babl-internal.h"
-
-Diff finished. Sat Oct 27 16:11:32 2012
diff --git a/modulesets/patches/Cairo-44584-llvm-no-flto.patch b/modulesets/patches/Cairo-44584-llvm-no-flto.patch
deleted file mode 100644
index e756840..0000000
--- a/modulesets/patches/Cairo-44584-llvm-no-flto.patch
+++ /dev/null
@@ -1,25 +0,0 @@
-diff -c /Users/john/Documents/Lion/Gnucash-Build/Gnucash-svn/src/cairo-1.10.2/configure\~ /Users/john/Documents/Lion/Gnucash-Build/Gnucash-svn/src/cairo-1.10.2/configure
-*** a/configure Sat Dec 25 06:22:57 2010
---- b/configure Sun Jan 8 11:11:05 2012
-***************
-*** 17236,17242 ****
- MAYBE_WARN="$MAYBE_WARN -erroff=E_ENUM_TYPE_MISMATCH_ARG \
- -erroff=E_ENUM_TYPE_MISMATCH_OP"
-
-! MAYBE_WARN="$MAYBE_WARN -fno-strict-aliasing -fno-common -flto"
-
- MAYBE_WARN="$MAYBE_WARN -Wp,-D_FORTIFY_SOURCE=2"
-
---- 17236,17245 ----
- MAYBE_WARN="$MAYBE_WARN -erroff=E_ENUM_TYPE_MISMATCH_ARG \
- -erroff=E_ENUM_TYPE_MISMATCH_OP"
-
-! MAYBE_WARN="$MAYBE_WARN -fno-strict-aliasing -fno-common"
-! if [ $CC != "llvm-gcc-4.2"]; then
-! MAYBE_WARN="$MAYBE_WARN -flto"
-! fi
-
- MAYBE_WARN="$MAYBE_WARN -Wp,-D_FORTIFY_SOURCE=2"
-
-
-Diff finished. Sun Jan 8 11:12:32 2012
diff --git a/modulesets/patches/GConf-characters.patch b/modulesets/patches/GConf-characters.patch
deleted file mode 100644
index 57214d5..0000000
--- a/modulesets/patches/GConf-characters.patch
+++ /dev/null
@@ -1,18 +0,0 @@
-diff -c /Volumes/RAID1/Gnucash-Build/Gnucash-svn/src/GConf-2.28.0/gconf/gconf-backend.c /var/folders/8Z/8ZMrxptP2RW3\+U\+8ZNMZY\+\+\+\+TI/-Tmp-/buffer-content-344872Ae
---- a/gconf/gconf-backend.c Wed Aug 19 08:35:32 2009
-+++ b/gconf/gconf-backend.c Wed Aug 19 08:35:32 2009
-@@ -31,11 +31,7 @@
- * The important one here is not to allow ';' because we use that
- * internally as a list delimiter. See GCONF_DATABASE_LIST_DELIM
- */
--static const char invalid_chars[] =
--#ifndef G_OS_WIN32
-- /* Space is common in user names (and thus home directories) on Windows */
-- " "
--#endif
-+static const char invalid_chars[] =
- "\t\r\n\"$&<>,+=#!()'|{}[]?~`;%\\";
-
- static gboolean
-
-Diff finished. Thu Aug 25 16:05:55 2011
diff --git a/modulesets/patches/Glade-3-8-Bug-663492-Update-Mac-integration-bindings-to-.patch b/modulesets/patches/Glade-3-8-Bug-663492-Update-Mac-integration-bindings-to-.patch
deleted file mode 100644
index 261e8ff..0000000
--- a/modulesets/patches/Glade-3-8-Bug-663492-Update-Mac-integration-bindings-to-.patch
+++ /dev/null
@@ -1,408 +0,0 @@
-From 5284fe2e57aa004139b38ca13972e50652cffa29 Mon Sep 17 00:00:00 2001
-From: John Ralls
-Date: Tue, 8 Nov 2011 16:10:10 -0800
-Subject: [PATCH 1/2] [Glade Bug 663492] Update Mac integration bindings to
- GtkOSXApplication
-
----
- configure.ac | 12 ++++++------
- gladeui/Makefile.am | 6 +++---
- gladeui/glade-app.c | 8 +++-----
- src/Makefile.am | 4 ++--
- src/glade-window.c | 35 ++++++++++++++++++++++++++++++-----
- 5 files changed, 44 insertions(+), 21 deletions(-)
-
-diff --git a/configure.ac b/configure.ac
-index d398e2a..8f40b99 100644
---- a/configure.ac
-+++ b/configure.ac
-@@ -230,9 +230,9 @@ dnl ================================================================
- _gdk_tgt=`$PKG_CONFIG --variable=target gdk-2.0`
- AM_CONDITIONAL([GDK_TARGET_QUARTZ], [test x$_gdk_tgt = xquartz])
- if test "x$_gdk_tgt" = xquartz; then
-- PKG_CHECK_MODULES(IGE_MAC, ige-mac-integration)
-+ PKG_CHECK_MODULES(GTK_MAC, gtk-mac-integration)
-
-- IGE_MAC_BUNDLE_FLAG=
-+ GTK_MAC_BUNDLE_FLAG=
-
- AC_ARG_ENABLE(mac-bundle,
- AS_HELP_STRING([--enable-mac-bundle], [enable mac bundling]),
-@@ -241,12 +241,12 @@ if test "x$_gdk_tgt" = xquartz; then
- if test "x$build_bundle" = xyes; then
- AC_MSG_NOTICE([enableing mac bundle..])
-
-- IGE_MAC_BUNDLE_FLAG=-DMAC_BUNDLE
-+ GTK_MAC_BUNDLE_FLAG=-DMAC_BUNDLE
- fi
-
-- AC_SUBST(IGE_MAC_BUNDLE_FLAG)
-- AC_SUBST(IGE_MAC_LIBS)
-- AC_SUBST(IGE_MAC_CFLAGS)
-+ AC_SUBST(GTK_MAC_BUNDLE_FLAG)
-+ AC_SUBST(GTK_MAC_LIBS)
-+ AC_SUBST(GTK_MAC_CFLAGS)
- fi
-
- AC_SUBST([AM_CPPFLAGS])
-diff --git a/gladeui/Makefile.am b/gladeui/Makefile.am
-index c2ef6e4..b4741b2 100644
---- a/gladeui/Makefile.am
-+++ b/gladeui/Makefile.am
-@@ -67,8 +67,8 @@ libgladeui_1_la_CPPFLAGS = \
- -I$(top_srcdir) \
- -I$(top_builddir) \
- $(GTK_CFLAGS) \
-- $(IGE_MAC_BUNDLE_FLAG) \
-- $(IGE_MAC_CFLAGS) \
-+ $(GTK_MAC_BUNDLE_FLAG) \
-+ $(GTK_MAC_CFLAGS) \
- $(WARN_CFLAGS) \
- $(AM_CPPFLAGS)
-
-@@ -76,7 +76,7 @@ libgladeui_1_la_CFLAGS = \
- $(AM_CFLAGS)
-
- libgladeui_1_la_LDFLAGS = -version-info $(GLADE_CURRENT):$(GLADE_REVISION):$(GLADE_AGE) $(AM_LDFLAGS)
--libgladeui_1_la_LIBADD = $(GTK_LIBS) $(IGE_MAC_LIBS)
-+libgladeui_1_la_LIBADD = $(GTK_LIBS) $(GTK_MAC_LIBS)
-
-
- libgladeuiincludedir=$(includedir)/libgladeui-1.0/gladeui
-diff --git a/gladeui/glade-app.c b/gladeui/glade-app.c
-index 88cdd48..8af1f08 100644
---- a/gladeui/glade-app.c
-+++ b/gladeui/glade-app.c
-@@ -49,7 +49,7 @@
- #include
-
- #ifdef MAC_INTEGRATION
--# include
-+# include
- #endif
-
- #define GLADE_CONFIG_FILENAME "glade-3.conf"
-@@ -380,10 +380,8 @@ build_package_paths (void)
- prefix = g_win32_get_package_installation_directory_of_module (NULL);
-
- # else // defined (MAC_INTEGRATION) && defined (MAC_BUNDLE)
-- IgeMacBundle *bundle = ige_mac_bundle_get_default ();
--
-- prefix = g_build_filename (ige_mac_bundle_get_path (bundle), "Contents", "Resources", NULL);
--# endif
-+ prefix = quartz_application_get_bundle_path ();
-+# endif
-
- pixmaps_dir = g_build_filename (prefix, "share", PACKAGE, "pixmaps", NULL);
- catalogs_dir = g_build_filename (prefix, "share", PACKAGE, "catalogs", NULL);
-diff --git a/src/Makefile.am b/src/Makefile.am
-index 4ec720a..00b4150 100644
---- a/src/Makefile.am
-+++ b/src/Makefile.am
-@@ -7,7 +7,7 @@ glade_3_CPPFLAGS = \
- -I$(top_builddir) \
- -DGLADE_GNOMEHELPDIR="\"$(HELP_DIR)\"" \
- $(GTK_CFLAGS) \
-- $(IGE_MAC_CFLAGS) \
-+ $(GTK_MAC_CFLAGS) \
- $(WARN_CFLAGS) \
- $(AM_CPPFLAGS)
-
-@@ -16,7 +16,7 @@ glade_3_CFLAGS = \
-
- glade_3_LDFLAGS = $(AM_LDFLAGS)
-
--glade_3_LDADD = $(top_builddir)/gladeui/libgladeui-1.la $(IGE_MAC_LIBS)
-+glade_3_LDADD = $(top_builddir)/gladeui/libgladeui-1.la $(GTK_MAC_LIBS)
-
- glade_3_SOURCES = \
- glade-window.c \
-diff --git a/src/glade-window.c b/src/glade-window.c
-index b21dba7..f9f971b 100644
---- a/src/glade-window.c
-+++ b/src/glade-window.c
-@@ -42,7 +42,7 @@
- #include
-
- #ifdef MAC_INTEGRATION
--# include
-+# include
- #endif
-
-
-@@ -3369,10 +3369,35 @@ glade_window_init (GladeWindow *window)
- #ifdef MAC_INTEGRATION
- {
- /* Fix up the menubar for MacOSX Quartz builds */
-+ GtkWidget *sep;
-+ GtkOSXApplication *theApp = g_object_new(GTK_TYPE_OSX_APPLICATION, NULL);
- gtk_widget_hide (menubar);
-- ige_mac_menu_set_menu_bar (GTK_MENU_SHELL (menubar));
--
-- widget = gtk_ui_manager_get_widget (window->priv->ui, "/MenuBar/FileMenu/Quit");
-- ige_mac_menu_set_quit_menu_item (GTK_MENU_ITEM (widget));
-+ gtk_osxapplication_set_menu_bar(theApp, GTK_MENU_SHELL(menubar));
-+ widget =
-+ gtk_ui_manager_get_widget (window->priv->ui, "/MenuBar/FileMenu/Quit");
-+ gtk_widget_hide (widget);
-+ widget =
-+ gtk_ui_manager_get_widget (window->priv->ui, "/MenuBar/HelpMenu/About");
-+ gtk_osxapplication_insert_app_menu_item (theApp, widget, 0);
-+ sep = gtk_separator_menu_item_new();
-+ g_object_ref(sep);
-+ gtk_osxapplication_insert_app_menu_item (theApp, sep, 1);
-+
-+ widget =
-+ gtk_ui_manager_get_widget (window->priv->ui, "/MenuBar/EditMenu/Preferences");
-+ gtk_osxapplication_insert_app_menu_item (theApp, widget, 2);
-+ sep = gtk_separator_menu_item_new();
-+ g_object_ref(sep);
-+ gtk_osxapplication_insert_app_menu_item (theApp, sep, 3);
-+
-+ widget =
-+ gtk_ui_manager_get_widget (window->priv->ui, "/MenuBar/HelpMenu");
-+ gtk_osxapplication_set_help_menu(theApp, GTK_MENU_ITEM(widget));
-+
-+ g_signal_connect(theApp, "NSApplicationWillTerminate",
-+ G_CALLBACK(quit_cb), window);
-+
-+ gtk_osxapplication_ready(theApp);
-+
- }
- #endif
-
---- a/configure Mon Apr 4 05:29:57 2011
-+++ b/configure Tue Nov 8 17:02:02 2011
-@@ -752,9 +752,9 @@
- AM_CXXFLAGS
- AM_CFLAGS
- AM_CPPFLAGS
--IGE_MAC_BUNDLE_FLAG
--IGE_MAC_LIBS
--IGE_MAC_CFLAGS
-+GTK_MAC_BUNDLE_FLAG
-+GTK_MAC_LIBS
-+GTK_MAC_CFLAGS
- GDK_TARGET_QUARTZ_FALSE
- GDK_TARGET_QUARTZ_TRUE
- WINDRES
-@@ -1026,8 +1026,8 @@
- GNOME_LIBS
- PYGTK_CFLAGS
- PYGTK_LIBS
--IGE_MAC_CFLAGS
--IGE_MAC_LIBS'
-+GTK_MAC_CFLAGS
-+GTK_MAC_LIBS'
-
-
- # Initialize some variables set by options.
-@@ -1702,10 +1702,10 @@
- PYGTK_CFLAGS
- C compiler flags for PYGTK, overriding pkg-config
- PYGTK_LIBS linker flags for PYGTK, overriding pkg-config
-- IGE_MAC_CFLAGS
-- C compiler flags for IGE_MAC, overriding pkg-config
-- IGE_MAC_LIBS
-- linker flags for IGE_MAC, overriding pkg-config
-+ GTK_MAC_CFLAGS
-+ C compiler flags for GTK_MAC, overriding pkg-config
-+ GTK_MAC_LIBS
-+ linker flags for GTK_MAC, overriding pkg-config
-
- Use these variables to override the choices made by `configure' or to help
- it to find libraries and programs with nonstandard names/locations.
-@@ -14485,35 +14485,35 @@
- if test "x$_gdk_tgt" = xquartz; then
-
- pkg_failed=no
--{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for IGE_MAC" >&5
--$as_echo_n "checking for IGE_MAC... " >&6; }
-+{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for GTK_MAC" >&5
-+$as_echo_n "checking for GTK_MAC... " >&6; }
-
--if test -n "$IGE_MAC_CFLAGS"; then
-- pkg_cv_IGE_MAC_CFLAGS="$IGE_MAC_CFLAGS"
-+if test -n "$GTK_MAC_CFLAGS"; then
-+ pkg_cv_GTK_MAC_CFLAGS="$GTK_MAC_CFLAGS"
- elif test -n "$PKG_CONFIG"; then
- if test -n "$PKG_CONFIG" && \
-- { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"ige-mac-integration\""; } >&5
-- ($PKG_CONFIG --exists --print-errors "ige-mac-integration") 2>&5
-+ { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"gtk-mac-integration\""; } >&5
-+ ($PKG_CONFIG --exists --print-errors "gtk-mac-integration") 2>&5
- ac_status=$?
- $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
- test $ac_status = 0; }; then
-- pkg_cv_IGE_MAC_CFLAGS=`$PKG_CONFIG --cflags "ige-mac-integration" 2>/dev/null`
-+ pkg_cv_GTK_MAC_CFLAGS=`$PKG_CONFIG --cflags "gtk-mac-integration" 2>/dev/null`
- else
- pkg_failed=yes
- fi
- else
- pkg_failed=untried
- fi
--if test -n "$IGE_MAC_LIBS"; then
-- pkg_cv_IGE_MAC_LIBS="$IGE_MAC_LIBS"
-+if test -n "$GTK_MAC_LIBS"; then
-+ pkg_cv_GTK_MAC_LIBS="$GTK_MAC_LIBS"
- elif test -n "$PKG_CONFIG"; then
- if test -n "$PKG_CONFIG" && \
-- { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"ige-mac-integration\""; } >&5
-- ($PKG_CONFIG --exists --print-errors "ige-mac-integration") 2>&5
-+ { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"gtk-mac-integration\""; } >&5
-+ ($PKG_CONFIG --exists --print-errors "gtk-mac-integration") 2>&5
- ac_status=$?
- $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
- test $ac_status = 0; }; then
-- pkg_cv_IGE_MAC_LIBS=`$PKG_CONFIG --libs "ige-mac-integration" 2>/dev/null`
-+ pkg_cv_GTK_MAC_LIBS=`$PKG_CONFIG --libs "gtk-mac-integration" 2>/dev/null`
- else
- pkg_failed=yes
- fi
-@@ -14531,22 +14531,22 @@
- _pkg_short_errors_supported=no
- fi
- if test $_pkg_short_errors_supported = yes; then
-- IGE_MAC_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "ige-mac-integration" 2>&1`
-+ GTK_MAC_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "gtk-mac-integration" 2>&1`
- else
-- IGE_MAC_PKG_ERRORS=`$PKG_CONFIG --print-errors "ige-mac-integration" 2>&1`
-+ GTK_MAC_PKG_ERRORS=`$PKG_CONFIG --print-errors "gtk-mac-integration" 2>&1`
- fi
- # Put the nasty error message in config.log where it belongs
-- echo "$IGE_MAC_PKG_ERRORS" >&5
-+ echo "$GTK_MAC_PKG_ERRORS" >&5
-
-- as_fn_error "Package requirements (ige-mac-integration) were not met:
-+ as_fn_error "Package requirements (gtk-mac-integration) were not met:
-
--$IGE_MAC_PKG_ERRORS
-+$GTK_MAC_PKG_ERRORS
-
- Consider adjusting the PKG_CONFIG_PATH environment variable if you
- installed software in a non-standard prefix.
-
--Alternatively, you may set the environment variables IGE_MAC_CFLAGS
--and IGE_MAC_LIBS to avoid the need to call pkg-config.
-+Alternatively, you may set the environment variables GTK_MAC_CFLAGS
-+and GTK_MAC_LIBS to avoid the need to call pkg-config.
- See the pkg-config man page for more details.
- " "$LINENO" 5
- elif test $pkg_failed = untried; then
-@@ -14556,21 +14556,21 @@
- is in your PATH or set the PKG_CONFIG environment variable to the full
- path to pkg-config.
-
--Alternatively, you may set the environment variables IGE_MAC_CFLAGS
--and IGE_MAC_LIBS to avoid the need to call pkg-config.
-+Alternatively, you may set the environment variables GTK_MAC_CFLAGS
-+and GTK_MAC_LIBS to avoid the need to call pkg-config.
- See the pkg-config man page for more details.
-
- To get pkg-config, see .
- See \`config.log' for more details." "$LINENO" 5; }
- else
-- IGE_MAC_CFLAGS=$pkg_cv_IGE_MAC_CFLAGS
-- IGE_MAC_LIBS=$pkg_cv_IGE_MAC_LIBS
-+ GTK_MAC_CFLAGS=$pkg_cv_GTK_MAC_CFLAGS
-+ GTK_MAC_LIBS=$pkg_cv_GTK_MAC_LIBS
- { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
- $as_echo "yes" >&6; }
- :
- fi
-
-- IGE_MAC_BUNDLE_FLAG=
-+ GTK_MAC_BUNDLE_FLAG=
-
- # Check whether --enable-mac-bundle was given.
- if test "${enable_mac_bundle+set}" = set; then :
-@@ -14584,7 +14584,7 @@
- { $as_echo "$as_me:${as_lineno-$LINENO}: enableing mac bundle.." >&5
- $as_echo "$as_me: enableing mac bundle.." >&6;}
-
-- IGE_MAC_BUNDLE_FLAG=-DMAC_BUNDLE
-+ GTK_MAC_BUNDLE_FLAG=-DMAC_BUNDLE
- fi
-
-
-
-Diff finished. Tue Nov 8 17:02:24 2011
-diff -c /Volumes/RAID1/local/gtk-stable/src/glade3-3.8.0/src/Makefile.in\~ /Volumes/RAID1/local/gtk-stable/src/glade3-3.8.0/src/Makefile.in
---- a/src/Makefile.in Mon Apr 4 05:29:56 2011
-+++ b/src/Makefile.in Tue Nov 8 17:04:37 2011
-@@ -159,9 +159,9 @@
- GTK_LIBS = @GTK_LIBS@
- HELP_DIR = @HELP_DIR@
- HTML_DIR = @HTML_DIR@
--IGE_MAC_BUNDLE_FLAG = @IGE_MAC_BUNDLE_FLAG@
--IGE_MAC_CFLAGS = @IGE_MAC_CFLAGS@
--IGE_MAC_LIBS = @IGE_MAC_LIBS@
-+GTK_MAC_BUNDLE_FLAG = @GTK_MAC_BUNDLE_FLAG@
-+GTK_MAC_CFLAGS = @GTK_MAC_CFLAGS@
-+GTK_MAC_LIBS = @GTK_MAC_LIBS@
- INSTALL = @INSTALL@
- INSTALL_DATA = @INSTALL_DATA@
- INSTALL_PROGRAM = @INSTALL_PROGRAM@
-@@ -294,7 +294,7 @@
- -I$(top_builddir) \
- -DGLADE_GNOMEHELPDIR="\"$(HELP_DIR)\"" \
- $(GTK_CFLAGS) \
-- $(IGE_MAC_CFLAGS) \
-+ $(GTK_MAC_CFLAGS) \
- $(WARN_CFLAGS) \
- $(AM_CPPFLAGS)
-
-@@ -303,7 +303,7 @@
-
- glade_3_LDFLAGS = $(AM_LDFLAGS) $(am__append_2)
- glade_3_LDADD = $(top_builddir)/gladeui/libgladeui-1.la \
-- $(IGE_MAC_LIBS) $(am__append_1)
-+ $(GTK_MAC_LIBS) $(am__append_1)
- glade_3_SOURCES = \
- glade-window.c \
- glade-window.h \
-
-Diff finished. Tue Nov 8 17:04:45 2011
-diff -c /Volumes/RAID1/local/gtk-stable/src/glade3-3.8.0/gladeui/Makefile.in\~ /Volumes/RAID1/local/gtk-stable/src/glade3-3.8.0/gladeui/Makefile.in
---- a/gladeui/Makefile.in Mon Apr 4 05:29:54 2011
-+++ b/gladeui/Makefile.in Tue Nov 8 17:06:44 2011
-@@ -217,9 +217,9 @@
- GTK_LIBS = @GTK_LIBS@
- HELP_DIR = @HELP_DIR@
- HTML_DIR = @HTML_DIR@
--IGE_MAC_BUNDLE_FLAG = @IGE_MAC_BUNDLE_FLAG@
--IGE_MAC_CFLAGS = @IGE_MAC_CFLAGS@
--IGE_MAC_LIBS = @IGE_MAC_LIBS@
-+GTK_MAC_BUNDLE_FLAG = @GTK_MAC_BUNDLE_FLAG@
-+GTK_MAC_CFLAGS = @GTK_MAC_CFLAGS@
-+GTK_MAC_LIBS = @GTK_MAC_LIBS@
- INSTALL = @INSTALL@
- INSTALL_DATA = @INSTALL_DATA@
- INSTALL_PROGRAM = @INSTALL_PROGRAM@
-@@ -413,8 +413,8 @@
- -I$(top_srcdir) \
- -I$(top_builddir) \
- $(GTK_CFLAGS) \
-- $(IGE_MAC_BUNDLE_FLAG) \
-- $(IGE_MAC_CFLAGS) \
-+ $(GTK_MAC_BUNDLE_FLAG) \
-+ $(GTK_MAC_CFLAGS) \
- $(WARN_CFLAGS) \
- $(AM_CPPFLAGS)
-
-@@ -424,7 +424,7 @@
- libgladeui_1_la_LDFLAGS = -version-info \
- $(GLADE_CURRENT):$(GLADE_REVISION):$(GLADE_AGE) $(AM_LDFLAGS) \
- $(am__append_1) $(am__append_2)
--libgladeui_1_la_LIBADD = $(GTK_LIBS) $(IGE_MAC_LIBS)
-+libgladeui_1_la_LIBADD = $(GTK_LIBS) $(GTK_MAC_LIBS)
- libgladeuiincludedir = $(includedir)/libgladeui-1.0/gladeui
- libgladeuiinclude_HEADERS = \
- glade.h \
-
-Diff finished. Tue Nov 8 17:06:50 2011
-
---
-1.7.6.3.dirty
-
diff --git a/modulesets/patches/Glade-3-8-Mac-Integration-Fix-up-menu-accelerators-for-Mac.patch b/modulesets/patches/Glade-3-8-Mac-Integration-Fix-up-menu-accelerators-for-Mac.patch
deleted file mode 100644
index d22ca84..0000000
--- a/modulesets/patches/Glade-3-8-Mac-Integration-Fix-up-menu-accelerators-for-Mac.patch
+++ /dev/null
@@ -1,109 +0,0 @@
-From 5b5a2009d1a3cf6ffe6e579981d54e1cc11dcf78 Mon Sep 17 00:00:00 2001
-From: John Ralls
-Date: Tue, 8 Nov 2011 16:14:28 -0800
-Subject: [PATCH 2/2] [Mac Integration] Fix up menu accelerators for Mac
-
-Makes use of a new feature in Gtk+-2.24.7 & Gtk+-3.2.1 which provides a
-new modifier symbol, , which uses "command" as the accelerator
-modifier on Quartz and "control" everywhere else.
-
-Special cases the project accelerators, since disappears on
-Quartz-integrated menus, leaving just the number as an accelerator and
-preventing its use in text.
----
- src/glade-window.c | 28 ++++++++++++++++++----------
- 1 files changed, 18 insertions(+), 10 deletions(-)
-
-diff --git a/src/glade-window.c b/src/glade-window.c
-index f9f971b..6b7934c 100644
---- a/src/glade-window.c
-+++ b/src/glade-window.c
-@@ -931,7 +931,11 @@ refresh_projects_list_menu (GladeWindow *window)
- gchar action_name[32];
- gchar *project_name;
- gchar *tooltip;
-+#ifdef MAC_INTEGRATION
-+ gchar accel[11];
-+#else
- gchar accel[7];
-+#endif
-
- view = gtk_notebook_get_nth_page (GTK_NOTEBOOK (p->notebook), i);
- project = glade_design_view_get_project (GLADE_DESIGN_VIEW (view));
-@@ -953,7 +957,11 @@ refresh_projects_list_menu (GladeWindow *window)
-
- /* alt + 1, 2, 3... 0 to switch to the first ten tabs */
- if (i < 10)
-+#ifdef MAC_INTEGRATION
-+ g_snprintf (accel, sizeof (accel), "%d", (i + 1) % 10);
-+#else
- g_snprintf (accel, sizeof (accel), "%d", (i + 1) % 10);
-+#endif
- else
- accel[0] = '\0';
-
-@@ -2032,15 +2040,15 @@ static GtkActionEntry static_entries[] = {
- { "RedoMenu", NULL, NULL },
-
- /* FileMenu */
-- { "New", GTK_STOCK_NEW, NULL, "N",
-+ { "New", GTK_STOCK_NEW, NULL, "N",
- N_("Create a new project"), G_CALLBACK (new_cb) },
-
-- { "Open", GTK_STOCK_OPEN, N_("_Open\342\200\246") ,"O",
-+ { "Open", GTK_STOCK_OPEN, N_("_Open\342\200\246") ,"O",
- N_("Open a project"), G_CALLBACK (open_cb) },
-
- { "OpenRecent", NULL, N_("Open _Recent") },
-
-- { "Quit", GTK_STOCK_QUIT, NULL, "Q",
-+ { "Quit", GTK_STOCK_QUIT, NULL, "Q",
- N_("Quit the program"), G_CALLBACK (quit_cb) },
-
- /* ViewMenu */
-@@ -2059,20 +2067,20 @@ static guint n_static_entries = G_N_ELEMENTS (static_entries);
- static GtkActionEntry project_entries[] = {
-
- /* FileMenu */
-- { "Save", GTK_STOCK_SAVE, NULL, "S",
-+ { "Save", GTK_STOCK_SAVE, NULL, "S",
- N_("Save the current project"), G_CALLBACK (save_cb) },
-
- { "SaveAs", GTK_STOCK_SAVE_AS, N_("Save _As\342\200\246"), NULL,
- N_("Save the current project with a different name"), G_CALLBACK (save_as_cb) },
-
-- { "Close", GTK_STOCK_CLOSE, NULL, "W",
-+ { "Close", GTK_STOCK_CLOSE, NULL, "W",
- N_("Close the current project"), G_CALLBACK (close_cb) },
-
- /* EditMenu */
-- { "Undo", GTK_STOCK_UNDO, NULL, "Z",
-+ { "Undo", GTK_STOCK_UNDO, NULL, "Z",
- N_("Undo the last action"), G_CALLBACK (undo_cb) },
-
-- { "Redo", GTK_STOCK_REDO, NULL, "Z",
-+ { "Redo", GTK_STOCK_REDO, NULL, "Z",
- N_("Redo the last action"), G_CALLBACK (redo_cb) },
-
- { "Cut", GTK_STOCK_CUT, NULL, NULL,
-@@ -2087,14 +2095,14 @@ static GtkActionEntry project_entries[] = {
- { "Delete", GTK_STOCK_DELETE, NULL, "Delete",
- N_("Delete the selection"), G_CALLBACK (delete_cb) },
-
-- { "Preferences", GTK_STOCK_PREFERENCES, NULL, "P",
-+ { "Preferences", GTK_STOCK_PREFERENCES, NULL, "P",
- N_("Modify project preferences"), G_CALLBACK (preferences_cb) },
-
- /* ProjectsMenu */
-- { "PreviousProject", NULL, N_("_Previous Project"), "Page_Up",
-+ { "PreviousProject", NULL, N_("_Previous Project"), "Page_Up",
- N_("Activate previous project"), G_CALLBACK (previous_project_cb) },
-
-- { "NextProject", NULL, N_("_Next Project"), "Page_Down",
-+ { "NextProject", NULL, N_("_Next Project"), "Page_Down",
- N_("Activate next project"), G_CALLBACK (next_project_cb) }
-
-
---
-1.7.6.3.dirty
-
diff --git a/modulesets/patches/Glade-master-Bug-663492-Update-Mac-integration-bindings-to-.patch b/modulesets/patches/Glade-master-Bug-663492-Update-Mac-integration-bindings-to-.patch
deleted file mode 100644
index 7e21f44..0000000
--- a/modulesets/patches/Glade-master-Bug-663492-Update-Mac-integration-bindings-to-.patch
+++ /dev/null
@@ -1,446 +0,0 @@
-From e90717a501d3e99509c0e6ade83e3876d4a84f68 Mon Sep 17 00:00:00 2001
-From: John Ralls
-Date: Tue, 8 Nov 2011 13:26:24 -0800
-Subject: [PATCH 1/2] [Glade Bug 663492] Update Mac integration bindings to
- GtkOSXApplication
-
----
- configure.ac | 14 +++++++-------
- gladeui/Makefile.am | 10 +++++-----
- gladeui/glade-app.c | 7 ++-----
- src/Makefile.am | 4 ++--
- src/glade-window.c | 33 ++++++++++++++++++++++++++++-----
- 5 files changed, 44 insertions(+), 24 deletions(-)
-
-diff --git a/configure.ac b/configure.ac
-index faa003d..9652f71 100644
---- a/configure.ac
-+++ b/configure.ac
-@@ -222,12 +222,12 @@
- dnl ================================================================
- dnl Check for GDK Quartz and MacOSX integration package
- dnl ================================================================
--_gdk_tgt=`$PKG_CONFIG --variable=target gdk-3.0`
-+_gdk_tgt=`$PKG_CONFIG --variable=targets gdk-3.0`
- AM_CONDITIONAL([GDK_TARGET_QUARTZ], [test x$_gdk_tgt = xquartz])
- if test "x$_gdk_tgt" = xquartz; then
-- PKG_CHECK_MODULES(IGE_MAC, ige-mac-integration)
-+ PKG_CHECK_MODULES(GTK_MAC, gtk-mac-integration)
-
-- IGE_MAC_BUNDLE_FLAG=
-+ GTK_MAC_BUNDLE_FLAG=
-
- AC_ARG_ENABLE(mac-bundle,
- AS_HELP_STRING([--enable-mac-bundle], [enable mac bundling]),
-@@ -236,12 +236,12 @@
- if test "x$build_bundle" = xyes; then
- AC_MSG_NOTICE([enableing mac bundle..])
-
-- IGE_MAC_BUNDLE_FLAG=-DMAC_BUNDLE
-+ GTK_MAC_BUNDLE_FLAG=-DMAC_BUNDLE
- fi
-
-- AC_SUBST(IGE_MAC_BUNDLE_FLAG)
-- AC_SUBST(IGE_MAC_LIBS)
-- AC_SUBST(IGE_MAC_CFLAGS)
-+ AC_SUBST(GTK_MAC_BUNDLE_FLAG)
-+ AC_SUBST(GTK_MAC_LIBS)
-+ AC_SUBST(GTK_MAC_CFLAGS)
- fi
-
-
-diff --git a/gladeui/Makefile.am b/gladeui/Makefile.am
-index 76fef97..7563f99 100644
---- a/gladeui/Makefile.am
-+++ b/gladeui/Makefile.am
-@@ -8,7 +8,7 @@
- -I$(top_builddir) \
- -DGLADE_GNOMEHELPDIR="\"$(HELP_DIR)\"" \
- $(GTK_CFLAGS) \
-- $(IGE_MAC_CFLAGS) \
-+ $(GTK_MAC_CFLAGS) \
- $(WARN_CFLAGS) \
- $(AM_CPPFLAGS)
-
-@@ -17,7 +17,7 @@
-
- glade_previewer_LDFLAGS = $(AM_LDFLAGS)
-
--glade_previewer_LDADD = libgladeui-2.la $(IGE_MAC_LIBS)
-+glade_previewer_LDADD = libgladeui-2.la $(GTK_MAC_LIBS)
-
- glade_previewer_SOURCES = \
- glade-previewer.c
-@@ -95,8 +95,8 @@
- -I$(top_srcdir) \
- -I$(top_builddir) \
- $(GTK_CFLAGS) \
-- $(IGE_MAC_BUNDLE_FLAG) \
-- $(IGE_MAC_CFLAGS) \
-+ $(GTK_MAC_BUNDLE_FLAG) \
-+ $(GTK_MAC_CFLAGS) \
- $(WARN_CFLAGS) \
- $(AM_CPPFLAGS)
-
-@@ -104,7 +104,7 @@
- $(AM_CFLAGS)
-
- libgladeui_2_la_LDFLAGS = -version-info $(GLADE_CURRENT):$(GLADE_REVISION):$(GLADE_AGE) $(AM_LDFLAGS)
--libgladeui_2_la_LIBADD = $(GTK_LIBS) $(IGE_MAC_LIBS)
-+libgladeui_2_la_LIBADD = $(GTK_LIBS) $(GTK_MAC_LIBS)
-
-
- libgladeuiincludedir=$(includedir)/libgladeui-2.0/gladeui
-diff --git a/gladeui/glade-app.c b/gladeui/glade-app.c
-index c7ca694..3f906fb 100644
---- a/gladeui/glade-app.c
-+++ b/gladeui/glade-app.c
-@@ -48,7 +48,7 @@
- #include
-
- #ifdef MAC_INTEGRATION
--# include
-+# include
- #endif
-
- #define GLADE_CONFIG_FILENAME "glade.conf"
-@@ -225,11 +225,8 @@
- prefix = g_win32_get_package_installation_directory_of_module (NULL);
-
- # else // defined (MAC_INTEGRATION) && defined (MAC_BUNDLE)
-- IgeMacBundle *bundle = ige_mac_bundle_get_default ();
-+ prefix = quartz_application_get_resource_path ();
-
-- prefix =
-- g_build_filename (ige_mac_bundle_get_path (bundle), "Contents",
-- "Resources", NULL);
- # endif
-
- pixmaps_dir = g_build_filename (prefix, "share", PACKAGE, "pixmaps", NULL);
-diff --git a/src/Makefile.am b/src/Makefile.am
-index 52db167..cddaeec 100644
---- a/src/Makefile.am
-+++ b/src/Makefile.am
-@@ -7,7 +7,7 @@
- -I$(top_builddir) \
- -DGLADE_GNOMEHELPDIR="\"$(HELP_DIR)\"" \
- $(GTK_CFLAGS) \
-- $(IGE_MAC_CFLAGS) \
-+ $(GTK_MAC_CFLAGS) \
- $(WARN_CFLAGS) \
- $(AM_CPPFLAGS)
-
-@@ -16,7 +16,7 @@
-
- glade_LDFLAGS = $(AM_LDFLAGS)
-
--glade_LDADD = $(top_builddir)/gladeui/libgladeui-2.la $(IGE_MAC_LIBS)
-+glade_LDADD = $(top_builddir)/gladeui/libgladeui-2.la $(GTK_MAC_LIBS)
-
- glade_SOURCES = \
- glade-window.c \
-diff --git a/src/glade-window.c b/src/glade-window.c
-index eb564c0..368c007 100644
---- a/src/glade-window.c
-+++ b/src/glade-window.c
-@@ -41,7 +41,7 @@
- #include
-
- #ifdef MAC_INTEGRATION
--# include
-+# include
- #endif
-
-
-@@ -3519,12 +3519,35 @@
- #ifdef MAC_INTEGRATION
- {
- /* Fix up the menubar for MacOSX Quartz builds */
-+ GtkWidget *sep;
-+ GtkOSXApplication *theApp = g_object_new(GTK_TYPE_OSX_APPLICATION, NULL);
- gtk_widget_hide (menubar);
-- ige_mac_menu_set_menu_bar (GTK_MENU_SHELL (menubar));
--
-+ gtk_osxapplication_set_menu_bar(theApp, GTK_MENU_SHELL(menubar));
- widget =
- gtk_ui_manager_get_widget (window->priv->ui, "/MenuBar/FileMenu/Quit");
-- ige_mac_menu_set_quit_menu_item (GTK_MENU_ITEM (widget));
-+ gtk_widget_hide (widget);
-+ widget =
-+ gtk_ui_manager_get_widget (window->priv->ui, "/MenuBar/HelpMenu/About");
-+ gtk_osxapplication_insert_app_menu_item (theApp, widget, 0);
-+ sep = gtk_separator_menu_item_new();
-+ g_object_ref(sep);
-+ gtk_osxapplication_insert_app_menu_item (theApp, sep, 1);
-+
-+ widget =
-+ gtk_ui_manager_get_widget (window->priv->ui, "/MenuBar/FileMenu/Properties");
-+ gtk_osxapplication_insert_app_menu_item (theApp, widget, 2);
-+ sep = gtk_separator_menu_item_new();
-+ g_object_ref(sep);
-+ gtk_osxapplication_insert_app_menu_item (theApp, sep, 3);
-+
-+ widget =
-+ gtk_ui_manager_get_widget (window->priv->ui, "/MenuBar/HelpMenu");
-+ gtk_osxapplication_set_help_menu(theApp, GTK_MENU_ITEM(widget));
-+
-+ g_signal_connect(theApp, "NSApplicationWillTerminate",
-+ G_CALLBACK(quit_cb), window);
-+
-+ gtk_osxapplication_ready(theApp);
- }
- #endif
-
-diff -c /Volumes/RAID1/local/gtk-stable-3/src/glade-3.10.0/gladeui/Makefile.in\~ /Volumes/RAID1/local/gtk-stable-3/src/glade-3.10.0/gladeui/Makefile.in
---- a/gladeui/Makefile.in Mon Apr 4 20:26:34 2011
-+++ b/gladeui/Makefile.in Tue Nov 8 17:16:37 2011
-@@ -240,9 +240,9 @@
- GTK_LIBS = @GTK_LIBS@
- HELP_DIR = @HELP_DIR@
- HTML_DIR = @HTML_DIR@
--IGE_MAC_BUNDLE_FLAG = @IGE_MAC_BUNDLE_FLAG@
--IGE_MAC_CFLAGS = @IGE_MAC_CFLAGS@
--IGE_MAC_LIBS = @IGE_MAC_LIBS@
-+GTK_MAC_BUNDLE_FLAG = @GTK_MAC_BUNDLE_FLAG@
-+GTK_MAC_CFLAGS = @GTK_MAC_CFLAGS@
-+GTK_MAC_LIBS = @GTK_MAC_LIBS@
- INSTALL = @INSTALL@
- INSTALL_DATA = @INSTALL_DATA@
- INSTALL_PROGRAM = @INSTALL_PROGRAM@
-@@ -386,7 +386,7 @@
- -I$(top_builddir) \
- -DGLADE_GNOMEHELPDIR="\"$(HELP_DIR)\"" \
- $(GTK_CFLAGS) \
-- $(IGE_MAC_CFLAGS) \
-+ $(GTK_MAC_CFLAGS) \
- $(WARN_CFLAGS) \
- $(AM_CPPFLAGS)
-
-@@ -394,7 +394,7 @@
- $(AM_CFLAGS)
-
- glade_previewer_LDFLAGS = $(AM_LDFLAGS) $(am__append_2)
--glade_previewer_LDADD = libgladeui-2.la $(IGE_MAC_LIBS) \
-+glade_previewer_LDADD = libgladeui-2.la $(GTK_MAC_LIBS) \
- $(am__append_1)
- glade_previewer_SOURCES = \
- glade-previewer.c
-@@ -458,8 +458,8 @@
- -I$(top_srcdir) \
- -I$(top_builddir) \
- $(GTK_CFLAGS) \
-- $(IGE_MAC_BUNDLE_FLAG) \
-- $(IGE_MAC_CFLAGS) \
-+ $(GTK_MAC_BUNDLE_FLAG) \
-+ $(GTK_MAC_CFLAGS) \
- $(WARN_CFLAGS) \
- $(AM_CPPFLAGS)
-
-@@ -469,7 +469,7 @@
- libgladeui_2_la_LDFLAGS = -version-info \
- $(GLADE_CURRENT):$(GLADE_REVISION):$(GLADE_AGE) $(AM_LDFLAGS) \
- $(am__append_3) $(am__append_4)
--libgladeui_2_la_LIBADD = $(GTK_LIBS) $(IGE_MAC_LIBS)
-+libgladeui_2_la_LIBADD = $(GTK_LIBS) $(GTK_MAC_LIBS)
- libgladeuiincludedir = $(includedir)/libgladeui-2.0/gladeui
- libgladeuiinclude_HEADERS = \
- glade.h \
-
-Diff finished. Tue Nov 8 17:16:42 2011
-diff -c /Volumes/RAID1/local/gtk-stable-3/src/glade-3.10.0/src/Makefile.in\~ /Volumes/RAID1/local/gtk-stable-3/src/glade-3.10.0/src/Makefile.in
---- a/src/Makefile.in Mon Apr 4 20:26:35 2011
-+++ b/src/Makefile.in Tue Nov 8 17:18:08 2011
-@@ -161,9 +161,9 @@
- GTK_LIBS = @GTK_LIBS@
- HELP_DIR = @HELP_DIR@
- HTML_DIR = @HTML_DIR@
--IGE_MAC_BUNDLE_FLAG = @IGE_MAC_BUNDLE_FLAG@
--IGE_MAC_CFLAGS = @IGE_MAC_CFLAGS@
--IGE_MAC_LIBS = @IGE_MAC_LIBS@
-+GTK_MAC_BUNDLE_FLAG = @GTK_MAC_BUNDLE_FLAG@
-+GTK_MAC_CFLAGS = @GTK_MAC_CFLAGS@
-+GTK_MAC_LIBS = @GTK_MAC_LIBS@
- INSTALL = @INSTALL@
- INSTALL_DATA = @INSTALL_DATA@
- INSTALL_PROGRAM = @INSTALL_PROGRAM@
-@@ -306,7 +306,7 @@
- -I$(top_builddir) \
- -DGLADE_GNOMEHELPDIR="\"$(HELP_DIR)\"" \
- $(GTK_CFLAGS) \
-- $(IGE_MAC_CFLAGS) \
-+ $(GTK_MAC_CFLAGS) \
- $(WARN_CFLAGS) \
- $(AM_CPPFLAGS)
-
-@@ -314,7 +314,7 @@
- $(AM_CFLAGS)
-
- glade_LDFLAGS = $(AM_LDFLAGS) $(am__append_2)
--glade_LDADD = $(top_builddir)/gladeui/libgladeui-2.la $(IGE_MAC_LIBS) \
-+glade_LDADD = $(top_builddir)/gladeui/libgladeui-2.la $(GTK_MAC_LIBS) \
- $(am__append_1)
- glade_SOURCES = \
- glade-window.c \
-
-Diff finished. Tue Nov 8 17:18:17 2011
-diff -c /Volumes/RAID1/local/gtk-stable-3/src/glade-3.10.0/configure\~ /Volumes/RAID1/local/gtk-stable-3/src/glade-3.10.0/configure
---- a/configure Mon Apr 4 20:26:36 2011
-+++ b/configure Tue Nov 8 17:19:30 2011
-@@ -754,9 +754,9 @@
- AM_CFLAGS
- AM_CPPFLAGS
- GLADE_PREFIX
--IGE_MAC_BUNDLE_FLAG
--IGE_MAC_LIBS
--IGE_MAC_CFLAGS
-+GTK_MAC_BUNDLE_FLAG
-+GTK_MAC_LIBS
-+GTK_MAC_CFLAGS
- GDK_TARGET_QUARTZ_FALSE
- GDK_TARGET_QUARTZ_TRUE
- WINDRES
-@@ -1035,8 +1035,8 @@
- GTK_LIBS
- PYGOBJECT_CFLAGS
- PYGOBJECT_LIBS
--IGE_MAC_CFLAGS
--IGE_MAC_LIBS'
-+GTK_MAC_CFLAGS
-+GTK_MAC_LIBS'
-
-
- # Initialize some variables set by options.
-@@ -1716,10 +1716,10 @@
- C compiler flags for PYGOBJECT, overriding pkg-config
- PYGOBJECT_LIBS
- linker flags for PYGOBJECT, overriding pkg-config
-- IGE_MAC_CFLAGS
-- C compiler flags for IGE_MAC, overriding pkg-config
-- IGE_MAC_LIBS
-- linker flags for IGE_MAC, overriding pkg-config
-+ GTK_MAC_CFLAGS
-+ C compiler flags for GTK_MAC, overriding pkg-config
-+ GTK_MAC_LIBS
-+ linker flags for GTK_MAC, overriding pkg-config
-
- Use these variables to override the choices made by `configure' or to help
- it to find libraries and programs with nonstandard names/locations.
-@@ -14889,35 +14889,35 @@
- if test "x$_gdk_tgt" = xquartz; then
-
- pkg_failed=no
--{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for IGE_MAC" >&5
--$as_echo_n "checking for IGE_MAC... " >&6; }
-+{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for GTK_MAC" >&5
-+$as_echo_n "checking for GTK_MAC... " >&6; }
-
--if test -n "$IGE_MAC_CFLAGS"; then
-- pkg_cv_IGE_MAC_CFLAGS="$IGE_MAC_CFLAGS"
-+if test -n "$GTK_MAC_CFLAGS"; then
-+ pkg_cv_GTK_MAC_CFLAGS="$GTK_MAC_CFLAGS"
- elif test -n "$PKG_CONFIG"; then
- if test -n "$PKG_CONFIG" && \
-- { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"ige-mac-integration\""; } >&5
-- ($PKG_CONFIG --exists --print-errors "ige-mac-integration") 2>&5
-+ { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"gtk-mac-integration\""; } >&5
-+ ($PKG_CONFIG --exists --print-errors "gtk-mac-integration") 2>&5
- ac_status=$?
- $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
- test $ac_status = 0; }; then
-- pkg_cv_IGE_MAC_CFLAGS=`$PKG_CONFIG --cflags "ige-mac-integration" 2>/dev/null`
-+ pkg_cv_GTK_MAC_CFLAGS=`$PKG_CONFIG --cflags "gtk-mac-integration" 2>/dev/null`
- else
- pkg_failed=yes
- fi
- else
- pkg_failed=untried
- fi
--if test -n "$IGE_MAC_LIBS"; then
-- pkg_cv_IGE_MAC_LIBS="$IGE_MAC_LIBS"
-+if test -n "$GTK_MAC_LIBS"; then
-+ pkg_cv_GTK_MAC_LIBS="$GTK_MAC_LIBS"
- elif test -n "$PKG_CONFIG"; then
- if test -n "$PKG_CONFIG" && \
-- { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"ige-mac-integration\""; } >&5
-- ($PKG_CONFIG --exists --print-errors "ige-mac-integration") 2>&5
-+ { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"gtk-mac-integration\""; } >&5
-+ ($PKG_CONFIG --exists --print-errors "gtk-mac-integration") 2>&5
- ac_status=$?
- $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
- test $ac_status = 0; }; then
-- pkg_cv_IGE_MAC_LIBS=`$PKG_CONFIG --libs "ige-mac-integration" 2>/dev/null`
-+ pkg_cv_GTK_MAC_LIBS=`$PKG_CONFIG --libs "gtk-mac-integration" 2>/dev/null`
- else
- pkg_failed=yes
- fi
-@@ -14935,22 +14935,22 @@
- _pkg_short_errors_supported=no
- fi
- if test $_pkg_short_errors_supported = yes; then
-- IGE_MAC_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "ige-mac-integration" 2>&1`
-+ GTK_MAC_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "gtk-mac-integration" 2>&1`
- else
-- IGE_MAC_PKG_ERRORS=`$PKG_CONFIG --print-errors "ige-mac-integration" 2>&1`
-+ GTK_MAC_PKG_ERRORS=`$PKG_CONFIG --print-errors "gtk-mac-integration" 2>&1`
- fi
- # Put the nasty error message in config.log where it belongs
-- echo "$IGE_MAC_PKG_ERRORS" >&5
-+ echo "$GTK_MAC_PKG_ERRORS" >&5
-
-- as_fn_error "Package requirements (ige-mac-integration) were not met:
-+ as_fn_error "Package requirements (gtk-mac-integration) were not met:
-
--$IGE_MAC_PKG_ERRORS
-+$GTK_MAC_PKG_ERRORS
-
- Consider adjusting the PKG_CONFIG_PATH environment variable if you
- installed software in a non-standard prefix.
-
--Alternatively, you may set the environment variables IGE_MAC_CFLAGS
--and IGE_MAC_LIBS to avoid the need to call pkg-config.
-+Alternatively, you may set the environment variables GTK_MAC_CFLAGS
-+and GTK_MAC_LIBS to avoid the need to call pkg-config.
- See the pkg-config man page for more details.
- " "$LINENO" 5
- elif test $pkg_failed = untried; then
-@@ -14960,21 +14960,21 @@
- is in your PATH or set the PKG_CONFIG environment variable to the full
- path to pkg-config.
-
--Alternatively, you may set the environment variables IGE_MAC_CFLAGS
--and IGE_MAC_LIBS to avoid the need to call pkg-config.
-+Alternatively, you may set the environment variables GTK_MAC_CFLAGS
-+and GTK_MAC_LIBS to avoid the need to call pkg-config.
- See the pkg-config man page for more details.
-
- To get pkg-config, see .
- See \`config.log' for more details." "$LINENO" 5; }
- else
-- IGE_MAC_CFLAGS=$pkg_cv_IGE_MAC_CFLAGS
-- IGE_MAC_LIBS=$pkg_cv_IGE_MAC_LIBS
-+ GTK_MAC_CFLAGS=$pkg_cv_GTK_MAC_CFLAGS
-+ GTK_MAC_LIBS=$pkg_cv_GTK_MAC_LIBS
- { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
- $as_echo "yes" >&6; }
- :
- fi
-
-- IGE_MAC_BUNDLE_FLAG=
-+ GTK_MAC_BUNDLE_FLAG=
-
- # Check whether --enable-mac-bundle was given.
- if test "${enable_mac_bundle+set}" = set; then :
-@@ -14988,7 +14988,7 @@
- { $as_echo "$as_me:${as_lineno-$LINENO}: enableing mac bundle.." >&5
- $as_echo "$as_me: enableing mac bundle.." >&6;}
-
-- IGE_MAC_BUNDLE_FLAG=-DMAC_BUNDLE
-+ GTK_MAC_BUNDLE_FLAG=-DMAC_BUNDLE
- fi
-
-
-
-Diff finished. Tue Nov 8 17:19:36 2011
---
-1.7.6.3.dirty
-
diff --git a/modulesets/patches/Glade-master-Mac-Integration-Fix-up-menu-accelerators-for-Mac.patch b/modulesets/patches/Glade-master-Mac-Integration-Fix-up-menu-accelerators-for-Mac.patch
deleted file mode 100644
index d75c61f..0000000
--- a/modulesets/patches/Glade-master-Mac-Integration-Fix-up-menu-accelerators-for-Mac.patch
+++ /dev/null
@@ -1,111 +0,0 @@
-From b53a3b26248f93a74bf30a087ca31226b014ca32 Mon Sep 17 00:00:00 2001
-From: John Ralls
-Date: Tue, 8 Nov 2011 14:55:31 -0800
-Subject: [PATCH 2/2] [Mac Integration] Fix up menu accelerators for Mac
-
-Makes use of a new feature in Gtk+-2.24.7 & Gtk+-3.2.1 which provides a
-new modifier symbol, , which uses "command" as the accelerator
-modifier on Quartz and "control" everywhere else.
-
-Special cases the project accelerators, since disappears on
-Quartz-integrated menus, leaving just the number as an accelerator and
-preventing its use in text.
----
- src/glade-window.c | 29 ++++++++++++++++++-----------
- 1 files changed, 18 insertions(+), 11 deletions(-)
-
-diff --git a/src/glade-window.c b/src/glade-window.c
-index 368c007..203a518 100644
---- a/src/glade-window.c
-+++ b/src/glade-window.c
-@@ -973,8 +973,11 @@ refresh_projects_list_menu (GladeWindow * window)
- gchar action_name[32];
- gchar *project_name;
- gchar *tooltip;
-+#ifdef MAC_INTEGRATION
-+ gchar accel[11];
-+#else
- gchar accel[7];
--
-+#endif
- view = gtk_notebook_get_nth_page (GTK_NOTEBOOK (p->notebook), i);
- project = glade_design_view_get_project (GLADE_DESIGN_VIEW (view));
-
-@@ -997,7 +1000,11 @@ refresh_projects_list_menu (GladeWindow * window)
-
- /* alt + 1, 2, 3... 0 to switch to the first ten tabs */
- if (i < 10)
-+#ifdef MAC_INTEGRATION
-+ g_snprintf (accel, sizeof (accel), "%d", (i + 1) % 10);
-+#else
- g_snprintf (accel, sizeof (accel), "%d", (i + 1) % 10);
-+#endif
- else
- accel[0] = '\0';
-
-@@ -2178,15 +2185,15 @@ static GtkActionEntry static_entries[] = {
- {"RedoMenu", NULL, NULL},
-
- /* FileMenu */
-- {"New", GTK_STOCK_NEW, NULL, "N",
-+ {"New", GTK_STOCK_NEW, NULL, "N",
- N_("Create a new project"), G_CALLBACK (new_cb)},
-
-- {"Open", GTK_STOCK_OPEN, N_("_Open\342\200\246"), "O",
-+ {"Open", GTK_STOCK_OPEN, N_("_Open\342\200\246"), "O",
- N_("Open a project"), G_CALLBACK (open_cb)},
-
- {"OpenRecent", NULL, N_("Open _Recent")},
-
-- {"Quit", GTK_STOCK_QUIT, NULL, "Q",
-+ {"Quit", GTK_STOCK_QUIT, NULL, "Q",
- N_("Quit the program"), G_CALLBACK (quit_cb)},
-
- /* ViewMenu */
-@@ -2206,21 +2213,21 @@ static guint n_static_entries = G_N_ELEMENTS (static_entries);
- static GtkActionEntry project_entries[] = {
-
- /* FileMenu */
-- {"Save", GTK_STOCK_SAVE, NULL, "S",
-+ {"Save", GTK_STOCK_SAVE, NULL, "S",
- N_("Save the current project"), G_CALLBACK (save_cb)},
-
- {"SaveAs", GTK_STOCK_SAVE_AS, N_("Save _As\342\200\246"), NULL,
- N_("Save the current project with a different name"),
- G_CALLBACK (save_as_cb)},
-
-- {"Close", GTK_STOCK_CLOSE, NULL, "W",
-+ {"Close", GTK_STOCK_CLOSE, NULL, "W",
- N_("Close the current project"), G_CALLBACK (close_cb)},
-
- /* EditMenu */
-- {"Undo", GTK_STOCK_UNDO, NULL, "Z",
-+ {"Undo", GTK_STOCK_UNDO, NULL, "Z",
- N_("Undo the last action"), G_CALLBACK (undo_cb)},
-
-- {"Redo", GTK_STOCK_REDO, NULL, "Z",
-+ {"Redo", GTK_STOCK_REDO, NULL, "Z",
- N_("Redo the last action"), G_CALLBACK (redo_cb)},
-
- {"Cut", GTK_STOCK_CUT, NULL, NULL,
-@@ -2235,14 +2242,14 @@ static GtkActionEntry project_entries[] = {
- {"Delete", GTK_STOCK_DELETE, NULL, "Delete",
- N_("Delete the selection"), G_CALLBACK (delete_cb)},
-
-- {"Properties", GTK_STOCK_PROPERTIES, NULL, "P",
-+ {"Properties", GTK_STOCK_PROPERTIES, NULL, "P",
- N_("Edit project properties"), G_CALLBACK (properties_cb)},
-
- /* ProjectsMenu */
-- {"PreviousProject", NULL, N_("_Previous Project"), "Page_Up",
-+ {"PreviousProject", NULL, N_("_Previous Project"), "Page_Up",
- N_("Activate previous project"), G_CALLBACK (previous_project_cb)},
-
-- {"NextProject", NULL, N_("_Next Project"), "Page_Down",
-+ {"NextProject", NULL, N_("_Next Project"), "Page_Down",
- N_("Activate next project"), G_CALLBACK (next_project_cb)}
-
-
---
-1.7.6.3.dirty
-
diff --git a/modulesets/patches/Gtk3-24-1-Handle-NULL-NSGraphicsContext-currentContext.patch b/modulesets/patches/Gtk3-24-1-Handle-NULL-NSGraphicsContext-currentContext.patch
deleted file mode 100644
index cb238ff..0000000
--- a/modulesets/patches/Gtk3-24-1-Handle-NULL-NSGraphicsContext-currentContext.patch
+++ /dev/null
@@ -1,100 +0,0 @@
-From 4ae16f5a4f9d5e84ddae21401d79e4d58ea5cbdd Mon Sep 17 00:00:00 2001
-From: John Ralls
-Date: Mon, 15 Oct 2018 10:50:49 -0700
-Subject: [PATCH 3/3] Handle NULL NSGraphicsContext currentContext.
-
-Return NULL from gdk_window_impl_quartz_get_context immediately to avoid
-quartz errors and don't try to call cairo functions with the NULL in
-upstream functions.
-
-Closes: https://gitlab.gnome.org/GNOME/gtk/issues/1411
----
- gdk/gdkcairo.c | 3 ++-
- gdk/gdkwindow.c | 20 ++++++++++++--------
- gdk/quartz/gdkwindow-quartz.c | 6 ++++--
- 3 files changed, 18 insertions(+), 11 deletions(-)
-
-diff --git a/gdk/gdkcairo.c b/gdk/gdkcairo.c
-index 633b391..a8df0d0 100644
---- a/gdk/gdkcairo.c
-+++ b/gdk/gdkcairo.c
-@@ -303,7 +303,8 @@ gdk_cairo_surface_create_from_pixbuf (const GdkPixbuf *pixbuf,
- gdk_pixbuf_get_height (pixbuf),
- scale);
-
-- gdk_cairo_surface_paint_pixbuf (surface, pixbuf);
-+ if (surface)
-+ gdk_cairo_surface_paint_pixbuf (surface, pixbuf);
-
- return surface;
- }
-diff --git a/gdk/gdkwindow.c b/gdk/gdkwindow.c
-index 6b231f0..1244f87 100644
---- a/gdk/gdkwindow.c
-+++ b/gdk/gdkwindow.c
-@@ -10234,7 +10234,7 @@ gdk_window_create_similar_image_surface (GdkWindow * window,
- int scale)
- {
- GdkWindowImplClass *impl_class;
-- cairo_surface_t *window_surface, *surface;
-+ cairo_surface_t *window_surface, *surface = NULL;
- GdkDisplay *display;
- GdkScreen *screen;
-
-@@ -10254,18 +10254,22 @@ gdk_window_create_similar_image_surface (GdkWindow * window,
- else
- {
- window_surface = gdk_window_ref_impl_surface (window);
-- surface =
-- cairo_surface_create_similar_image (window_surface,
-- format,
-- width,
-- height);
-- cairo_surface_destroy (window_surface);
-+ if (window_surface)
-+ {
-+ surface =
-+ cairo_surface_create_similar_image (window_surface,
-+ format,
-+ width,
-+ height);
-+ cairo_surface_destroy (window_surface);
-+ }
- }
-
- if (scale == 0)
- scale = gdk_window_get_scale_factor (window);
-
-- cairo_surface_set_device_scale (surface, scale, scale);
-+ if (surface)
-+ cairo_surface_set_device_scale (surface, scale, scale);
-
- return surface;
- }
-diff --git a/gdk/quartz/gdkwindow-quartz.c b/gdk/quartz/gdkwindow-quartz.c
-index c7fe688..2e7edd1 100644
---- a/gdk/quartz/gdkwindow-quartz.c
-+++ b/gdk/quartz/gdkwindow-quartz.c
-@@ -141,6 +141,8 @@ gdk_window_impl_quartz_get_context (GdkWindowImplQuartz *window_impl,
- cg_context = [[NSGraphicsContext currentContext] graphicsPort];
- else
- cg_context = [[NSGraphicsContext currentContext] CGContext];
-+ if (!cg_context)
-+ return NULL;
- CGContextSaveGState (cg_context);
- CGContextSetAllowsAntialiasing (cg_context, antialias);
-
-@@ -332,8 +334,8 @@ gdk_quartz_ref_cairo_surface (GdkWindow *window)
- gdk_quartz_create_cairo_surface (impl,
- gdk_window_get_width (impl->wrapper) * scale,
- gdk_window_get_height (impl->wrapper) * scale);
--
-- cairo_surface_set_device_scale (impl->cairo_surface, scale, scale);
-+ if (impl->cairo_surface)
-+ cairo_surface_set_device_scale (impl->cairo_surface, scale, scale);
- }
- else
- cairo_surface_reference (impl->cairo_surface);
---
-2.2.2
-
diff --git a/modulesets/patches/Gtk3-24-1-Update-GDK_OSX-versions-to-current-MacOS-release.patch b/modulesets/patches/Gtk3-24-1-Update-GDK_OSX-versions-to-current-MacOS-release.patch
deleted file mode 100644
index f7c323b..0000000
--- a/modulesets/patches/Gtk3-24-1-Update-GDK_OSX-versions-to-current-MacOS-release.patch
+++ /dev/null
@@ -1,27 +0,0 @@
-From 1a7cfec5c3cc9330e155639b37617eac20ec5081 Mon Sep 17 00:00:00 2001
-From: John Ralls
-Date: Mon, 15 Oct 2018 10:41:15 -0700
-Subject: [PATCH 1/3] Update GDK_OSX versions to current MacOS release.
-
----
- gdk/quartz/gdkquartz.h | 4 +++-
- 1 file changed, 3 insertions(+), 1 deletion(-)
-
-diff --git a/gdk/quartz/gdkquartz.h b/gdk/quartz/gdkquartz.h
-index 24555d4..ed8e4cb 100644
---- a/gdk/quartz/gdkquartz.h
-+++ b/gdk/quartz/gdkquartz.h
-@@ -53,7 +53,9 @@ typedef enum
- GDK_OSX_YOSEMITE = 10,
- GDK_OSX_EL_CAPITAN = 11,
- GDK_OSX_SIERRA = 12,
-- GDK_OSX_CURRENT = 12,
-+ GDK_OSX_HIGH_SIERRA = 13,
-+ GDK_OSX_MOJAVE = 14,
-+ GDK_OSX_CURRENT = 14,
- GDK_OSX_NEW = 99
- } GdkOSXVersion;
-
---
-2.2.2
-
diff --git a/modulesets/patches/Gtk3-24-1-Use-NSGraphicsContext-CGContext-instead-of-graphicsP.patch b/modulesets/patches/Gtk3-24-1-Use-NSGraphicsContext-CGContext-instead-of-graphicsP.patch
deleted file mode 100644
index 6d37112..0000000
--- a/modulesets/patches/Gtk3-24-1-Use-NSGraphicsContext-CGContext-instead-of-graphicsP.patch
+++ /dev/null
@@ -1,30 +0,0 @@
-From a929a826ee91329312484f8ad6eb6f1bd322462b Mon Sep 17 00:00:00 2001
-From: John Ralls
-Date: Mon, 15 Oct 2018 10:45:57 -0700
-Subject: [PATCH 2/3] Use [NSGraphicsContext CGContext] instead of graphicsPort
- after Yosemite.
-
----
- gdk/quartz/gdkwindow-quartz.c | 6 ++++--
- 1 file changed, 4 insertions(+), 2 deletions(-)
-
-diff --git a/gdk/quartz/gdkwindow-quartz.c b/gdk/quartz/gdkwindow-quartz.c
-index 4ffbae0..c7fe688 100644
---- a/gdk/quartz/gdkwindow-quartz.c
-+++ b/gdk/quartz/gdkwindow-quartz.c
-@@ -137,8 +137,10 @@ gdk_window_impl_quartz_get_context (GdkWindowImplQuartz *window_impl,
- if (![window_impl->view lockFocusIfCanDraw])
- return NULL;
- }
--
-- cg_context = [[NSGraphicsContext currentContext] graphicsPort];
-+ if (gdk_quartz_osx_version () < GDK_OSX_YOSEMITE)
-+ cg_context = [[NSGraphicsContext currentContext] graphicsPort];
-+ else
-+ cg_context = [[NSGraphicsContext currentContext] CGContext];
- CGContextSaveGState (cg_context);
- CGContextSetAllowsAntialiasing (cg_context, antialias);
-
---
-2.2.2
-
diff --git a/modulesets/patches/Gtk3-24-1-quartz-do-not-cache-the-screen-in-the-gdkmonitor.patch b/modulesets/patches/Gtk3-24-1-quartz-do-not-cache-the-screen-in-the-gdkmonitor.patch
deleted file mode 100644
index 082d0d1..0000000
--- a/modulesets/patches/Gtk3-24-1-quartz-do-not-cache-the-screen-in-the-gdkmonitor.patch
+++ /dev/null
@@ -1,75 +0,0 @@
-From 2a392c220d992ba21b1e250be2497248658cfcdb Mon Sep 17 00:00:00 2001
-From: Ignacio Casal Quinteiro
-Date: Sun, 7 Oct 2018 21:51:35 +0200
-Subject: [PATCH] quartz: do not cache the screen in the gdkmonitor
-
-Instead we just cache the monitor number and get
-out of it the nsscreen when it is needed. This is
-a requirement since it nsscreen it is not supposed
-to be cached.
-
-Fixes: https://gitlab.gnome.org/GNOME/gtk/issues/1312
----
- gdk/quartz/gdkmonitor-quartz.c | 17 ++++++++++++-----
- gdk/quartz/gdkmonitor-quartz.h | 2 +-
- gdk/quartz/gdkscreen-quartz.c | 2 +-
- 3 files changed, 14 insertions(+), 7 deletions(-)
-
-diff --git a/gdk/quartz/gdkmonitor-quartz.c b/gdk/quartz/gdkmonitor-quartz.c
-index ec36b23..b3e0343 100644
---- a/gdk/quartz/gdkmonitor-quartz.c
-+++ b/gdk/quartz/gdkmonitor-quartz.c
-@@ -35,12 +35,19 @@ gdk_quartz_monitor_get_workarea (GdkMonitor *monitor,
-
- GDK_QUARTZ_ALLOC_POOL;
-
-- NSRect rect = [quartz_monitor->nsscreen visibleFrame];
-+ NSArray *array = [NSScreen screens];
-+ if (quartz_monitor->monitor_num < [array count])
-+ {
-+ NSScreen *screen = [array objectAtIndex:quartz_monitor->monitor_num];
-+ NSRect rect = [screen visibleFrame];
-
-- dest->x = rect.origin.x - quartz_screen->min_x;
-- dest->y = quartz_screen->height - (rect.origin.y + rect.size.height) + quartz_screen->min_y;
-- dest->width = rect.size.width;
-- dest->height = rect.size.height;
-+ dest->x = rect.origin.x - quartz_screen->min_x;
-+ dest->y = quartz_screen->height - (rect.origin.y + rect.size.height) + quartz_screen->min_y;
-+ dest->width = rect.size.width;
-+ dest->height = rect.size.height;
-+ }
-+ else
-+ *dest = monitor->geometry;
-
- GDK_QUARTZ_RELEASE_POOL;
- }
-diff --git a/gdk/quartz/gdkmonitor-quartz.h b/gdk/quartz/gdkmonitor-quartz.h
-index 448c483..468a1d8 100644
---- a/gdk/quartz/gdkmonitor-quartz.h
-+++ b/gdk/quartz/gdkmonitor-quartz.h
-@@ -30,7 +30,7 @@ struct _GdkQuartzMonitor
- {
- GdkMonitor parent;
-
-- NSScreen *nsscreen;
-+ gint monitor_num;
- };
-
- struct _GdkQuartzMonitorClass {
-diff --git a/gdk/quartz/gdkscreen-quartz.c b/gdk/quartz/gdkscreen-quartz.c
-index 2193388..f1feaed 100644
---- a/gdk/quartz/gdkscreen-quartz.c
-+++ b/gdk/quartz/gdkscreen-quartz.c
-@@ -156,7 +156,7 @@ gdk_quartz_screen_calculate_layout (GdkQuartzScreen *screen)
- "display", display,
- NULL);
- g_ptr_array_add (display_quartz->monitors, monitor);
-- monitor->nsscreen = [array objectAtIndex:i];
-+ monitor->monitor_num = i;
-
- NSRect rect = [[array objectAtIndex:i] frame];
-
---
-2.2.2
-
diff --git a/modulesets/patches/Python3.6-stack-size-flag.patch b/modulesets/patches/Python3.6-stack-size-flag.patch
deleted file mode 100644
index 0afe3ea..0000000
--- a/modulesets/patches/Python3.6-stack-size-flag.patch
+++ /dev/null
@@ -1,26 +0,0 @@
---- a/configure.ac 2018-12-23 13:37:14.000000000 -0800
-+++ b/configure.ac 2019-05-19 07:26:48.000000000 -0700
-@@ -1874,6 +1874,11 @@
- then
- CFLAGS="${UNIVERSAL_ARCH_FLAGS} -isysroot ${UNIVERSALSDK} ${CFLAGS}"
- LDFLAGS="${UNIVERSAL_ARCH_FLAGS} -isysroot ${UNIVERSALSDK} ${LDFLAGS}"
-+ # Issue #18075: the default maximum stack size (8MBytes) is too
-+ # small for the default recursion limit. Increase the stack size
-+ # to ensure that tests don't crash
-+ LDFLAGS="-Wl,-stack_size,1000000 $(LDFLAGS)"
-+
- CPPFLAGS="-isysroot ${UNIVERSALSDK} ${CPPFLAGS}"
- else
- CFLAGS="${UNIVERSAL_ARCH_FLAGS} ${CFLAGS}"
-@@ -2698,11 +2703,6 @@
- Darwin/*)
- LINKFORSHARED="$extra_undefs -framework CoreFoundation"
-
-- # Issue #18075: the default maximum stack size (8MBytes) is too
-- # small for the default recursion limit. Increase the stack size
-- # to ensure that tests don't crash
-- LINKFORSHARED="-Wl,-stack_size,1000000 $LINKFORSHARED"
--
- if test "$enable_framework"
- then
- LINKFORSHARED="$LINKFORSHARED "'$(PYTHONFRAMEWORKDIR)/Versions/$(VERSION)/$(PYTHONFRAMEWORK)'
diff --git a/modulesets/patches/WebKit-2.16.1-Bug-167343-wtf-unicode-UTF8.h.patch b/modulesets/patches/WebKit-2.16.1-Bug-167343-wtf-unicode-UTF8.h.patch
deleted file mode 100644
index b068676..0000000
--- a/modulesets/patches/WebKit-2.16.1-Bug-167343-wtf-unicode-UTF8.h.patch
+++ /dev/null
@@ -1,94 +0,0 @@
-From 63c9bea0142a6452769a3ea11505d491afafca2b Mon Sep 17 00:00:00 2001
-From: "annulen@yandex.ru"
-
-Date: Fri, 21 Apr 2017 17:26:07 +0000
-Subject: [PATCH 1/3] [cmake] WTF target should not have wtf and subdirectries
- in public interface https://bugs.webkit.org/show_bug.cgi?id=171115
-
-Reviewed by Michael Catanzaro.
-
-In r209665 WEBCORE_FRAMEWORK macro started to export INCLUDE_DIRECTORIES of
-targets as their public interface, so that linked targets can use them
-implicitly without copying directory lists around. This matches existing
-practice for all targets except WTF, headers from which are always included
-with full path starting from "
-+#include
-
- namespace WebCore {
-
-diff --git a/Source/cmake/WebKitMacros.cmake b/Source/cmake/WebKitMacros.cmake
-index 6e9afe0..9558d43 100644
---- a/Source/cmake/WebKitMacros.cmake
-+++ b/Source/cmake/WebKitMacros.cmake
-@@ -283,6 +283,7 @@ macro(WEBKIT_FRAMEWORK _target)
- ${${_target}_SOURCES}
- )
- target_include_directories(${_target} PUBLIC "$")
-+ target_include_directories(${_target} PRIVATE "$")
- target_link_libraries(${_target} ${${_target}_LIBRARIES})
- set_target_properties(${_target} PROPERTIES COMPILE_DEFINITIONS "BUILDING_${_target}")
-
---
-2.2.2
-
diff --git a/modulesets/patches/WebKit-2.4.11-fixups.patch b/modulesets/patches/WebKit-2.4.11-fixups.patch
deleted file mode 100644
index 0804ebd..0000000
--- a/modulesets/patches/WebKit-2.4.11-fixups.patch
+++ /dev/null
@@ -1,59 +0,0 @@
-
---- a/Source/JavaScriptCore/API/JSBase.h Sat Apr 9 23:48:36 2016
-+++ b/Source/JavaScriptCore/API/JSBase.h Thu Apr 27 13:48:12 2017
-@@ -142,9 +142,9 @@
- /* Enable the Objective-C API for platforms with a modern runtime. */
- #if !defined(JSC_OBJC_API_ENABLED)
- #ifndef JSC_OBJC_API_AVAILABLE_MAC_OS_X_1080
--#define JSC_OBJC_API_ENABLED (defined(__clang__) && defined(__APPLE__) && ((defined(__MAC_OS_X_VERSION_MIN_REQUIRED) && __MAC_OS_X_VERSION_MIN_REQUIRED >= 1090 && !defined(__i386__)) || (defined(TARGET_OS_IPHONE) && TARGET_OS_IPHONE)))
-+#define JSC_OBJC_API_ENABLED (defined(__clang__) && defined(__APPLE__) && ((defined(__MAC_OS_X_VERSION_MIN_REQUIRED) && __MAC_OS_X_VERSION_MIN_REQUIRED >= 1090 && !defined(__i386__)) && !PLATFORM(GTK) || (defined(TARGET_OS_IPHONE) && TARGET_OS_IPHONE)))
- #else
--#define JSC_OBJC_API_ENABLED (defined(__clang__) && defined(__APPLE__) && ((defined(__MAC_OS_X_VERSION_MIN_REQUIRED) && __MAC_OS_X_VERSION_MIN_REQUIRED >= 1080 && !defined(__i386__)) || (defined(TARGET_OS_IPHONE) && TARGET_OS_IPHONE)))
-+#define JSC_OBJC_API_ENABLED (defined(__clang__) && defined(__APPLE__) && ((defined(__MAC_OS_X_VERSION_MIN_REQUIRED) && __MAC_OS_X_VERSION_MIN_REQUIRED >= 1080 && !defined(__i386__)) && !PLATFORM(GTK) || (defined(TARGET_OS_IPHONE) && TARGET_OS_IPHONE)))
- #endif
- #endif
-
---- a/Source/JavaScriptCore/API/ObjCCallbackFunction.h Sat Apr 9 23:48:36 2016
-+++ b/Source/JavaScriptCore/API/ObjCCallbackFunction.h Tue Apr 25 15:31:47 2017
-@@ -29,7 +29,7 @@
-
- #if JSC_OBJC_API_ENABLED
-
--#import
-+#import "JSCallbackFunction.h"
-
- #if defined(__OBJC__)
- JSObjectRef objCCallbackFunctionForMethod(JSContext *, Class, Protocol *, BOOL isInstanceMethod, SEL, const char* types);
-
---- a/Source/WebCore/platform/gtk/RenderThemeGtk2.cpp Sat Apr 9 23:48:37 2016
-+++ b/Source/WebCore/platform/gtk/RenderThemeGtk2.cpp Thu Apr 27 10:01:54 2017
-@@ -40,6 +40,7 @@
- #include "PaintInfo.h"
- #include "PlatformContextCairo.h"
- #include "RenderElement.h"
-+#include "RenderBox.h"
- #include "TextDirection.h"
- #include "UserAgentStyleSheets.h"
- #include "WidgetRenderingContext.h"
---- a/Source/JavaScriptCore/assembler/MacroAssembler.h~
-+++ b/Source/JavaScriptCore/assembler/MacroAssembler.h
-@@ -986,7 +986,7 @@ public:
- if (bitwise_cast(value * 1.0) != bitwise_cast(value))
- return shouldConsiderBlinding();
-
-- value = abs(value);
-+ value = std::abs(value);
- // Only allow a limited set of fractional components
- double scaledValue = value * 8;
- if (scaledValue / 8 != value)
---- a/Source/autotools/FindDependencies.m4~
-+++ b/Source/autotools/FindDependencies.m4
-@@ -104,7 +104,7 @@ GLIB_GSETTINGS
-
- # TODO: use pkg-config (after CFLAGS in their .pc files are cleaned up).
- case "$host" in
-- *-*-darwin*)
-+ *-*-foo*)
- UNICODE_CFLAGS="-I$srcdir/Source/JavaScriptCore/icu -I$srcdir/Source/WebCore/icu"
- UNICODE_LIBS="-licucore"
- ;;
diff --git a/modulesets/patches/WebKit2Gtk3-2.30.0-cumulative.patch b/modulesets/patches/WebKit2Gtk3-2.30.0-cumulative.patch
deleted file mode 100644
index 7f81025..0000000
--- a/modulesets/patches/WebKit2Gtk3-2.30.0-cumulative.patch
+++ /dev/null
@@ -1,439 +0,0 @@
-diff --git a/Source/JavaScriptCore/shell/PlatformGTK.cmake b/Source/JavaScriptCore/shell/PlatformGTK.cmake
-index c4ac7c9a..cf2fc2d6 100644
---- a/Source/JavaScriptCore/shell/PlatformGTK.cmake
-+++ b/Source/JavaScriptCore/shell/PlatformGTK.cmake
-@@ -1,3 +1,7 @@
- list(APPEND jsc_LIBRARIES
- ${GLIB_LIBRARIES}
- )
-+
-+list(APPEND jsc_PRIVATE_INCLUDE_DIRECTORIES
-+ ${WTF_DIR}
-+)
-diff --git a/Source/ThirdParty/ANGLE/src/common/debug.cpp b/Source/ThirdParty/ANGLE/src/common/debug.cpp
-index 2935093b..d251be59 100644
---- a/Source/ThirdParty/ANGLE/src/common/debug.cpp
-+++ b/Source/ThirdParty/ANGLE/src/common/debug.cpp
-@@ -21,7 +21,7 @@
- # include
- #endif
-
--#if defined(ANGLE_PLATFORM_APPLE)
-+#if defined(ANGLE_PLATFORM_APPLE) && MAC_OS_X_VERSION_MAX_ALLOWED > 101200
- # include
- #endif
-
-@@ -232,7 +232,7 @@ void Trace(LogSeverity severity, const char *message)
- }
- __android_log_print(android_priority, "ANGLE", "%s: %s\n", LogSeverityName(severity),
- str.c_str());
--#elif defined(ANGLE_PLATFORM_APPLE)
-+#elif defined(ANGLE_PLATFORM_APPLE) && MAC_OS_X_VERSION_MAX_ALLOWED > 101200
- if (__builtin_available(macOS 10.12, iOS 10.0, *))
- {
- os_log_type_t apple_log_type = OS_LOG_TYPE_DEFAULT;
-diff --git a/Source/WTF/CMakeLists.txt b/Source/WTF/CMakeLists.txt
-index 7c615c55..dd221b1a 100644
---- a/Source/WTF/CMakeLists.txt
-+++ b/Source/WTF/CMakeLists.txt
-@@ -6,6 +6,6 @@ add_subdirectory(wtf)
-
- # Apple builds have the ICU headers checked into ${WTF_DIR}/icu
- # Copy them into ${ICU_INCLUDE_DIRS} so the build behaves like find_package was used
--if (APPLE)
-+if (DISABLEAPPLE)
- file(COPY ${WTF_DIR}/icu/unicode DESTINATION ${ICU_INCLUDE_DIRS})
- endif ()
-diff --git a/Source/WTF/wtf/glib/GLibUtilities.cpp b/Source/WTF/wtf/glib/GLibUtilities.cpp
-index c93a7824..bb59c35e 100644
---- a/Source/WTF/wtf/glib/GLibUtilities.cpp
-+++ b/Source/WTF/wtf/glib/GLibUtilities.cpp
-@@ -31,6 +31,36 @@
- #include
- #endif
-
-+#if OS(MAC_OS_X)
-+#include
-+
-+static CString getBundlePath(bool executable)
-+{
-+ char bundle_path[PATH_MAX]{};
-+ auto bundle{CFBundleGetMainBundle()};
-+ CFURLRef url;
-+
-+ if (executable)
-+ url = CFBundleCopyExecutableURL(bundle);
-+ else
-+ url = CFBundleCopyResourcesDirectoryURL(bundle);
-+ auto abs_url{CFURLCopyAbsoluteURL(url)};
-+ CFRelease(url);
-+ auto string{CFURLCopyFileSystemPath(abs_url, kCFURLPOSIXPathStyle)};
-+ auto len{CFStringGetMaximumSizeForEncoding (CFStringGetLength (string),
-+ kCFStringEncodingUTF8) + 1};
-+ if (!len)
-+ return CString();
-+
-+ if (len > PATH_MAX)
-+ len = PATH_MAX;
-+
-+ CFStringGetCString(string, bundle_path, len, kCFStringEncodingUTF8);
-+ CFRelease(abs_url);
-+ CFRelease(string);
-+ return CString(bundle_path, len);
-+}
-+#endif
- #if OS(LINUX)
- CString getCurrentExecutablePath()
- {
-@@ -40,6 +70,11 @@ CString getCurrentExecutablePath()
- return CString();
- return CString(readLinkBuffer, result);
- }
-+#elif OS(MAC_OS_X)
-+CString getCurrentExecutablePath()
-+{
-+ return getBundlePath(true);
-+}
- #elif OS(HURD)
- CString getCurrentExecutablePath()
- {
-@@ -77,7 +112,17 @@ CString getCurrentExecutableName()
-
- return g_get_prgname();
- }
-+#if OS(MAC_OS_X)
-+char* getSharedLibraryPath()
-+{
-+ auto bundle_path{getBundlePath(false)};
-+ if (bundle_path.isNull())
-+ return nullptr;
-
-+ auto path{g_build_filename(bundle_path.data(), "lib", nullptr)};
-+ return path;
-+}
-+#endif
- CString enumToString(GType type, guint value)
- {
- #if GLIB_CHECK_VERSION(2, 54, 0)
-diff --git a/Source/WTF/wtf/glib/GLibUtilities.h b/Source/WTF/wtf/glib/GLibUtilities.h
-index 3a5fad54..da77f682 100644
---- a/Source/WTF/wtf/glib/GLibUtilities.h
-+++ b/Source/WTF/wtf/glib/GLibUtilities.h
-@@ -26,6 +26,9 @@
-
- WTF_EXPORT_PRIVATE CString getCurrentExecutablePath();
- WTF_EXPORT_PRIVATE CString getCurrentExecutableName();
-+#if OS(MAC_OS_X)
-+WTF_EXPORT_PRIVATE char* getSharedLibraryPath();
-+#endif
- WTF_EXPORT_PRIVATE CString enumToString(GType, guint value);
-
- // These might be added to glib in the future, but in the meantime they're defined here.
-diff --git a/Source/WebCore/platform/graphics/gstreamer/GRefPtrGStreamer.cpp b/Source/WebCore/platform/graphics/gstreamer/GRefPtrGStreamer.cpp
-index ad632205..29a9eace 100644
---- a/Source/WebCore/platform/graphics/gstreamer/GRefPtrGStreamer.cpp
-+++ b/Source/WebCore/platform/graphics/gstreamer/GRefPtrGStreamer.cpp
-@@ -23,7 +23,7 @@
- #if USE(GSTREAMER)
- #include
-
--#if USE(GSTREAMER_GL)
-+#if USE(WPE_VIDEO_PLANE_DISPLAY_DMABUF)
- #include
- #endif
-
-@@ -508,6 +508,7 @@ template<> void derefGPtr(GstGLContext* ptr)
- gst_object_unref(GST_OBJECT(ptr));
- }
-
-+#if USE(WPE_VIDEO_PLANE_DISPLAY_DMABUF)
- template <> GRefPtr adoptGRef(GstEGLImage* ptr)
- {
- return GRefPtr(ptr, GRefPtrAdopt);
-@@ -525,6 +526,7 @@ template <> void derefGPtr(GstEGLImage* ptr)
- if (ptr)
- gst_egl_image_unref(ptr);
- }
-+#endif //USE(WPE_VIDEO_PLANE_DISPLAY_DMABUF)
-
- #endif // USE(GSTREAMER_GL)
-
-diff --git a/Source/WebCore/platform/graphics/gstreamer/GRefPtrGStreamer.h b/Source/WebCore/platform/graphics/gstreamer/GRefPtrGStreamer.h
-index 19509fe1..c7044e54 100644
---- a/Source/WebCore/platform/graphics/gstreamer/GRefPtrGStreamer.h
-+++ b/Source/WebCore/platform/graphics/gstreamer/GRefPtrGStreamer.h
-@@ -30,9 +30,13 @@ struct WebKitWebSrc;
- #if USE(GSTREAMER_GL)
- typedef struct _GstGLDisplay GstGLDisplay;
- typedef struct _GstGLContext GstGLContext;
-+
-+#if USE(WPE_VIDEO_PLANE_DISPLAY_DMABUF)
- typedef struct _GstEGLImage GstEGLImage;
- #endif
-
-+#endif
-+
- namespace WTF {
-
- template<> GRefPtr adoptGRef(GstPlugin* ptr);
-@@ -133,9 +137,12 @@ template<> GRefPtr adoptGRef(GstGLContext* ptr);
- template<> GstGLContext* refGPtr(GstGLContext* ptr);
- template<> void derefGPtr(GstGLContext* ptr);
-
-+#if USE(WPE_VIDEO_PLANE_DISPLAY_DMABUF)
- template<> GRefPtr adoptGRef(GstEGLImage* ptr);
- template<> GstEGLImage* refGPtr(GstEGLImage* ptr);
- template<> void derefGPtr(GstEGLImage* ptr);
-+#endif // USE(WPE_VIDEO_PLANE_DISPLAY_DMABUF)
-+
- #endif
-
- } // namespace WTF
-diff --git a/Source/WebCore/platform/graphics/gstreamer/MediaPlayerPrivateGStreamer.cpp b/Source/WebCore/platform/graphics/gstreamer/MediaPlayerPrivateGStreamer.cpp
-index 7c90534a..de555227 100644
---- a/Source/WebCore/platform/graphics/gstreamer/MediaPlayerPrivateGStreamer.cpp
-+++ b/Source/WebCore/platform/graphics/gstreamer/MediaPlayerPrivateGStreamer.cpp
-@@ -1259,7 +1259,7 @@ MediaTime MediaPlayerPrivateGStreamer::platformDuration() const
- if (GST_STATE(m_pipeline.get()) < GST_STATE_PAUSED)
- return MediaTime::invalidTime();
-
-- int64_t duration = 0;
-+ gint64 duration = 0;
- if (!gst_element_query_duration(m_pipeline.get(), GST_FORMAT_TIME, &duration) || !GST_CLOCK_TIME_IS_VALID(duration)) {
- GST_DEBUG_OBJECT(pipeline(), "Time duration query failed for %s", m_url.string().utf8().data());
- return MediaTime::positiveInfiniteTime();
-@@ -2018,7 +2018,7 @@ void MediaPlayerPrivateGStreamer::handleMessage(GstMessage* message)
- GUniqueOutPtr responseHeaders;
- if (gst_structure_get(structure, "response-headers", GST_TYPE_STRUCTURE, &responseHeaders.outPtr(), nullptr)) {
- CString contentLengthHeaderName = httpHeaderNameString(HTTPHeaderName::ContentLength).utf8();
-- uint64_t contentLength = 0;
-+ guint64 contentLength = 0;
- if (!gst_structure_get_uint64(responseHeaders.get(), contentLengthHeaderName.data(), &contentLength)) {
- // souphttpsrc sets a string for Content-Length, so
- // handle it here, until we remove the webkit+ protocol
-@@ -3437,8 +3437,8 @@ Optional MediaPlayerPrivateGStreamer::videoPlayback
- if (!webkitGstCheckVersion(1, 17, 0) && !m_fpsSink)
- return WTF::nullopt;
-
-- uint64_t totalVideoFrames = 0;
-- uint64_t droppedVideoFrames = 0;
-+ guint64 totalVideoFrames = 0;
-+ guint64 droppedVideoFrames = 0;
- if (webkitGstCheckVersion(1, 17, 0)) {
- GUniqueOutPtr stats;
- g_object_get(m_videoSink.get(), "stats", &stats.outPtr(), nullptr);
-diff --git a/Source/WebKit/NetworkProcess/NetworkLoadParameters.h b/Source/WebKit/NetworkProcess/NetworkLoadParameters.h
-index 8cfeb68e..76089e95 100644
---- a/Source/WebKit/NetworkProcess/NetworkLoadParameters.h
-+++ b/Source/WebKit/NetworkProcess/NetworkLoadParameters.h
-@@ -38,6 +38,9 @@
- #include
- #include
-
-+/* audit_token_t */
-+#include
-+
- namespace WebKit {
-
- enum class PreconnectOnly : bool { No, Yes };
-diff --git a/Source/WebKit/Platform/IPC/ArgumentCoders.h b/Source/WebKit/Platform/IPC/ArgumentCoders.h
-index e00a0ccd..4039ced7 100644
---- a/Source/WebKit/Platform/IPC/ArgumentCoders.h
-+++ b/Source/WebKit/Platform/IPC/ArgumentCoders.h
-@@ -38,6 +38,9 @@
- #include
- #include
-
-+/* audit_token_t */
-+#include
-+
- namespace IPC {
-
- // An argument coder works on POD types
-diff --git a/Source/WebKit/PlatformGTK.cmake b/Source/WebKit/PlatformGTK.cmake
-index 1e3035b0..31b522a4 100644
---- a/Source/WebKit/PlatformGTK.cmake
-+++ b/Source/WebKit/PlatformGTK.cmake
-@@ -34,6 +34,10 @@ list(APPEND WebKit_UNIFIED_SOURCE_LIST_FILES
- "SourcesGTK.txt"
- )
-
-+find_library(APPKIT_FRAMEWORK NAMES AppKit)
-+target_link_libraries(WebKit PRIVATE ${APPKIT_FRAMEWORK})
-+list(APPEND WebKit_SOURCES WebProcess/gtk/NSApplicationActivationPolicy.mm)
-+
- if (NOT USE_GTK4)
- list(APPEND WebKit_SOURCES
- UIProcess/ViewGestureController.cpp
-diff --git a/Source/WebKit/Shared/SandboxExtension.h b/Source/WebKit/Shared/SandboxExtension.h
-index c6516658..b7d0bb04 100644
---- a/Source/WebKit/Shared/SandboxExtension.h
-+++ b/Source/WebKit/Shared/SandboxExtension.h
-@@ -34,6 +34,9 @@
- #include
- #include
-
-+/* audit_token_t */
-+#include
-+
- namespace IPC {
- class Encoder;
- class Decoder;
-diff --git a/Source/WebKit/Shared/glib/ProcessExecutablePathGLib.cpp b/Source/WebKit/Shared/glib/ProcessExecutablePathGLib.cpp
-index a1e05f52..b2253c27 100644
---- a/Source/WebKit/Shared/glib/ProcessExecutablePathGLib.cpp
-+++ b/Source/WebKit/Shared/glib/ProcessExecutablePathGLib.cpp
-@@ -33,7 +33,6 @@
-
- namespace WebKit {
-
--#if ENABLE(DEVELOPER_MODE)
- static String getExecutablePath()
- {
- CString executablePath = getCurrentExecutablePath();
-@@ -41,7 +40,6 @@ static String getExecutablePath()
- return FileSystem::directoryName(FileSystem::stringFromFileSystemRepresentation(executablePath.data()));
- return { };
- }
--#endif
-
- static String findWebKitProcess(const char* processName)
- {
-@@ -59,6 +57,11 @@ static String findWebKitProcess(const char* processName)
- if (FileSystem::fileExists(processPath))
- return processPath;
- }
-+#elif OS(MAC_OS_X)
-+ auto path{getExecutablePath()};
-+ auto processPath{FileSystem::pathByAppendingComponent(FileSystem::stringFromFileSystemRepresentation(path.utf8().data()), processName)};
-+ if (FileSystem::fileExists(processPath))
-+ return processPath;
- #endif
-
- return FileSystem::pathByAppendingComponent(FileSystem::stringFromFileSystemRepresentation(PKGLIBEXECDIR), processName);
-diff --git a/Source/WebKit/UIProcess/API/glib/WebKitProtocolHandler.cpp b/Source/WebKit/UIProcess/API/glib/WebKitProtocolHandler.cpp
-index 3515be45..f10a1d5c 100644
---- a/Source/WebKit/UIProcess/API/glib/WebKitProtocolHandler.cpp
-+++ b/Source/WebKit/UIProcess/API/glib/WebKitProtocolHandler.cpp
-@@ -354,9 +354,10 @@ void WebKitProtocolHandler::handleGPU(WebKitURISchemeRequest* request)
- " ",
- webGLEnabled(request) ? "Yes" : "No");
-
-+#if USE(GLX)
- auto glContext = GLContext::createOffscreenContext();
- glContext->makeContextCurrent();
--
-+#endif
- g_string_append_printf(html,
- " "
- " API | "
-@@ -370,7 +371,7 @@ void WebKitProtocolHandler::handleGPU(WebKitURISchemeRequest* request)
- " %s | "
- "
",
- nativeInterface());
--
-+#if USE(GLX)
- g_string_append_printf(html,
- " "
- " GL_RENDERER | "
-@@ -398,7 +399,6 @@ void WebKitProtocolHandler::handleGPU(WebKitURISchemeRequest* request)
- " %s | "
- "
",
- reinterpret_cast(glGetString(GL_SHADING_LANGUAGE_VERSION)));
--
- #if USE(OPENGL_ES)
- g_string_append_printf(html,
- " "
-@@ -422,6 +422,7 @@ void WebKitProtocolHandler::handleGPU(WebKitURISchemeRequest* request)
- "
",
- extensions->str);
- g_string_free(extensions, TRUE);
-+#endif
- #endif
-
- bool isGLX = false;
-diff --git a/Source/WebKit/UIProcess/API/glib/WebKitWebContext.cpp b/Source/WebKit/UIProcess/API/glib/WebKitWebContext.cpp
-index f44e5177..ecbf1b95 100644
---- a/Source/WebKit/UIProcess/API/glib/WebKitWebContext.cpp
-+++ b/Source/WebKit/UIProcess/API/glib/WebKitWebContext.cpp
-@@ -75,7 +75,7 @@
- #include
- #include
- #include
--
-+#include
- #if PLATFORM(GTK)
- #include "WebKitRemoteInspectorProtocolHandler.h"
- #endif
-@@ -312,6 +312,12 @@ static const char* injectedBundleDirectory()
- const char* bundleDirectory = g_getenv("WEBKIT_INJECTED_BUNDLE_PATH");
- if (bundleDirectory && g_file_test(bundleDirectory, G_FILE_TEST_IS_DIR))
- return bundleDirectory;
-+#elif OS(MAC_OS_X) && PLATFORM(GTK)
-+ auto libdir{getSharedLibraryPath()};
-+ auto bundledir{g_build_filename(libdir, "webkit2gtk-4.0",
-+ "injected-bundle", nullptr)};
-+ g_free(libdir);
-+ return bundledir;
- #endif
-
- #if PLATFORM(GTK)
-diff --git a/Source/WebKit/UIProcess/gtk/WebDataListSuggestionsDropdownGtk.cpp b/Source/WebKit/UIProcess/gtk/WebDataListSuggestionsDropdownGtk.cpp
-index 130fac3d..99ebaed5 100644
---- a/Source/WebKit/UIProcess/gtk/WebDataListSuggestionsDropdownGtk.cpp
-+++ b/Source/WebKit/UIProcess/gtk/WebDataListSuggestionsDropdownGtk.cpp
-@@ -34,7 +34,7 @@
- #include
- #include
- #include
--#include
-+#include
-
- namespace WebKit {
-
-diff --git a/Source/WebKit/WebProcess/gtk/NSApplicationActivationPolicy.h b/Source/WebKit/WebProcess/gtk/NSApplicationActivationPolicy.h
-new file mode 100644
-index 00000000..72859428
---- /dev/null
-+++ b/Source/WebKit/WebProcess/gtk/NSApplicationActivationPolicy.h
-@@ -0,0 +1,4 @@
-+
-+// This is the C "trampoline" function that will be used
-+// to invoke a specific Objective-C method FROM C++
-+void SetActivationPolicyProhibited ();
-diff --git a/Source/WebKit/WebProcess/gtk/NSApplicationActivationPolicy.mm b/Source/WebKit/WebProcess/gtk/NSApplicationActivationPolicy.mm
-new file mode 100644
-index 00000000..ce1d75c1
---- /dev/null
-+++ b/Source/WebKit/WebProcess/gtk/NSApplicationActivationPolicy.mm
-@@ -0,0 +1,10 @@
-+#include "config.h"
-+#import "NSApplicationActivationPolicy.h"
-+#import
-+
-+// C "trampoline" function to invoke Objective-C method
-+void SetActivationPolicyProhibited ()
-+{
-+ [NSApp setActivationPolicy: NSApplicationActivationPolicyProhibited];
-+ return;
-+}
-diff --git a/Source/WebKit/WebProcess/gtk/WebProcessMainGtk.cpp b/Source/WebKit/WebProcess/gtk/WebProcessMainGtk.cpp
-index 6444ad4b..6c785748 100644
---- a/Source/WebKit/WebProcess/gtk/WebProcessMainGtk.cpp
-+++ b/Source/WebKit/WebProcess/gtk/WebProcessMainGtk.cpp
-@@ -31,6 +31,7 @@
- #include "WebProcess.h"
- #include
- #include
-+#include "NSApplicationActivationPolicy.h"
-
- #if PLATFORM(X11)
- #include
-@@ -56,6 +57,7 @@ public:
-
- bindtextdomain(GETTEXT_PACKAGE, LOCALEDIR);
- bind_textdomain_codeset(GETTEXT_PACKAGE, "UTF-8");
-+ SetActivationPolicyProhibited ();
-
- return true;
- }
diff --git a/modulesets/patches/WebKit2Gtk3-2.30.1-Disable-WebKitGenericCueAPIEnabled.patch b/modulesets/patches/WebKit2Gtk3-2.30.1-Disable-WebKitGenericCueAPIEnabled.patch
deleted file mode 100644
index 4e16605..0000000
--- a/modulesets/patches/WebKit2Gtk3-2.30.1-Disable-WebKitGenericCueAPIEnabled.patch
+++ /dev/null
@@ -1,32 +0,0 @@
-From 7b21876d03f66bfb273508b45e97192170ff927b Mon Sep 17 00:00:00 2001
-From: John Ralls
-Date: Mon, 9 Nov 2020 09:41:08 -0800
-Subject: [PATCH 6/7] Disable WebKitGenericCueAPIEnabled.
-
-Not defined in Gtk builds.
----
- Source/WebKit/WebProcess/InjectedBundle/InjectedBundle.cpp | 2 ++
- 1 file changed, 2 insertions(+)
-
-diff --git a/Source/WebKit/WebProcess/InjectedBundle/InjectedBundle.cpp b/Source/WebKit/WebProcess/InjectedBundle/InjectedBundle.cpp
-index 61326f2..daa478d 100644
---- a/Source/WebKit/WebProcess/InjectedBundle/InjectedBundle.cpp
-+++ b/Source/WebKit/WebProcess/InjectedBundle/InjectedBundle.cpp
-@@ -236,12 +236,14 @@ void InjectedBundle::overrideBoolPreferenceForTestRunner(WebPageGroupProxy* page
- RuntimeEnabledFeatures::sharedFeatures().setWebRTCMDNSICECandidatesEnabled(enabled);
- #endif
-
-+#if ENABLE(TEXT_TRACK_CUE)
- if (preference == "WebKitGenericCueAPIEnabled") {
- WebPreferencesStore::overrideBoolValueForKey(WebPreferencesKey::genericCueAPIEnabledKey(), enabled);
- for (auto* page : pages)
- page->settings().setGenericCueAPIEnabled(enabled);
- return;
- }
-+#endif
-
- #if ENABLE(GPU_PROCESS)
- if (preference == "WebKitUseGPUProcessForMedia" || preference == "WebKitCaptureAudioInGPUProcessEnabledKey") {
---
-2.2.2
-
diff --git a/modulesets/patches/WebKit2Gtk3-2.30.1-Extend-UNIX_DOMAIN_SOCKETS-precedence-over-Mac-and-Win.patch b/modulesets/patches/WebKit2Gtk3-2.30.1-Extend-UNIX_DOMAIN_SOCKETS-precedence-over-Mac-and-Win.patch
deleted file mode 100644
index 5da454a..0000000
--- a/modulesets/patches/WebKit2Gtk3-2.30.1-Extend-UNIX_DOMAIN_SOCKETS-precedence-over-Mac-and-Win.patch
+++ /dev/null
@@ -1,40 +0,0 @@
-From c53d0d90151eee296aa636d05b7ac2d27283155b Mon Sep 17 00:00:00 2001
-From: John Ralls
-Date: Mon, 9 Nov 2020 09:39:19 -0800
-Subject: [PATCH 5/7] Extend UNIX_DOMAIN_SOCKETS precence over Mac and Windows
- IPC to Shared Memory.
-
----
- Source/WebKit/Platform/SharedMemory.h | 2 +-
- Source/WebKit/WebProcess/WebCoreSupport/WebPlatformStrategies.cpp | 2 +-
- 2 files changed, 2 insertions(+), 2 deletions(-)
-
-diff --git a/Source/WebKit/Platform/SharedMemory.h b/Source/WebKit/Platform/SharedMemory.h
-index 7cd44db..cae19ac 100644
---- a/Source/WebKit/Platform/SharedMemory.h
-+++ b/Source/WebKit/Platform/SharedMemory.h
-@@ -73,7 +73,7 @@ public:
-
- bool isNull() const;
-
--#if OS(DARWIN) || OS(WINDOWS)
-+#if !USE(UNIX_DOMAIN_SOCKETS) && (OS(DARWIN) || OS(WINDOWS))
- size_t size() const { return m_size; }
- #endif
-
-diff --git a/Source/WebKit/WebProcess/WebCoreSupport/WebPlatformStrategies.cpp b/Source/WebKit/WebProcess/WebCoreSupport/WebPlatformStrategies.cpp
-index 528fa47..4268457 100644
---- a/Source/WebKit/WebProcess/WebCoreSupport/WebPlatformStrategies.cpp
-+++ b/Source/WebKit/WebProcess/WebCoreSupport/WebPlatformStrategies.cpp
-@@ -409,7 +409,7 @@ RefPtr WebPlatformStrategies::readBufferFromPasteboard(si
- WebProcess::singleton().parentProcessConnection()->sendSync(Messages::WebPasteboardProxy::ReadBufferFromPasteboard(index, pasteboardType, pasteboardName), Messages::WebPasteboardProxy::ReadBufferFromPasteboard::Reply(handle, size), 0);
- if (handle.isNull())
- return nullptr;
--#if OS(DARWIN) || OS(WINDOWS)
-+#if !USE(UNIX_DOMAIN_SOCKETS) && (OS(DARWIN) || OS(WINDOWS))
- // SharedMemory::Handle::size() is rounded up to the nearest page.
- if (!size || size > handle.size())
- return nullptr;
---
-2.2.2
-
diff --git a/modulesets/patches/WebKit2Gtk3-2.30.1-Force-FindICU-instead-of-inserting-heade.patch b/modulesets/patches/WebKit2Gtk3-2.30.1-Force-FindICU-instead-of-inserting-heade.patch
deleted file mode 100644
index 02e1b6e..0000000
--- a/modulesets/patches/WebKit2Gtk3-2.30.1-Force-FindICU-instead-of-inserting-heade.patch
+++ /dev/null
@@ -1,26 +0,0 @@
-From 5bbb4c1d93218117e90997df8b770d2d1a493f10 Mon Sep 17 00:00:00 2001
-From: John Ralls
-Date: Sat, 31 Oct 2020 17:01:17 -0700
-Subject: [PATCH 2/7] WebKit2Gtk3 Force FindICU instead of inserting headers
- and using the ICU Framework.
-
----
- Source/cmake/WebKitFindPackage.cmake | 2 +-
- 1 file changed, 1 insertion(+), 1 deletion(-)
-
-diff --git a/Source/cmake/WebKitFindPackage.cmake b/Source/cmake/WebKitFindPackage.cmake
-index a35d15a..7e9552c 100644
---- a/Source/cmake/WebKitFindPackage.cmake
-+++ b/Source/cmake/WebKitFindPackage.cmake
-@@ -86,7 +86,7 @@ macro(find_package package)
- endif ()
-
- # Apple builds have a unique location for ICU
-- if (APPLE AND "${package}" STREQUAL "ICU")
-+ if (APPLE AND "${package}" STREQUAL "ICU" AND NOT PORT STREQUAL "GTK")
- set(_found_package ON)
-
- set(ICU_INCLUDE_DIRS ${CMAKE_BINARY_DIR}/ICU/Headers)
---
-2.2.2
-
diff --git a/modulesets/patches/WebKit2Gtk3-2.30.2-GUniquePtrGtk.patch b/modulesets/patches/WebKit2Gtk3-2.30.2-GUniquePtrGtk.patch
deleted file mode 100644
index 4a45836..0000000
--- a/modulesets/patches/WebKit2Gtk3-2.30.2-GUniquePtrGtk.patch
+++ /dev/null
@@ -1,11 +0,0 @@
---- a/Source/WebKit/UIProcess/gtk/WebDataListSuggestionsDropdownGtk.cpp 2020-02-04 02:24:08.000000000 -0800
-+++ b/Source/WebKit/UIProcess/gtk/WebDataListSuggestionsDropdownGtk.cpp 2020-10-20 14:55:56.000000000 -0700
-@@ -33,7 +33,7 @@
- #include
- #include
- #include
--#include
-+#include
-
- namespace WebKit {
-
diff --git a/modulesets/patches/WebKit2Gtk3-2.30.2-Prevent-WebKitWebProcess-from-being-in-.patch b/modulesets/patches/WebKit2Gtk3-2.30.2-Prevent-WebKitWebProcess-from-being-in-.patch
deleted file mode 100644
index c5317dd..0000000
--- a/modulesets/patches/WebKit2Gtk3-2.30.2-Prevent-WebKitWebProcess-from-being-in-.patch
+++ /dev/null
@@ -1,80 +0,0 @@
-From 338ef8630d4aa8c15d33e66f438bc5862d4dc930 Mon Sep 17 00:00:00 2001
-From: John Ralls
-Date: Thu, 29 Oct 2020 18:30:08 -0700
-Subject: [PATCH] Prevent WebKitWebProcess from being in the dock or process
- switcher.
-
-Thanks to the Nyxt browser project, https://nyxt.atlas.engineer/.
----
- Source/WebKit/PlatformGTK.cmake | 4 ++++
- Source/WebKit/WebProcess/gtk/NSApplicationActivationPolicy.h | 4 ++++
- Source/WebKit/WebProcess/gtk/NSApplicationActivationPolicy.mm | 10 ++++++++++
- Source/WebKit/WebProcess/gtk/WebProcessMainGtk.cpp | 2 ++
- 4 files changed, 20 insertions(+)
- create mode 100644 Source/WebKit/WebProcess/gtk/NSApplicationActivationPolicy.h
- create mode 100644 Source/WebKit/WebProcess/gtk/NSApplicationActivationPolicy.mm
-
-diff --git a/Source/WebKit/PlatformGTK.cmake b/Source/WebKit/PlatformGTK.cmake
-index f6abc65..7214829 100644
---- a/Source/WebKit/PlatformGTK.cmake
-+++ b/Source/WebKit/PlatformGTK.cmake
-@@ -34,6 +34,10 @@ list(APPEND WebKit_UNIFIED_SOURCE_LIST_FILES
- "SourcesGTK.txt"
- )
-
-+find_library(APPKIT_FRAMEWORK NAMES AppKit)
-+target_link_libraries(WebKit PRIVATE ${APPKIT_FRAMEWORK})
-+list(APPEND WebKit_SOURCES WebProcess/gtk/NSApplicationActivationPolicy.mm)
-+
- if (NOT USE_GTK4)
- list(APPEND WebKit_SOURCES
- UIProcess/ViewGestureController.cpp
-diff --git a/Source/WebKit/WebProcess/gtk/NSApplicationActivationPolicy.h b/Source/WebKit/WebProcess/gtk/NSApplicationActivationPolicy.h
-new file mode 100644
-index 0000000..7285942
---- /dev/null
-+++ b/Source/WebKit/WebProcess/gtk/NSApplicationActivationPolicy.h
-@@ -0,0 +1,4 @@
-+
-+// This is the C "trampoline" function that will be used
-+// to invoke a specific Objective-C method FROM C++
-+void SetActivationPolicyProhibited ();
-diff --git a/Source/WebKit/WebProcess/gtk/NSApplicationActivationPolicy.mm b/Source/WebKit/WebProcess/gtk/NSApplicationActivationPolicy.mm
-new file mode 100644
-index 0000000..ce1d75c
---- /dev/null
-+++ b/Source/WebKit/WebProcess/gtk/NSApplicationActivationPolicy.mm
-@@ -0,0 +1,10 @@
-+#include "config.h"
-+#import "NSApplicationActivationPolicy.h"
-+#import
-+
-+// C "trampoline" function to invoke Objective-C method
-+void SetActivationPolicyProhibited ()
-+{
-+ [NSApp setActivationPolicy: NSApplicationActivationPolicyProhibited];
-+ return;
-+}
-diff --git a/Source/WebKit/WebProcess/gtk/WebProcessMainGtk.cpp b/Source/WebKit/WebProcess/gtk/WebProcessMainGtk.cpp
-index 6a4a822..5b4064f 100644
---- a/Source/WebKit/WebProcess/gtk/WebProcessMainGtk.cpp
-+++ b/Source/WebKit/WebProcess/gtk/WebProcessMainGtk.cpp
-@@ -31,6 +31,7 @@
- #include "WebProcess.h"
- #include
- #include
-+#include "NSApplicationActivationPolicy.h"
-
- #if PLATFORM(X11)
- #include
-@@ -56,6 +57,7 @@ public:
-
- bindtextdomain(GETTEXT_PACKAGE, LOCALEDIR);
- bind_textdomain_codeset(GETTEXT_PACKAGE, "UTF-8");
-+ SetActivationPolicyProhibited ();
-
- return true;
- }
---
-2.2.2
-
diff --git a/modulesets/patches/WebKit2Gtk3-2.32.0-misc-fixes.patch b/modulesets/patches/WebKit2Gtk3-2.32.0-misc-fixes.patch
new file mode 100644
index 0000000..ff03856
--- /dev/null
+++ b/modulesets/patches/WebKit2Gtk3-2.32.0-misc-fixes.patch
@@ -0,0 +1,47 @@
+--- a/Source/WTF/wtf/URLHelpers.cpp 2021-02-26 01:57:08
++++ b/Source/WTF/wtf/URLHelpers.cpp 2024-07-13 13:14:05
+@@ -52,7 +52,7 @@
+ // WebKit was compiled.
+ // This is only really important for platforms that load an external IDN allowed script list.
+ // Not important for the compiled-in one.
+-constexpr auto scriptCodeLimit = static_cast(256);
++constexpr auto scriptCodeLimit = static_cast(255);
+
+ static uint32_t allowedIDNScriptBits[(scriptCodeLimit + 31) / 32];
+
+
+--- a/Source/WTF/wtf/PlatformUse.h 2021-02-26 01:57:08
++++ b/Source/WTF/wtf/PlatformUse.h 2024-07-14 09:27:02
+@@ -313,7 +313,7 @@
+ #define USE_LEGACY_CFNETWORK_DOWNLOADS 1
+ #endif
+
+-#if (PLATFORM(MAC) && __MAC_OS_X_VERSION_MIN_REQUIRED >= 110000) \
++#if (OS(MAC_OS_X) && __MAC_OS_X_VERSION_MIN_REQUIRED >= 110000) \
+ || (PLATFORM(MACCATALYST) && __IPHONE_OS_VERSION_MIN_REQUIRED >= 140000)
+ #if USE(APPLE_INTERNAL_SDK)
+ /* Always use the macro on internal builds */
+
+--- b/Source/WTF/wtf/glib/GLibUtilities.cpp 2024-07-13 12:02:10
++++ b/Source/WTF/wtf/glib/GLibUtilities.cpp 2024-07-15 17:19:10
+@@ -58,6 +58,19 @@
+ CFStringGetCString(string, bundle_path, len, kCFStringEncodingUTF8);
+ CFRelease(abs_url);
+ CFRelease(string);
++
++ auto basename{g_path_get_basename(bundle_path)};
++ if (g_strcmp0("bin", basename) == 0)
++ {
++ auto parent_path{g_path_get_dirname(bundle_path)};
++ if (parent_path && *parent_path)
++ {
++ strncpy(bundle_path, parent_path, len);
++ len = strlen(parent_path);
++ g_free(parent_path);
++ }
++ }
++ g_free(basename);
+ return CString(bundle_path, len);
+ }
+ #endif
+
diff --git a/modulesets/patches/Webkit-2.16-Fix-some-includes.patch b/modulesets/patches/Webkit-2.16-Fix-some-includes.patch
deleted file mode 100644
index 5b75772..0000000
--- a/modulesets/patches/Webkit-2.16-Fix-some-includes.patch
+++ /dev/null
@@ -1,46 +0,0 @@
-From ab145a5642e7725bd2e8313e96a8ff0fdc53a49c Mon Sep 17 00:00:00 2001
-From: John Ralls
-Date: Sat, 22 Apr 2017 16:35:27 -0700
-Subject: [PATCH 3/3] [GTK] Fix some missing/misnamed includes.
-
----
- .../platform/graphics/texmap/coordinated/CoordinatedGraphicsLayer.h | 4 ++--
- .../platform/graphics/texmap/coordinated/CoordinatedGraphicsState.h | 4 ++--
- 2 files changed, 4 insertions(+), 4 deletions(-)
-
-diff --git a/Source/WebCore/platform/graphics/texmap/coordinated/CoordinatedGraphicsLayer.h b/Source/WebCore/platform/graphics/texmap/coordinated/CoordinatedGraphicsLayer.h
-index bf25111..06b0782 100644
---- a/Source/WebCore/platform/graphics/texmap/coordinated/CoordinatedGraphicsLayer.h
-+++ b/Source/WebCore/platform/graphics/texmap/coordinated/CoordinatedGraphicsLayer.h
-@@ -30,8 +30,8 @@
- #include "GraphicsLayerTransform.h"
- #include "Image.h"
- #include "IntSize.h"
--#include "TextureMapperAnimation.h"
--#include "TextureMapperPlatformLayer.h"
-+#include "../TextureMapperAnimation.h"
-+#include "../TextureMapperPlatformLayer.h"
- #include "TiledBackingStore.h"
- #include "TiledBackingStoreClient.h"
- #include "TransformationMatrix.h"
-diff --git a/Source/WebCore/platform/graphics/texmap/coordinated/CoordinatedGraphicsState.h b/Source/WebCore/platform/graphics/texmap/coordinated/CoordinatedGraphicsState.h
-index c810530..3f09b58 100644
---- a/Source/WebCore/platform/graphics/texmap/coordinated/CoordinatedGraphicsState.h
-+++ b/Source/WebCore/platform/graphics/texmap/coordinated/CoordinatedGraphicsState.h
-@@ -36,11 +36,11 @@
- #include "IntRect.h"
- #include "IntSize.h"
- #include "SurfaceUpdateInfo.h"
--#include "TextureMapperAnimation.h"
-+#include "../TextureMapperAnimation.h"
- #include "TransformationMatrix.h"
-
- #if USE(COORDINATED_GRAPHICS_THREADED)
--#include "TextureMapperPlatformLayerProxy.h"
-+#include "../TextureMapperPlatformLayerProxy.h"
- #endif
-
- namespace WebCore {
---
-2.2.2
-
diff --git a/modulesets/patches/Webkit-2.16-build-without-OpenGL.patch b/modulesets/patches/Webkit-2.16-build-without-OpenGL.patch
deleted file mode 100644
index c098567..0000000
--- a/modulesets/patches/Webkit-2.16-build-without-OpenGL.patch
+++ /dev/null
@@ -1,375 +0,0 @@
-From 9e4d31faae8f3f23df718891b41dc4bd97eee0d6 Mon Sep 17 00:00:00 2001
-From: John Ralls
-Date: Thu, 20 Apr 2017 16:40:16 -0700
-Subject: [PATCH 2/3] [GTK] Building WebKit2Gtk without OpenGL Fails.
-
-Rearranged WebCore/PlatformGTK.cmake so that the OpenGL-dependent
-targets are built only if OpenGL is enabled. Add
-USE_COORDINATED_GRAPHICS to unconditionally TRUE options in
-OptionsGTK.cmake. Adjusted two targets in TextureMapper.cmake to
-build only if USE_TEXTURE_MAPPER_GL is true because they depend on
-OpenGL contexts. Made some functions and includes conditional on
-OpenGL or subsidiary items.
----
- Source/WebCore/PlatformGTK.cmake | 78 ++++++++++++++--------
- Source/WebCore/page/FrameView.cpp | 2 +-
- .../page/scrolling/ScrollingCoordinator.cpp | 2 +-
- Source/WebCore/platform/TextureMapper.cmake | 8 ++-
- .../WebCore/platform/graphics/PlatformDisplay.cpp | 3 +-
- .../texmap/coordinated/TiledBackingStore.cpp | 2 +-
- Source/WebKit2/PlatformGTK.cmake | 13 ++++
- .../UIProcess/API/gtk/WebKitWebsiteData.cpp | 3 -
- .../UIProcess/API/gtk/WebKitWebsiteDataManager.cpp | 2 -
- .../WebKit2/WebProcess/WebPage/DrawingAreaImpl.cpp | 1 -
- Source/cmake/OptionsGTK.cmake | 5 +-
- 11 files changed, 76 insertions(+), 43 deletions(-)
-
-diff --git a/Source/WebCore/PlatformGTK.cmake b/Source/WebCore/PlatformGTK.cmake
-index 6981e37..417249e 100644
---- a/Source/WebCore/PlatformGTK.cmake
-+++ b/Source/WebCore/PlatformGTK.cmake
-@@ -21,16 +21,11 @@ list(APPEND WebCore_INCLUDE_DIRECTORIES
- "${WEBCORE_DIR}/platform/geoclue"
- "${WEBCORE_DIR}/platform/gtk"
- "${WEBCORE_DIR}/platform/graphics/cairo"
-- "${WEBCORE_DIR}/platform/graphics/egl"
-- "${WEBCORE_DIR}/platform/graphics/glx"
- "${WEBCORE_DIR}/platform/graphics/gtk"
- "${WEBCORE_DIR}/platform/graphics/freetype"
- "${WEBCORE_DIR}/platform/graphics/harfbuzz/"
- "${WEBCORE_DIR}/platform/graphics/harfbuzz/ng"
-- "${WEBCORE_DIR}/platform/graphics/opengl"
- "${WEBCORE_DIR}/platform/graphics/opentype"
-- "${WEBCORE_DIR}/platform/graphics/wayland"
-- "${WEBCORE_DIR}/platform/graphics/x11"
- "${WEBCORE_DIR}/platform/mediastream/gtk"
- "${WEBCORE_DIR}/platform/mock/mediasource"
- "${WEBCORE_DIR}/platform/network/gtk"
-@@ -83,11 +78,9 @@ list(APPEND WebCore_SOURCES
- platform/glib/MainThreadSharedTimerGLib.cpp
- platform/glib/SharedBufferGlib.cpp
-
-- platform/graphics/GLContext.cpp
- platform/graphics/GraphicsContext3DPrivate.cpp
-
- platform/graphics/cairo/BackingStoreBackendCairoImpl.cpp
-- platform/graphics/cairo/BackingStoreBackendCairoX11.cpp
- platform/graphics/cairo/CairoUtilities.cpp
- platform/graphics/cairo/FloatRectCairo.cpp
- platform/graphics/cairo/FontCairo.cpp
-@@ -106,18 +99,11 @@ list(APPEND WebCore_SOURCES
- platform/graphics/cairo/RefPtrCairo.cpp
- platform/graphics/cairo/TransformationMatrixCairo.cpp
-
-- platform/graphics/egl/GLContextEGL.cpp
-- platform/graphics/egl/GLContextEGLWayland.cpp
-- platform/graphics/egl/GLContextEGLX11.cpp
--
- platform/graphics/freetype/FontCacheFreeType.cpp
- platform/graphics/freetype/FontCustomPlatformDataFreeType.cpp
- platform/graphics/freetype/FontPlatformDataFreeType.cpp
- platform/graphics/freetype/GlyphPageTreeNodeFreeType.cpp
- platform/graphics/freetype/SimpleFontDataFreeType.cpp
--
-- platform/graphics/glx/GLContextGLX.cpp
--
- platform/graphics/gstreamer/ImageGStreamerCairo.cpp
-
- platform/graphics/harfbuzz/ComplexTextControllerHarfBuzz.cpp
-@@ -125,18 +111,8 @@ list(APPEND WebCore_SOURCES
- platform/graphics/harfbuzz/HarfBuzzFaceCairo.cpp
- platform/graphics/harfbuzz/HarfBuzzShaper.cpp
-
-- platform/graphics/opengl/Extensions3DOpenGLCommon.cpp
-- platform/graphics/opengl/GraphicsContext3DOpenGLCommon.cpp
-- platform/graphics/opengl/TemporaryOpenGLSetting.cpp
--
- platform/graphics/opentype/OpenTypeVerticalData.cpp
-
-- platform/graphics/wayland/PlatformDisplayWayland.cpp
--
-- platform/graphics/x11/PlatformDisplayX11.cpp
-- platform/graphics/x11/XErrorTrapper.cpp
-- platform/graphics/x11/XUniqueResource.cpp
--
- platform/gtk/DragDataGtk.cpp
- platform/gtk/ErrorsGtk.cpp
- platform/gtk/MIMETypeRegistryGtk.cpp
-@@ -258,11 +234,6 @@ list(APPEND WebCore_LIBRARIES
- ${LIBXSLT_LIBRARIES}
- ${HYPHEN_LIBRARIES}
- ${SQLITE_LIBRARIES}
-- ${X11_X11_LIB}
-- ${X11_Xcomposite_LIB}
-- ${X11_Xdamage_LIB}
-- ${X11_Xrender_LIB}
-- ${X11_Xt_LIB}
- ${ZLIB_LIBRARIES}
- WTF
- )
-@@ -296,11 +267,24 @@ if (USE_OPENGL_ES_2)
- endif ()
-
- if (USE_OPENGL)
-+ list(APPEND WebCore_INCLUDE_DIRECTORIES
-+ "${WEBCORE_DIR}/platform/graphics/opengl"
-+ "${WEBCORE_DIR}/platform/graphics/egl"
-+ "${WEBCORE_DIR}/platform/graphics/glx"
-+ )
- list(APPEND WebCore_SOURCES
-+ platform/graphics/GLContext.cpp
- platform/graphics/OpenGLShims.cpp
-
-+ platform/graphics/egl/GLContextEGL.cpp
-+
-+ platform/graphics/glx/GLContextGLX.cpp
-+
- platform/graphics/opengl/Extensions3DOpenGL.cpp
- platform/graphics/opengl/GraphicsContext3DOpenGL.cpp
-+ platform/graphics/opengl/Extensions3DOpenGLCommon.cpp
-+ platform/graphics/opengl/GraphicsContext3DOpenGLCommon.cpp
-+ platform/graphics/opengl/TemporaryOpenGLSetting.cpp
- )
- endif ()
-
-@@ -330,13 +314,49 @@ if (ENABLE_PLUGIN_PROCESS_GTK2)
- )
- endif ()
-
-+if (ENABLE_X11_TARGET)
-+ list(APPEND WebCore_INCLUDE_DIRECTORIES
-+ "${WEBCORE_DIR}/platform/graphics/x11"
-+ )
-+ list(APPEND WebCore_SOURCES
-+ platform/graphics/x11/PlatformDisplayX11.cpp
-+ platform/graphics/x11/XErrorTrapper.cpp
-+ platform/graphics/x11/XUniqueResource.cpp
-+ platform/graphics/cairo/BackingStoreBackendCairoX11.cpp
-+ )
-+ list(APPEND WebCore_LIBRARIES
-+ ${X11_X11_LIB}
-+ ${X11_Xcomposite_LIB}
-+ ${X11_Xdamage_LIB}
-+ ${X11_Xrender_LIB}
-+ ${X11_Xt_LIB}
-+ )
-+ if (USE_OPENGL)
-+ list(APPEND WebCore_SOURCES
-+ platform/graphics/egl/GLContextEGLX11.cpp
-+ )
-+ endif ()
-+endif()
-+
-+
- if (ENABLE_WAYLAND_TARGET)
-+ list(APPEND WebCore_INCLUDE_DIRECTORIES
-+ "${WEBCORE_DIR}/platform/graphics/wayland"
-+ )
-+ list(APPEND WebCore_SOURCES
-+ platform/graphics/wayland/PlatformDisplayWayland.cpp
-+ )
- list(APPEND WebCore_SYSTEM_INCLUDE_DIRECTORIES
- ${WAYLAND_INCLUDE_DIRS}
- )
- list(APPEND WebCore_LIBRARIES
- ${WAYLAND_LIBRARIES}
- )
-+ if (USE_OPENGL)
-+ list(APPEND WebCore_SOURCES
-+ platform/graphics/egl/GLContextEGLWayland.cpp
-+ )
-+ endif ()
- endif ()
-
- add_library(WebCorePlatformGTK ${WebCore_LIBRARY_TYPE} ${WebCorePlatformGTK_SOURCES})
-diff --git a/Source/WebCore/page/FrameView.cpp b/Source/WebCore/page/FrameView.cpp
-index 597c666..8e2d43a 100644
---- a/Source/WebCore/page/FrameView.cpp
-+++ b/Source/WebCore/page/FrameView.cpp
-@@ -103,7 +103,7 @@
- #include
-
- #if USE(COORDINATED_GRAPHICS)
--#include "TiledBackingStore.h"
-+#include
- #endif
-
- #if ENABLE(CSS_SCROLL_SNAP)
-diff --git a/Source/WebCore/page/scrolling/ScrollingCoordinator.cpp b/Source/WebCore/page/scrolling/ScrollingCoordinator.cpp
-index ff34266..9f7e93b 100644
---- a/Source/WebCore/page/scrolling/ScrollingCoordinator.cpp
-+++ b/Source/WebCore/page/scrolling/ScrollingCoordinator.cpp
-@@ -46,7 +46,7 @@
- #include
-
- #if USE(COORDINATED_GRAPHICS)
--#include "ScrollingCoordinatorCoordinatedGraphics.h"
-+#include
- #endif
-
- #if ENABLE(WEB_REPLAY)
-diff --git a/Source/WebCore/platform/TextureMapper.cmake b/Source/WebCore/platform/TextureMapper.cmake
-index 1091a46..4cfcf1e 100644
---- a/Source/WebCore/platform/TextureMapper.cmake
-+++ b/Source/WebCore/platform/TextureMapper.cmake
-@@ -9,7 +9,6 @@ list(APPEND WebCore_SOURCES
- platform/graphics/texmap/TextureMapperAnimation.cpp
- platform/graphics/texmap/TextureMapperBackingStore.cpp
- platform/graphics/texmap/TextureMapperFPSCounter.cpp
-- platform/graphics/texmap/TextureMapperGC3DPlatformLayer.cpp
- platform/graphics/texmap/TextureMapperLayer.cpp
- platform/graphics/texmap/TextureMapperTile.cpp
- platform/graphics/texmap/TextureMapperTiledBackingStore.cpp
-@@ -19,6 +18,7 @@ if (USE_TEXTURE_MAPPER_GL)
- list(APPEND WebCore_SOURCES
- platform/graphics/texmap/BitmapTextureGL.cpp
- platform/graphics/texmap/ClipStack.cpp
-+ platform/graphics/texmap/TextureMapperGC3DPlatformLayer.cpp
- platform/graphics/texmap/TextureMapperGL.cpp
- platform/graphics/texmap/TextureMapperShaderProgram.cpp
- )
-@@ -42,8 +42,12 @@ if (USE_COORDINATED_GRAPHICS)
- endif ()
-
- if (ENABLE_THREADED_COMPOSITOR)
-+ if (USE_TEXTURE_MAPPER_GL)
-+ list(APPEND WebCore_SOURCES
-+ platform/graphics/texmap/TextureMapperPlatformLayerBuffer.cpp
-+ )
-+ endif()
- list(APPEND WebCore_SOURCES
-- platform/graphics/texmap/TextureMapperPlatformLayerBuffer.cpp
- platform/graphics/texmap/TextureMapperPlatformLayerProxy.cpp
- )
- endif ()
-diff --git a/Source/WebCore/platform/graphics/PlatformDisplay.cpp b/Source/WebCore/platform/graphics/PlatformDisplay.cpp
-index e387bf9..d4c1bd9 100644
---- a/Source/WebCore/platform/graphics/PlatformDisplay.cpp
-+++ b/Source/WebCore/platform/graphics/PlatformDisplay.cpp
-@@ -25,8 +25,9 @@
-
- #include "config.h"
- #include "PlatformDisplay.h"
--
-+#if ENABLE(OPENGL)
- #include "GLContext.h"
-+#endif
- #include
- #include
-
-diff --git a/Source/WebCore/platform/graphics/texmap/coordinated/TiledBackingStore.cpp b/Source/WebCore/platform/graphics/texmap/coordinated/TiledBackingStore.cpp
-index ecb31b4..d88498c 100644
---- a/Source/WebCore/platform/graphics/texmap/coordinated/TiledBackingStore.cpp
-+++ b/Source/WebCore/platform/graphics/texmap/coordinated/TiledBackingStore.cpp
-@@ -24,7 +24,7 @@
- #include "GraphicsContext.h"
- #include "TiledBackingStoreClient.h"
- #include