aboutsummaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorXan Lopez <xan@igalia.com>2012-03-07 19:03:31 +0800
committerXan Lopez <xan@igalia.com>2012-03-07 19:03:31 +0800
commit131eacfd1819fe6c10ec8df903a3eaca60443cce (patch)
tree6eac51b4a53ec1d07911ca811d56329fd2e8daf8 /src
parent9b526e4522ba6324590c6d5a5fcb4365900ac8b6 (diff)
downloadgsoc2013-epiphany-131eacfd1819fe6c10ec8df903a3eaca60443cce.tar
gsoc2013-epiphany-131eacfd1819fe6c10ec8df903a3eaca60443cce.tar.gz
gsoc2013-epiphany-131eacfd1819fe6c10ec8df903a3eaca60443cce.tar.bz2
gsoc2013-epiphany-131eacfd1819fe6c10ec8df903a3eaca60443cce.tar.lz
gsoc2013-epiphany-131eacfd1819fe6c10ec8df903a3eaca60443cce.tar.xz
gsoc2013-epiphany-131eacfd1819fe6c10ec8df903a3eaca60443cce.tar.zst
gsoc2013-epiphany-131eacfd1819fe6c10ec8df903a3eaca60443cce.zip
ephy-history-window: use the constructed method
Instead of doing extra stuff in _new.
Diffstat (limited to 'src')
-rw-r--r--src/ephy-history-window.c10
1 files changed, 7 insertions, 3 deletions
diff --git a/src/ephy-history-window.c b/src/ephy-history-window.c
index 4ba45cd9e..461a06450 100644
--- a/src/ephy-history-window.c
+++ b/src/ephy-history-window.c
@@ -55,6 +55,7 @@ static const GtkTargetEntry page_drag_types [] =
{ EPHY_DND_TEXT_TYPE, 0, 2 }
};
+static void ephy_history_window_constructed (GObject *object);
static void ephy_history_window_class_init (EphyHistoryWindowClass *klass);
static void ephy_history_window_init (EphyHistoryWindow *editor);
static void ephy_history_window_finalize (GObject *object);
@@ -524,6 +525,7 @@ ephy_history_window_class_init (EphyHistoryWindowClass *klass)
object_class->set_property = ephy_history_window_set_property;
object_class->get_property = ephy_history_window_get_property;
object_class->dispose = ephy_history_window_dispose;
+ object_class->constructed = ephy_history_window_constructed;
widget_class->show = ephy_history_window_show;
@@ -1099,7 +1101,7 @@ on_visit_url_cb (EphyHistoryService *service,
}
static void
-ephy_history_window_construct (EphyHistoryWindow *editor)
+ephy_history_window_constructed (GObject *object)
{
GtkTreeViewColumn *col;
GtkTreeSelection *selection;
@@ -1111,6 +1113,7 @@ ephy_history_window_construct (EphyHistoryWindow *editor)
GtkUIManager *ui_merge;
GtkActionGroup *action_group;
GtkAction *action;
+ EphyHistoryWindow *editor = EPHY_HISTORY_WINDOW (object);
ephy_gui_ensure_window_group (GTK_WINDOW (editor));
@@ -1284,6 +1287,9 @@ ephy_history_window_construct (EphyHistoryWindow *editor)
g_signal_connect_after (editor->priv->history_service,
"visit-url", G_CALLBACK (on_visit_url_cb),
editor);
+
+ if (G_OBJECT_CLASS (ephy_history_window_parent_class)->constructed)
+ G_OBJECT_CLASS (ephy_history_window_parent_class)->constructed (object);
}
void
@@ -1319,8 +1325,6 @@ ephy_history_window_new (EphyHistoryService *history_service)
"history-service", history_service,
NULL);
- ephy_history_window_construct (editor);
-
return GTK_WIDGET (editor);
}