[gnome-software/wip/temp/ubuntu-xenial-rebased: 91/326] Don't hold reference to spell checker



commit 84d723096aa838e44eaeb32a030ffc8151c38400
Author: William Hua <william hua canonical com>
Date:   Thu Feb 11 17:09:24 2016 -0500

    Don't hold reference to spell checker

 src/gs-review-dialog.c |    4 +---
 1 files changed, 1 insertions(+), 3 deletions(-)
---
diff --git a/src/gs-review-dialog.c b/src/gs-review-dialog.c
index 5f18926..c38113e 100644
--- a/src/gs-review-dialog.c
+++ b/src/gs-review-dialog.c
@@ -43,7 +43,6 @@ struct _GsReviewDialog
        GtkWidget       *summary_entry;
        GtkWidget       *post_button;
        GtkWidget       *text_view;
-       GtkSpellChecker *spell_checker;
        guint            timer_id;
 };
 
@@ -176,8 +175,7 @@ gs_review_dialog_init (GsReviewDialog *dialog)
        gs_star_widget_set_icon_size (GS_STAR_WIDGET (dialog->star), 32);
 
        /* allow checking spelling */
-       dialog->spell_checker = gtk_spell_checker_new ();
-       gtk_spell_checker_attach (dialog->spell_checker,
+       gtk_spell_checker_attach (gtk_spell_checker_new (),
                                  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]