[gnome-software/wip/rancell/reviews] Don't hold reference to spell checker
- From: William Hua <williamhua src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gnome-software/wip/rancell/reviews] Don't hold reference to spell checker
- Date: Thu, 11 Feb 2016 22:16:46 +0000 (UTC)
commit 2a3d6baf79151838e38df69db40c975761fdcb00
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 | 5 +----
1 files changed, 1 insertions(+), 4 deletions(-)
---
diff --git a/src/gs-review-dialog.c b/src/gs-review-dialog.c
index e0e8a5f..76fc415 100644
--- a/src/gs-review-dialog.c
+++ b/src/gs-review-dialog.c
@@ -42,7 +42,6 @@ struct _GsReviewDialog
GtkWidget *summary_entry;
GtkWidget *post_button;
GtkWidget *text_view;
- GtkSpellChecker *spell_checker;
guint timer_id;
};
@@ -137,8 +136,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 */
@@ -165,7 +163,6 @@ gs_review_row_dispose (GObject *object)
GsReviewDialog *dialog = GS_REVIEW_DIALOG (object);
if (dialog->timer_id > 0)
g_source_remove (dialog->timer_id);
- g_clear_object (&dialog->spell_checker);
G_OBJECT_CLASS (gs_review_dialog_parent_class)->dispose (object);
}
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]