From a8e51b3036f7fadc946fcb853cd88fd72dc876b7 Mon Sep 17 00:00:00 2001 From: Yevgen Muntyan <17531749+muntyan@users.noreply.github.com> Date: Wed, 2 Jan 2008 14:19:24 -0600 Subject: [PATCH] Do not add close button to non-removable panes --- moo/mooutils/moopane.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/moo/mooutils/moopane.c b/moo/mooutils/moopane.c index aa0fc190..0a18a846 100644 --- a/moo/mooutils/moopane.c +++ b/moo/mooutils/moopane.c @@ -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,