xed-window: Stop using deprecated (v/h)box
This commit is contained in:
parent
c78bf46d38
commit
5d258f1e67
|
@ -3391,12 +3391,11 @@ xed_window_init (XedWindow *window)
|
||||||
|
|
||||||
/* Add the main area */
|
/* Add the main area */
|
||||||
xed_debug_message (DEBUG_WINDOW, "Add 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);
|
gtk_box_pack_start (GTK_BOX (main_box), window->priv->hpaned, TRUE, TRUE, 0);
|
||||||
|
|
||||||
window->priv->vpaned = gtk_vpaned_new ();
|
window->priv->vpaned = gtk_paned_new (GTK_ORIENTATION_VERTICAL);
|
||||||
gtk_paned_pack2 (GTK_PANED(window->priv->hpaned), window->priv->vpaned, TRUE,
|
gtk_paned_pack2 (GTK_PANED (window->priv->hpaned), window->priv->vpaned, TRUE, FALSE);
|
||||||
FALSE);
|
|
||||||
|
|
||||||
xed_debug_message (DEBUG_WINDOW, "Create xed notebook");
|
xed_debug_message (DEBUG_WINDOW, "Create xed notebook");
|
||||||
window->priv->notebook = xed_notebook_new ();
|
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);
|
gtk_target_list_add_uri_targets (tl, TARGET_URI_LIST);
|
||||||
|
|
||||||
/* connect instead of override, so that we can
|
/* connect instead of override, so that we can share the cb code with the view */
|
||||||
* share the cb code with the view */
|
|
||||||
g_signal_connect (window, "drag_data_received", G_CALLBACK (drag_data_received_cb), NULL);
|
g_signal_connect (window, "drag_data_received", G_CALLBACK (drag_data_received_cb), NULL);
|
||||||
|
|
||||||
/* we can get the clipboard only after the widget
|
/* we can get the clipboard only after the widget is realized */
|
||||||
* is realized */
|
|
||||||
g_signal_connect (window, "realize", G_CALLBACK (window_realized), NULL);
|
g_signal_connect (window, "realize", G_CALLBACK (window_realized), NULL);
|
||||||
g_signal_connect (window, "unrealize", G_CALLBACK (window_unrealized), NULL);
|
g_signal_connect (window, "unrealize", G_CALLBACK (window_unrealized), NULL);
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue