[gspell] text-view: add context menu items more to the top
- From: Sébastien Wilmet <swilmet src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gspell] text-view: add context menu items more to the top
- Date: Mon, 16 May 2016 13:29:33 +0000 (UTC)
commit b3b8fd68285c0a7a9dbff59992144970f5b69079
Author: Sébastien Wilmet <swilmet gnome org>
Date: Mon May 16 15:26:16 2016 +0200
text-view: add context menu items more to the top
It's better that the suggestion sub-menu is the first element in the
context menu.
GtkSourceView adds Undo/Redo, for example. Now Undo/Redo will be below
spell checking stuff.
gspell/gspell-text-view.c | 5 ++++-
1 files changed, 4 insertions(+), 1 deletions(-)
---
diff --git a/gspell/gspell-text-view.c b/gspell/gspell-text-view.c
index b9ba031..4f45cea 100644
--- a/gspell/gspell-text-view.c
+++ b/gspell/gspell-text-view.c
@@ -293,11 +293,14 @@ set_view (GspellTextView *gspell_view,
gspell_view,
0);
+ /* G_CONNECT_AFTER, so when menu items are prepended, they have more
+ * chances to be the first in the menu.
+ */
g_signal_connect_object (priv->view,
"populate-popup",
G_CALLBACK (populate_popup_cb),
gspell_view,
- 0);
+ G_CONNECT_AFTER);
g_object_notify (G_OBJECT (gspell_view), "view");
}
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]