Commit 20e1ad60 authored by Paolo Borelli's avatar Paolo Borelli

typos

parent 63d25bb0
2006-01-07 Paolo Borelli <pborelli@katamail.com>
* gedit/gedit-document.c: fix typos.
* gedit/gtktextregion.[ch]: ditto.
2006-01-06 Paolo Borelli <pborelli@katamail.com>
* gedit/gedit-plugins-engine.[ch]
......@@ -44,7 +49,7 @@
* gedit/Makefile.am: compile gtktextregion.[ch]
* gedit/gtktextregion.[c]: new files
* gedit/gtktextregion.[ch]: new files
* gedit/gedit-document.c (gedit_document_finalize): destroy
to_search_region if needed
......
......@@ -165,9 +165,9 @@ G_DEFINE_TYPE(GeditDocument, gedit_document, GTK_TYPE_SOURCE_BUFFER)
GQuark
gedit_document_error_quark (void)
{
static GQuark quark;
static GQuark quark = NULL;
if (!quark)
if (G_UNLIKELY (quark == NULL))
quark = g_quark_from_static_string ("gedit_io_load_error");
return quark;
......@@ -336,7 +336,6 @@ gedit_document_set_property (GObject *object,
}
}
static void
emit_cursor_moved (GeditDocument *doc)
{
......@@ -1910,10 +1909,10 @@ _gedit_document_search_region (GeditDocument *doc,
search_region (doc, &start_search, &end_search);
/* remove the just highlighted region */
gtk_text_region_substract (doc->priv->to_search_region,
start,
end);
gtk_text_region_subtract (doc->priv->to_search_region,
start,
end);
gtk_text_region_clear_zero_length_subregions (
doc->priv->to_search_region);
}
......
......@@ -279,9 +279,9 @@ gtk_text_region_add (GtkTextRegion *region,
}
void
gtk_text_region_substract (GtkTextRegion *region,
const GtkTextIter *_start,
const GtkTextIter *_end)
gtk_text_region_subtract (GtkTextRegion *region,
const GtkTextIter *_start,
const GtkTextIter *_end)
{
GList *start_node, *end_node, *node;
GtkTextIter sr_start_iter, sr_end_iter;
......@@ -576,11 +576,11 @@ gtk_text_region_get_iterator (GtkTextRegion *region,
}
/* Returns TRUE if the iteration has more elements.
* In other words, returns TRUE if gtk_text_regione_iterator_has_next would
* In other words, returns TRUE if gtk_text_region_iterator_has_next would
* return a subregion rather than FALSE.
*/
gboolean
gtk_text_regione_iterator_has_next (GtkTextRegionIterator *iter)
gtk_text_region_iterator_has_next (GtkTextRegionIterator *iter)
{
GtkTextRegionIteratorReal *real;
......@@ -594,18 +594,18 @@ gtk_text_regione_iterator_has_next (GtkTextRegionIterator *iter)
/* Returns FALSE if iterator has no more elements otherwise returns TRUE and set start/end with the next subregion */
gboolean
gtk_text_regione_iterator_next (GtkTextRegionIterator *iter,
GtkTextIter *start,
GtkTextIter *end)
gtk_text_region_iterator_next (GtkTextRegionIterator *iter,
GtkTextIter *start,
GtkTextIter *end)
{
GtkTextRegionIteratorReal *real;
Subregion *sr;
g_return_val_if_fail (iter != NULL, FALSE);
real = (GtkTextRegionIteratorReal *)iter;
g_return_val_if_fail (check_iterator (real), FALSE);
if (real->subregions == NULL)
return FALSE;
......
......@@ -55,7 +55,7 @@ void gtk_text_region_add (GtkTextRegion *
const GtkTextIter *_start,
const GtkTextIter *_end);
void gtk_text_region_substract (GtkTextRegion *region,
void gtk_text_region_subtract (GtkTextRegion *region,
const GtkTextIter *_start,
const GtkTextIter *_end);
......@@ -79,10 +79,10 @@ gboolean gtk_text_region_get_iterator (GtkTextRegion
* In other words, returns TRUE if gtk_text_regione_iterator_has_next would
* return a subregion rather than FALSE.
*/
gboolean gtk_text_regione_iterator_has_next (GtkTextRegionIterator *iter);
gboolean gtk_text_region_iterator_has_next (GtkTextRegionIterator *iter);
/* Returns FALSE if iterator has no more elements otherwise returns TRUE and set start/end with the next subregion */
gboolean gtk_text_regione_iterator_next (GtkTextRegionIterator *iter,
gboolean gtk_text_region_iterator_next (GtkTextRegionIterator *iter,
GtkTextIter *start,
GtkTextIter *end);
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment