[gnome-software/wip/temp/ubuntu-xenial-rebased: 94/326] Revert "Don't hold reference to spell checker"
- From: Iain Lane <iainl src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gnome-software/wip/temp/ubuntu-xenial-rebased: 94/326] Revert "Don't hold reference to spell checker"
- Date: Fri, 29 Apr 2016 09:55:13 +0000 (UTC)
commit 8b3f56fb43d12c114052b6aa365efa095bb7692b
Author: William Hua <william hua canonical com>
Date: Thu Feb 11 17:26:03 2016 -0500
Revert "Don't hold reference to spell checker"
This reverts commit 2a3d6baf79151838e38df69db40c975761fdcb00.
src/gs-review-dialog.c | 4 +++-
1 files changed, 3 insertions(+), 1 deletions(-)
---
diff --git a/src/gs-review-dialog.c b/src/gs-review-dialog.c
index c38113e..5f18926 100644
--- a/src/gs-review-dialog.c
+++ b/src/gs-review-dialog.c
@@ -43,6 +43,7 @@ struct _GsReviewDialog
GtkWidget *summary_entry;
GtkWidget *post_button;
GtkWidget *text_view;
+ GtkSpellChecker *spell_checker;
guint timer_id;
};
@@ -175,7 +176,8 @@ gs_review_dialog_init (GsReviewDialog *dialog)
gs_star_widget_set_icon_size (GS_STAR_WIDGET (dialog->star), 32);
/* allow checking spelling */
- gtk_spell_checker_attach (gtk_spell_checker_new (),
+ dialog->spell_checker = gtk_spell_checker_new ();
+ gtk_spell_checker_attach (dialog->spell_checker,
GTK_TEXT_VIEW (dialog->text_view));
/* require the user to spend at least 30 seconds on writing a review */
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]