ayttm-commits
[Top][All Lists]
Advanced

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

[Ayttm-commits] CVS: ayttm/src chat_room.c,1.14,1.15 chat_window.c,1.15


From: Colin Leroy <address@hidden>
Subject: [Ayttm-commits] CVS: ayttm/src chat_room.c,1.14,1.15 chat_window.c,1.15,1.16 prefs.c,1.10,1.11
Date: Fri, 10 Jan 2003 16:58:21 -0500

Update of /cvsroot/ayttm/ayttm/src
In directory subversions:/tmp/cvs-serv21502/src

Modified Files:
        chat_room.c chat_window.c prefs.c 
Log Message:
s/dictionnary/dictionary


Index: chat_room.c
===================================================================
RCS file: /cvsroot/ayttm/ayttm/src/chat_room.c,v
retrieving revision 1.14
retrieving revision 1.15
diff -u -r1.14 -r1.15
--- chat_room.c 10 Jan 2003 16:38:20 -0000      1.14
+++ chat_room.c 10 Jan 2003 21:58:19 -0000      1.15
@@ -682,9 +682,9 @@
                {
                  if(!gtkspell_running())
                    {
-                      if (cGetLocalPref("spell_dictionnary") && 
strlen(cGetLocalPref("spell_dictionnary"))) { 
+                      if (cGetLocalPref("spell_dictionary") && 
strlen(cGetLocalPref("spell_dictionary"))) { 
                         gchar *ispell_cmd[] = { "ispell", "-a", "-d", 
"francais", NULL };
-                        ispell_cmd[3]=cGetLocalPref("spell_dictionnary");
+                        ispell_cmd[3]=cGetLocalPref("spell_dictionary");
                         eb_debug(DBG_CORE, "Starting ispell with dict %s\n", 
ispell_cmd[3]);
                         gtkspell_start(NULL, ispell_cmd);
                       } else {

Index: chat_window.c
===================================================================
RCS file: /cvsroot/ayttm/ayttm/src/chat_window.c,v
retrieving revision 1.15
retrieving revision 1.16
diff -u -r1.15 -r1.16
--- chat_window.c       10 Jan 2003 16:38:20 -0000      1.15
+++ chat_window.c       10 Jan 2003 21:58:19 -0000      1.16
@@ -1374,9 +1374,9 @@
        {
          if(!gtkspell_running())
            {
-             if (cGetLocalPref("spell_dictionnary") && 
strlen(cGetLocalPref("spell_dictionnary"))) { 
+             if (cGetLocalPref("spell_dictionary") && 
strlen(cGetLocalPref("spell_dictionary"))) { 
                gchar *ispell_cmd[] = { "ispell", "-a", "-d", "francais", NULL 
};
-               ispell_cmd[3]=cGetLocalPref("spell_dictionnary");
+               ispell_cmd[3]=cGetLocalPref("spell_dictionary");
                eb_debug(DBG_CORE, "Starting ispell with dict %s\n", 
ispell_cmd[3]);
                gtkspell_start(NULL, ispell_cmd);
               } else {

Index: prefs.c
===================================================================
RCS file: /cvsroot/ayttm/ayttm/src/prefs.c,v
retrieving revision 1.10
retrieving revision 1.11
diff -u -r1.10 -r1.11
--- prefs.c     10 Jan 2003 16:38:20 -0000      1.10
+++ prefs.c     10 Jan 2003 21:58:19 -0000      1.11
@@ -223,7 +223,7 @@
 static GtkWidget * length_contact_window_entry = NULL;
 static GtkWidget * font_size_entry = NULL;
 static GtkWidget * alternate_browser_entry = NULL;
-static GtkWidget * dictionnary_entry = NULL;
+static GtkWidget * dictionary_entry = NULL;
 static const gint length_contact_window_def = 256;
 static const gint width_contact_window_def = 150;
 #ifdef HAVE_LIBXFT
@@ -302,22 +302,22 @@
     do_applet_show_on_startup_old = do_applet_show_on_startup ;
 #ifdef HAVE_ISPELL
     hbox = gtk_hbox_new(FALSE, 0);
-    dictionnary_entry = gtk_entry_new();
+    dictionary_entry = gtk_entry_new();
 
-    if (cGetLocalPref("spell_dictionnary")) {
-       gtk_entry_set_text(GTK_ENTRY(dictionnary_entry), 
cGetLocalPref("spell_dictionnary"));
+    if (cGetLocalPref("spell_dictionary")) {
+       gtk_entry_set_text(GTK_ENTRY(dictionary_entry), 
cGetLocalPref("spell_dictionary"));
     } else {
-       gtk_entry_set_text(GTK_ENTRY(dictionnary_entry), "");
+       gtk_entry_set_text(GTK_ENTRY(dictionary_entry), "");
     }
     do_spell_checking_old = do_spell_checking;
-    brbutton = eb_button(_("Use spell checking - Dictionnary:"), 
&do_spell_checking, hbox);
-    gtk_box_pack_start(GTK_BOX(hbox), dictionnary_entry, TRUE, TRUE, 10);
-    gtk_widget_show(dictionnary_entry);
+    brbutton = eb_button(_("Use spell checking - Dictionary:"), 
&do_spell_checking, hbox);
+    gtk_box_pack_start(GTK_BOX(hbox), dictionary_entry, TRUE, TRUE, 10);
+    gtk_widget_show(dictionary_entry);
     gtk_box_pack_start(GTK_BOX(vbox), hbox, FALSE, FALSE, 0);
     gtk_widget_show(hbox);
     if(do_spell_checking == 0)
     {
-       gtk_widget_set_sensitive(dictionnary_entry, FALSE);
+       gtk_widget_set_sensitive(dictionary_entry, FALSE);
     }
     gtk_signal_connect(GTK_OBJECT(brbutton), "clicked",
            GTK_SIGNAL_FUNC(set_use_spell), (gpointer)brbutton);
@@ -379,10 +379,10 @@
     do_applet_show_on_startup = do_applet_show_on_startup_old;
 #ifdef HAVE_ISPELL
     do_spell_checking = do_spell_checking_old ;
-    if(cGetLocalPref("spell_dictionnary"))
-           gtk_entry_set_text(GTK_ENTRY(dictionnary_entry), 
cGetLocalPref("spell_dictionnary"));
+    if(cGetLocalPref("spell_dictionary"))
+           gtk_entry_set_text(GTK_ENTRY(dictionary_entry), 
cGetLocalPref("spell_dictionary"));
     else
-           gtk_entry_set_text(GTK_ENTRY(dictionnary_entry), "");
+           gtk_entry_set_text(GTK_ENTRY(dictionary_entry), "");
 #endif
 
     do_noautoresize = do_noautoresize ;
@@ -408,18 +408,18 @@
     fprintf(fp,"do_spell_checking=%d\n", do_spell_checking) ;
     if (do_spell_checking) {
            char *oldspell, *newspell;
-           newspell = (dictionnary_entry != NULL && 
strlen(gtk_entry_get_text(GTK_ENTRY(dictionnary_entry))))
-                           
?gtk_entry_get_text(GTK_ENTRY(dictionnary_entry)):"";
-           oldspell = (cGetLocalPref("spell_dictionnary") && 
strlen(cGetLocalPref("spell_dictionnary")))
-                           ?cGetLocalPref("spell_dictionnary"):"";
+           newspell = (dictionary_entry != NULL && 
strlen(gtk_entry_get_text(GTK_ENTRY(dictionary_entry))))
+                           ?gtk_entry_get_text(GTK_ENTRY(dictionary_entry)):"";
+           oldspell = (cGetLocalPref("spell_dictionary") && 
strlen(cGetLocalPref("spell_dictionary")))
+                           ?cGetLocalPref("spell_dictionary"):"";
            if(strcmp(newspell, oldspell)) {
                gtkspell_stop();
            }
     }
-    if (dictionnary_entry!=NULL)
-        cSetLocalPref("spell_dictionnary", 
gtk_entry_get_text(GTK_ENTRY(dictionnary_entry)));
-    if (strlen(cGetLocalPref("spell_dictionnary")) > 0) {
-       fprintf(fp,"spell_dictionnary=%s\n", 
cGetLocalPref("spell_dictionnary"));
+    if (dictionary_entry!=NULL)
+        cSetLocalPref("spell_dictionary", 
gtk_entry_get_text(GTK_ENTRY(dictionary_entry)));
+    if (strlen(cGetLocalPref("spell_dictionary")) > 0) {
+       fprintf(fp,"spell_dictionary=%s\n", cGetLocalPref("spell_dictionary"));
     }
 #endif
     fprintf(fp,"do_noautoresize=%d\n", do_noautoresize) ;
@@ -448,11 +448,11 @@
 {
      if(do_spell_checking == 0)
      {
-         gtk_widget_set_sensitive(dictionnary_entry, FALSE);
+         gtk_widget_set_sensitive(dictionary_entry, FALSE);
      }
      else
      {
-         gtk_widget_set_sensitive(dictionnary_entry, TRUE);
+         gtk_widget_set_sensitive(dictionary_entry, TRUE);
      }
 }
 #endif
@@ -462,9 +462,9 @@
        if(alternate_browser_entry==NULL) return;
        cSetLocalPref("alternate_browser", 
gtk_entry_get_text(GTK_ENTRY(alternate_browser_entry)));
 #ifdef HAVE_ISPELL
-       cSetLocalPref("spell_dictionnary", 
gtk_entry_get_text(GTK_ENTRY(dictionnary_entry)));
-       gtk_widget_destroy(dictionnary_entry);
-       dictionnary_entry = NULL;
+       cSetLocalPref("spell_dictionary", 
gtk_entry_get_text(GTK_ENTRY(dictionary_entry)));
+       gtk_widget_destroy(dictionary_entry);
+       dictionary_entry = NULL;
 #endif
        gtk_widget_destroy(length_contact_window_entry);
        gtk_widget_destroy(alternate_browser_entry);





reply via email to

[Prev in Thread] Current Thread [Next in Thread]