[epiphany/wip/bookmarks: 288/315] 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: 288/315] properties-grid: Save data in finalize instead of destroy
- Date: Tue, 27 Sep 2016 17:38:26 +0000 (UTC)
commit 2e4dd41dfdf877c3c31717eee95660b1502a0c9d
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]