xed-window: Stop using deprecated (v/h)box

This commit is contained in:
JosephMcc 2016-12-27 00:17:15 -08:00
parent c78bf46d38
commit 5d258f1e67
1 changed files with 20 additions and 23 deletions

View File

@ -3391,12 +3391,11 @@ xed_window_init (XedWindow *window)
/* Add the main area */
xed_debug_message (DEBUG_WINDOW, "Add main area");
window->priv->hpaned = gtk_hpaned_new ();
window->priv->hpaned = gtk_paned_new (GTK_ORIENTATION_HORIZONTAL);
gtk_box_pack_start (GTK_BOX (main_box), window->priv->hpaned, TRUE, TRUE, 0);
window->priv->vpaned = gtk_vpaned_new ();
gtk_paned_pack2 (GTK_PANED(window->priv->hpaned), window->priv->vpaned, TRUE,
FALSE);
window->priv->vpaned = gtk_paned_new (GTK_ORIENTATION_VERTICAL);
gtk_paned_pack2 (GTK_PANED (window->priv->hpaned), window->priv->vpaned, TRUE, FALSE);
xed_debug_message (DEBUG_WINDOW, "Create xed notebook");
window->priv->notebook = xed_notebook_new ();
@ -3434,12 +3433,10 @@ xed_window_init (XedWindow *window)
gtk_target_list_add_uri_targets (tl, TARGET_URI_LIST);
/* connect instead of override, so that we can
* share the cb code with the view */
/* connect instead of override, so that we can share the cb code with the view */
g_signal_connect (window, "drag_data_received", G_CALLBACK (drag_data_received_cb), NULL);
/* we can get the clipboard only after the widget
* is realized */
/* we can get the clipboard only after the widget is realized */
g_signal_connect (window, "realize", G_CALLBACK (window_realized), NULL);
g_signal_connect (window, "unrealize", G_CALLBACK (window_unrealized), NULL);