[gnome-software/wip/temp/ubuntu-xenial-rebased: 94/329] 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/329] Don't hold reference to spell checker
- Date: Fri, 29 Apr 2016 13:53:14 +0000 (UTC)
commit ddd3251d45fd3bc6a03100d269e9e57331590c3c
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]