phonemgr r281 - in trunk: . src



Author: hadess
Date: Thu Mar 13 15:35:25 2008
New Revision: 281
URL: http://svn.gnome.org/viewvc/phonemgr?rev=281&view=rev

Log:
2008-03-13  Bastien Nocera  <hadess hadess net>

	* README: update build dependencies
	* configure.in:
	* src/ui.c (create_send_dialog): Add spell checking
	to the "Send message" text area, based on patch by
	Daniel Schierbeck <daniel schierbeck gmail com>
	(Closes: #508816)



Modified:
   trunk/ChangeLog
   trunk/README
   trunk/configure.in
   trunk/src/ui.c

Modified: trunk/README
==============================================================================
--- trunk/README	(original)
+++ trunk/README	Thu Mar 13 15:35:25 2008
@@ -33,11 +33,10 @@
 * gnome-bluetooth and libbtctl, from
   http://live.gnome.org/GnomeBluetooth
 
-* These GNOME 2 packages:
-    glib-2.0 libgnomeui-2.0 >= 1.110.0
-    libgnome-2.0 gtk-2.0 gconf-2.0
+* Evolution-data-server
+* GtkSpell
 
-* gnokii 0.6.18 or better
+* gnokii
   gnokii's homepage is at http://gnokii.org/
 
- -- Edd Dumbill <edd usefulinc com>, 2003-03-01
+ -- Edd Dumbill <edd usefulinc com>, 2008-03-13

Modified: trunk/configure.in
==============================================================================
--- trunk/configure.in	(original)
+++ trunk/configure.in	Thu Mar 13 15:35:25 2008
@@ -51,6 +51,7 @@
 	gstreamer-0.10 gdk-pixbuf-2.0 gconf-2.0
 	$GNOME_BLUETOOTH_REQS libglade-2.0 $evo_pc_file
 	gmodule-2.0 dbus-glib-1 gnome-icon-theme >= 2.19.1
+	gtkspell-2.0
 )
 
 DBUSLIBDIR="`$PKG_CONFIG dbus-glib-1 --variable=libdir`"

Modified: trunk/src/ui.c
==============================================================================
--- trunk/src/ui.c	(original)
+++ trunk/src/ui.c	Thu Mar 13 15:35:25 2008
@@ -22,6 +22,8 @@
 #include <glib/gi18n.h>
 #include <stdlib.h>
 #include <glade/glade.h>
+#include <gtk/gtk.h>
+#include <gtkspell/gtkspell.h>
 #include <time.h>
 #include <string.h>
 
@@ -378,6 +380,7 @@
 void
 create_send_dialog (MyApp *app, GtkDialog *parent, const char *recip)
 {
+        GError *err = NULL;
 	GtkTextBuffer *buf;
 	GtkTextView *view;
 	GtkEntry *entry;
@@ -397,6 +400,12 @@
 	view = GTK_TEXT_VIEW (glade_xml_get_widget (ui, "messagebody"));
 	buf = gtk_text_view_get_buffer (view);
 	gtk_text_buffer_set_text (buf, "", 0);
+
+        if (!gtkspell_new_attach (view, NULL, &err)) {
+        	g_warning ("Couldn't initialise spell checking: %s", err->message);
+                g_error_free (err);
+        }
+
 	entry = GTK_ENTRY (glade_xml_get_widget (ui, "recipient"));
 	if (recip)
 		gtk_entry_set_text (entry, recip);



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]