[gedit/wip/use-gsv-search: 8/15] Remove GeditDocument::search-highlight-updated signal
- From: Sébastien Wilmet <swilmet src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gedit/wip/use-gsv-search: 8/15] Remove GeditDocument::search-highlight-updated signal
- Date: Mon, 1 Jul 2013 09:33:59 +0000 (UTC)
commit 2bb88fc2c73e77f39b2e514324ee1c25997170a2
Author: Sébastien Wilmet <swilmet gnome org>
Date: Wed Jun 19 14:27:42 2013 +0200
Remove GeditDocument::search-highlight-updated signal
It was part of the API, is it a problem to remove the signal?
gedit/gedit-document.c | 15 ---------------
gedit/gedit-document.h | 5 -----
2 files changed, 0 insertions(+), 20 deletions(-)
---
diff --git a/gedit/gedit-document.c b/gedit/gedit-document.c
index 6855a89..71c36e2 100644
--- a/gedit/gedit-document.c
+++ b/gedit/gedit-document.c
@@ -175,7 +175,6 @@ enum {
SAVE,
SAVING,
SAVED,
- SEARCH_HIGHLIGHT_UPDATED,
LAST_SIGNAL
};
@@ -709,18 +708,6 @@ gedit_document_class_init (GeditDocumentClass *klass)
1,
G_TYPE_ERROR);
- document_signals[SEARCH_HIGHLIGHT_UPDATED] =
- g_signal_new ("search-highlight-updated",
- G_OBJECT_CLASS_TYPE (object_class),
- G_SIGNAL_RUN_LAST,
- G_STRUCT_OFFSET (GeditDocumentClass, search_highlight_updated),
- NULL, NULL,
- gedit_marshal_VOID__BOXED_BOXED,
- G_TYPE_NONE,
- 2,
- GTK_TYPE_TEXT_ITER | G_SIGNAL_TYPE_STATIC_SCOPE,
- GTK_TYPE_TEXT_ITER | G_SIGNAL_TYPE_STATIC_SCOPE);
-
g_type_class_add_private (object_class, sizeof (GeditDocumentPrivate));
}
@@ -2105,8 +2092,6 @@ to_search_region_range (GeditDocument *doc,
/* Notify views of the updated highlight region */
gtk_text_iter_backward_lines (start, doc->priv->num_of_lines_search_text);
gtk_text_iter_forward_lines (end, doc->priv->num_of_lines_search_text);
-
- g_signal_emit (doc, document_signals [SEARCH_HIGHLIGHT_UPDATED], 0, start, end);
}
/**
diff --git a/gedit/gedit-document.h b/gedit/gedit-document.h
index 9c2e98c..920a372 100644
--- a/gedit/gedit-document.h
+++ b/gedit/gedit-document.h
@@ -171,11 +171,6 @@ struct _GeditDocumentClass
void (* saved) (GeditDocument *document,
const GError *error);
-
- void (* search_highlight_updated)
- (GeditDocument *document,
- GtkTextIter *start,
- GtkTextIter *end);
};
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]