r38169 - in /packages/unstable/gtranslator/debian: changelog control control.in patches/port_to_gtkspell3.patch patches/series

jordi at users.alioth.debian.org jordi at users.alioth.debian.org
Sun May 26 18:54:17 UTC 2013


Author: jordi
Date: Sun May 26 18:54:16 2013
New Revision: 38169

URL: http://svn.debian.org/wsvn/pkg-gnome/?sc=1&rev=38169
Log:
* New upstream release.
* Add port_to_gtkspell3.patch: take patch from git to adapat to GtkSpell
  changes.

Added:
    packages/unstable/gtranslator/debian/patches/port_to_gtkspell3.patch
Modified:
    packages/unstable/gtranslator/debian/changelog
    packages/unstable/gtranslator/debian/control
    packages/unstable/gtranslator/debian/control.in
    packages/unstable/gtranslator/debian/patches/series

Modified: packages/unstable/gtranslator/debian/changelog
URL: http://svn.debian.org/wsvn/pkg-gnome/packages/unstable/gtranslator/debian/changelog?rev=38169&op=diff
==============================================================================
--- packages/unstable/gtranslator/debian/changelog [utf-8] (original)
+++ packages/unstable/gtranslator/debian/changelog [utf-8] Sun May 26 18:54:16 2013
@@ -1,3 +1,11 @@
+gtranslator (2.91.6-1) unstable; urgency=low
+
+  * New upstream release.
+  * Add port_to_gtkspell3.patch: take patch from git to adapat to GtkSpell
+    changes.
+
+ -- Jordi Mallach <jordi at debian.org>  Sat, 04 Aug 2012 15:20:43 +0200
+
 gtranslator (2.91.5-1) unstable; urgency=low
 
   * New upstream release.

Modified: packages/unstable/gtranslator/debian/control
URL: http://svn.debian.org/wsvn/pkg-gnome/packages/unstable/gtranslator/debian/control?rev=38169&op=diff
==============================================================================
--- packages/unstable/gtranslator/debian/control [utf-8] (original)
+++ packages/unstable/gtranslator/debian/control [utf-8] Sun May 26 18:54:16 2013
@@ -23,7 +23,7 @@
                libgdl-3-dev (>= 2.91.1),
                libgdict-1.0-dev (>= 3.0.1-2~),
                libglib2.0-dev (>= 2.32.0),
-               libgtkspell-3-dev (>= 3.0.0~),
+               libgtkspell3-3-dev (>= 3.0.0),
                libgtksourceview-3.0-dev (>= 3.0.0),
                libgtk-3-dev (>= 3.4.2),
                libgucharmap-2-90-dev (>= 3.0.0),

Modified: packages/unstable/gtranslator/debian/control.in
URL: http://svn.debian.org/wsvn/pkg-gnome/packages/unstable/gtranslator/debian/control.in?rev=38169&op=diff
==============================================================================
--- packages/unstable/gtranslator/debian/control.in [utf-8] (original)
+++ packages/unstable/gtranslator/debian/control.in [utf-8] Sun May 26 18:54:16 2013
@@ -18,7 +18,7 @@
                libgdl-3-dev (>= 2.91.1),
                libgdict-1.0-dev (>= 3.0.1-2~),
                libglib2.0-dev (>= 2.32.0),
-               libgtkspell-3-dev (>= 3.0.0~),
+               libgtkspell3-3-dev (>= 3.0.0),
                libgtksourceview-3.0-dev (>= 3.0.0),
                libgtk-3-dev (>= 3.4.2),
                libgucharmap-2-90-dev (>= 3.0.0),

Added: packages/unstable/gtranslator/debian/patches/port_to_gtkspell3.patch
URL: http://svn.debian.org/wsvn/pkg-gnome/packages/unstable/gtranslator/debian/patches/port_to_gtkspell3.patch?rev=38169&op=file
==============================================================================
--- packages/unstable/gtranslator/debian/patches/port_to_gtkspell3.patch (added)
+++ packages/unstable/gtranslator/debian/patches/port_to_gtkspell3.patch [utf-8] Sun May 26 18:54:16 2013
@@ -1,0 +1,97 @@
+From cf33d8761dbfc7f6c8b27c3146efcad81f8fbde9 Mon Sep 17 00:00:00 2001
+From: Kalev Lember <kalevlember at gmail.com>
+Date: Sun, 13 Jan 2013 13:19:40 +0000
+Subject: Port to gtkspell3
+
+https://bugzilla.gnome.org/show_bug.cgi?id=691655
+---
+diff --git a/configure.ac b/configure.ac
+index c1ba5b6..3fe9c46 100644
+--- a/configure.ac
++++ b/configure.ac
+@@ -84,7 +84,7 @@ GDL_REQUIRED=3.6.0
+ GDA_REQUIRED=4.2.3
+ PEAS_REQUIRED=1.2.0
+ GDICT_OPTIONAL=0.11.0
+-GTKSPELL_OPTIONAL=2.99.99
++GTKSPELL_OPTIONAL=3.0.0
+ JSON_GLIB_OPTIONAL=0.12.0
+ 
+ AC_ARG_WITH(gda,
+@@ -174,14 +174,14 @@ dnl -------------------------------------------------------------------
+ dnl Check for gtkspell >= 3.0 and use it if found
+ dnl -------------------------------------------------------------------
+ have_gtkspell=no
+-AC_ARG_WITH(gtkspell3,
++AC_ARG_WITH(gtkspell,
+             AS_HELP_STRING([--with-gtkspell],[Build with spell support]),,
+             with_gtkspell=auto)
+ 
+ if test x"$with_gtkspell" != "xno"
+ then
+         PKG_CHECK_MODULES([GTKSPELL], [
+-                gtkspell-3.0 >= $GTKSPELL_OPTIONAL
++                gtkspell3-3.0 >= $GTKSPELL_OPTIONAL
+         ], have_gtkspell=yes, have_gtkspell=no)
+ 
+         if test x"$have_gtkspell" = "xyes"
+@@ -339,7 +339,7 @@ if [ test x"$have_gtkspell" = "xyes" ]; then
+ 	echo "Building spell support: ................................YES"
+ else
+ 	echo "Building spell support: ................................NO"
+-		echo "        Requires gtkspell >= $GTKSPELL_OPTIONAL"
++		echo "        Requires gtkspell3 >= $GTKSPELL_OPTIONAL"
+ fi
+ 
+ echo "
+diff --git a/src/gtr-view.c b/src/gtr-view.c
+index 59f18e8..b9c4f6a 100644
+--- a/src/gtr-view.c
++++ b/src/gtr-view.c
+@@ -65,7 +65,7 @@ struct _GtrViewPrivate
+   gchar *search_text;
+ 
+ #ifdef HAVE_GTKSPELL
+-  GtkSpell *spell;
++  GtkSpellChecker *spell;
+ #endif
+ };
+ 
+@@ -75,11 +75,10 @@ gtr_attach_gtkspell (GtrView * view)
+ {
+   GError *error = NULL;
+   gchar *errortext = NULL;
+-  view->priv->spell = NULL;
+ 
+-  view->priv->spell =
+-    gtkspell_new_attach (GTK_TEXT_VIEW (view), NULL, &error);
+-  if (view->priv->spell == NULL)
++  view->priv->spell = gtk_spell_checker_new ();
++  gtk_spell_checker_set_language (view->priv->spell, NULL, &error);
++  if (error)
+     {
+       g_warning (_("gtkspell error: %s\n"), error->message);
+       errortext =
+@@ -90,6 +89,11 @@ gtr_attach_gtkspell (GtrView * view)
+       g_error_free (error);
+       g_free (errortext);
+     }
++  else
++    {
++      gtk_spell_checker_attach (view->priv->spell,
++                                GTK_TEXT_VIEW (view));
++    }
+ }
+ #endif
+ 
+@@ -263,7 +267,7 @@ gtr_view_enable_spellcheck (GtrView * view, gboolean enable)
+ #ifdef HAVE_GTKSPELL
+       if (!view->priv->spell)
+         return;
+-      gtkspell_detach (view->priv->spell);
++      gtk_spell_checker_detach (view->priv->spell);
+ #endif
+     }
+ }
+--
+cgit v0.9.1

Modified: packages/unstable/gtranslator/debian/patches/series
URL: http://svn.debian.org/wsvn/pkg-gnome/packages/unstable/gtranslator/debian/patches/series?rev=38169&op=diff
==============================================================================
--- packages/unstable/gtranslator/debian/patches/series [utf-8] (original)
+++ packages/unstable/gtranslator/debian/patches/series [utf-8] Sun May 26 18:54:16 2013
@@ -1,0 +1,1 @@
+port_to_gtkspell3.patch




More information about the pkg-gnome-commits mailing list