Do not add close button to non-removable panes

This commit is contained in:
Yevgen Muntyan 2008-01-02 14:19:24 -06:00
parent 895ee5ebed
commit a8e51b3036

View File

@ -586,6 +586,8 @@ create_frame_widget (MooPane *pane,
g_signal_connect_swapped (pane->close_button, "clicked",
G_CALLBACK (close_button_clicked),
pane);
if (!pane->removable)
gtk_widget_hide (pane->close_button);
hide_button = create_button (pane, toolbar,
_("Hide pane"), FALSE, 0,