[epiphany/wip/bookmarks: 17/17] properties-grid: Save data in finalize instead of destroy
- From: Iulian Radu <iulianradu src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [epiphany/wip/bookmarks: 17/17] properties-grid: Save data in finalize instead of destroy
- Date: Sun, 11 Sep 2016 16:59:49 +0000 (UTC)
commit 0d5a61c23b00f1085afd2dd97a5083c2ee60d417
Author: Iulian Radu <iulian radu67 gmail com>
Date: Thu Sep 1 20:57:03 2016 +0300
properties-grid: Save data in finalize instead of destroy
src/ephy-bookmark-properties-grid.c | 11 ++++++-----
1 files changed, 6 insertions(+), 5 deletions(-)
---
diff --git a/src/ephy-bookmark-properties-grid.c b/src/ephy-bookmark-properties-grid.c
index f91d52a..7c9ab76 100644
--- a/src/ephy-bookmark-properties-grid.c
+++ b/src/ephy-bookmark-properties-grid.c
@@ -350,16 +350,18 @@ ephy_bookmark_properties_grid_constructed (GObject *object)
self,
G_CONNECT_SWAPPED);
gtk_widget_show_all (self->tags_box);
+
+ G_OBJECT_CLASS (ephy_bookmark_properties_grid_parent_class)->constructed (object);
}
static void
-ephy_bookmark_properties_grid_destroy (GtkWidget *widget)
+ephy_bookmark_properties_grid_finalize (GObject *object)
{
- EphyBookmarkPropertiesGrid *self = EPHY_BOOKMARK_PROPERTIES_GRID (widget);
+ EphyBookmarkPropertiesGrid *self = EPHY_BOOKMARK_PROPERTIES_GRID (object);
ephy_bookmarks_manager_save_to_file_async (self->manager, NULL, NULL, NULL);
- GTK_WIDGET_CLASS (ephy_bookmark_properties_grid_parent_class)->destroy (widget);
+ G_OBJECT_CLASS (ephy_bookmark_properties_grid_parent_class)->finalize (object);
}
static void
@@ -370,8 +372,7 @@ ephy_bookmark_properties_grid_class_init (EphyBookmarkPropertiesGridClass *klass
object_class->set_property = ephy_bookmark_properties_grid_set_property;
object_class->constructed = ephy_bookmark_properties_grid_constructed;
-
- widget_class->destroy = ephy_bookmark_properties_grid_destroy;
+ object_class->finalize = ephy_bookmark_properties_grid_finalize;
obj_properties[PROP_BOOKMARK] =
g_param_spec_object ("bookmark",
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]