3887
connect_notebook_signals (GeditWindow *window,
3888
GtkWidget *notebook)
3890
g_signal_connect (notebook,
3892
G_CALLBACK (notebook_switch_page),
3894
g_signal_connect (notebook,
3896
G_CALLBACK (notebook_tab_added),
3898
g_signal_connect (notebook,
3900
G_CALLBACK (notebook_tab_removed),
3902
g_signal_connect (notebook,
3904
G_CALLBACK (notebook_tabs_reordered),
3906
g_signal_connect (notebook,
3908
G_CALLBACK (notebook_tab_detached),
3910
g_signal_connect (notebook,
3911
"tab-close-request",
3912
G_CALLBACK (notebook_tab_close_request),
3914
g_signal_connect (notebook,
3915
"button-press-event",
3916
G_CALLBACK (notebook_button_press_event),
3918
g_signal_connect (notebook,
3920
G_CALLBACK (notebook_popup_menu),
3925
add_notebook (GeditWindow *window,
3926
GtkWidget *notebook)
3928
gtk_paned_pack1 (GTK_PANED (window->priv->vpaned),
3933
gtk_widget_show (notebook);
3935
connect_notebook_signals (window, notebook);
3887
3939
gedit_window_init (GeditWindow *window)
3889
3941
GtkWidget *main_box;
3933
3985
gedit_debug_message (DEBUG_WINDOW, "Create gedit notebook");
3934
3986
window->priv->notebook = gedit_notebook_new ();
3935
gtk_paned_pack1 (GTK_PANED (window->priv->vpaned),
3936
window->priv->notebook,
3939
gtk_widget_show (window->priv->notebook);
3987
add_notebook (window, window->priv->notebook);
3941
3989
/* side and bottom panels */
3942
3990
create_side_panel (window);
3982
4030
gtk_target_list_add_uri_targets (tl, TARGET_URI_LIST);
3984
/* Connect signals */
3985
g_signal_connect (window->priv->notebook,
3987
G_CALLBACK (notebook_switch_page),
3989
g_signal_connect (window->priv->notebook,
3991
G_CALLBACK (notebook_tab_added),
3993
g_signal_connect (window->priv->notebook,
3995
G_CALLBACK (notebook_tab_removed),
3997
g_signal_connect (window->priv->notebook,
3999
G_CALLBACK (notebook_tabs_reordered),
4001
g_signal_connect (window->priv->notebook,
4003
G_CALLBACK (notebook_tab_detached),
4005
g_signal_connect (window->priv->notebook,
4006
"tab_close_request",
4007
G_CALLBACK (notebook_tab_close_request),
4009
g_signal_connect (window->priv->notebook,
4010
"button-press-event",
4011
G_CALLBACK (notebook_button_press_event),
4013
g_signal_connect (window->priv->notebook,
4015
G_CALLBACK (notebook_popup_menu),
4018
4032
/* connect instead of override, so that we can
4019
4033
* share the cb code with the view */
4020
4034
g_signal_connect (window,