diary r75 - in trunk: . po src



Author: pwithnall
Date: Wed Aug 27 19:39:55 2008
New Revision: 75
URL: http://svn.gnome.org/viewvc/diary?rev=75&view=rev

Log:
2008-08-27  Philip Withnall  <philip tecnocode co uk>

	* src/main-window.c: (mw_calendar_day_selected_cb): Force 
GtkSpell to
	re-check the text view for spelling errors when the day changes.
	(Closes: #546789)



Modified:
   trunk/ChangeLog
   trunk/po/ChangeLog
   trunk/po/Makefile.in.in
   trunk/src/main-window.c

Modified: trunk/po/Makefile.in.in
==============================================================================
--- trunk/po/Makefile.in.in	(original)
+++ trunk/po/Makefile.in.in	Wed Aug 27 19:39:55 2008
@@ -56,9 +56,9 @@
 
 PO_LINGUAS=$(shell if test -r $(srcdir)/LINGUAS; then grep -v "^\#" $(srcdir)/LINGUAS; fi)
 
-USER_LINGUAS=$(shell if test -n "$(LINGUAS)"; then LLINGUAS="$(LINGUAS)"; ALINGUAS="$(ALL_LINGUAS)"; for lang in $$LLINGUAS; do if test -n "`grep ^$$lang$$ $(srcdir)/LINGUAS`" -o -n "`echo $$ALINGUAS|grep ' ?$$lang ?'`"; then printf "$$lang "; fi; done; fi)
+USER_LINGUAS=$(shell if test -n "$(LINGUAS)"; then LLINGUAS="$(LINGUAS)"; ALINGUAS="$(ALL_LINGUAS)"; for lang in $$LLINGUAS; do if test -n "`grep ^$$lang$$ $(srcdir)/LINGUAS 2>/dev/null`" -o -n "`echo $$ALINGUAS|tr ' ' '\n'|grep ^$$lang$$`"; then printf "$$lang "; fi; done; fi)
 
-USE_LINGUAS=$(shell if test -n "$(USER_LINGUAS)"; then LLINGUAS="$(USER_LINGUAS)"; else if test -n "$(PO_LINGUAS)"; then LLINGUAS="$(PO_LINGUAS)"; else LLINGUAS="$(ALL_LINGUAS)"; fi; fi; for lang in $$LLINGUAS; do printf "$$lang "; done)
+USE_LINGUAS=$(shell if test -n "$(USER_LINGUAS)" -o -n "$(LINGUAS)"; then LLINGUAS="$(USER_LINGUAS)"; else if test -n "$(PO_LINGUAS)"; then LLINGUAS="$(PO_LINGUAS)"; else LLINGUAS="$(ALL_LINGUAS)"; fi; fi; for lang in $$LLINGUAS; do printf "$$lang "; done)
 
 POFILES=$(shell LINGUAS="$(USE_LINGUAS)"; for lang in $$LINGUAS; do printf "$$lang.po "; done)
 
@@ -101,7 +101,6 @@
 install-data: install-data- USE_NLS@
 install-data-no: all
 install-data-yes: all
-	$(mkdir_p) $(DESTDIR)$(itlocaledir)
 	linguas="$(USE_LINGUAS)"; \
 	for lang in $$linguas; do \
 	  dir=$(DESTDIR)$(itlocaledir)/$$lang/LC_MESSAGES; \

Modified: trunk/src/main-window.c
==============================================================================
--- trunk/src/main-window.c	(original)
+++ trunk/src/main-window.c	Wed Aug 27 19:39:55 2008
@@ -338,6 +338,7 @@
 	guint i;
 	GtkTreeIter iter;
 	const DiaryLinkType *link_type;
+	GtkSpell *gtkspell;
 
 	/* Update the date label */
 	gtk_calendar_get_date (calendar, &year, &month, &day);
@@ -369,6 +370,10 @@
 
 	g_free (entry_text);
 
+	/* Ensure the spell-checking is updated */
+	gtkspell = gtkspell_get_from_text_view (diary->entry_view);
+	gtkspell_recheck_all (gtkspell);
+
 	/* List the entry's links */
 	gtk_list_store_clear (diary->links_store);
 	links = diary_storage_manager_get_entry_links (diary->storage_manager, year, month, day);



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