[gnome-software] trivial: GtkSpellChecker is a GObject, not a GtkWidget



commit fcf6da25c94405f4bc05b1953fce6b23a35198e1
Author: Robert Ancell <robert ancell canonical com>
Date:   Thu Feb 11 11:48:45 2016 +1300

    trivial: GtkSpellChecker is a GObject, not a GtkWidget

 src/gs-review-dialog.c |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)
---
diff --git a/src/gs-review-dialog.c b/src/gs-review-dialog.c
index e86f0df..f501648 100644
--- a/src/gs-review-dialog.c
+++ b/src/gs-review-dialog.c
@@ -165,7 +165,7 @@ gs_review_row_dispose (GObject *object)
        GsReviewDialog *dialog = GS_REVIEW_DIALOG (object);
        if (dialog->timer_id > 0)
                g_source_remove (dialog->timer_id);
-       gtk_widget_destroy (GTK_WIDGET (dialog->spell_checker));
+       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]