From 4635766fc720dda109e680178e5dc4b284eeee0f Mon Sep 17 00:00:00 2001 From: JosephMcc Date: Tue, 27 Dec 2016 01:30:36 -0800 Subject: [PATCH] xed-panel: Simplify panel building a bit Now that the panel headers are removed, we no longer need separate functions for creating panels of different orientations --- xed/xed-panel.c | 21 +-------------------- 1 file changed, 1 insertion(+), 20 deletions(-) diff --git a/xed/xed-panel.c b/xed/xed-panel.c index 90d9a7f..d6c4dcb 100644 --- a/xed/xed-panel.c +++ b/xed/xed-panel.c @@ -408,18 +408,6 @@ build_notebook_for_panel (XedPanel *panel) gtk_widget_show (GTK_WIDGET (panel->priv->notebook)); } -static void -build_horizontal_panel (XedPanel *panel) -{ - gtk_box_pack_start (GTK_BOX (panel->priv->main_box), panel->priv->notebook, TRUE, TRUE, 0); -} - -static void -build_vertical_panel (XedPanel *panel) -{ - gtk_box_pack_start (GTK_BOX (panel->priv->main_box), panel->priv->notebook, TRUE, TRUE, 0); -} - static GObject * xed_panel_constructor (GType type, guint n_construct_properties, @@ -435,14 +423,7 @@ xed_panel_constructor (GType type, XedPanel *panel = XED_PANEL (obj); build_notebook_for_panel (panel); - if (panel->priv->orientation == GTK_ORIENTATION_HORIZONTAL) - { - build_horizontal_panel (panel); - } - else - { - build_vertical_panel (panel); - } + gtk_box_pack_start (GTK_BOX (panel->priv->main_box), panel->priv->notebook, TRUE, TRUE, 0); return obj; }