From 80063aeef779a4398ae4ff687c658e9291e8ab35 Mon Sep 17 00:00:00 2001 From: Simon Tatham Date: Tue, 15 Oct 2002 17:24:13 +0000 Subject: [PATCH] Scrollbar can now be configured to go on the left (although the current configuration mechanism doesn't support it). [originally from svn r2072] --- unix/pterm.c | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/unix/pterm.c b/unix/pterm.c index 8a43166b..6406c925 100644 --- a/unix/pterm.c +++ b/unix/pterm.c @@ -1569,9 +1569,13 @@ int main(int argc, char **argv) inst->sbar = gtk_vscrollbar_new(inst->sbar_adjust); } inst->hbox = GTK_BOX(gtk_hbox_new(FALSE, 0)); + if (cfg.scrollbar) { + if (cfg.scrollbar_on_left) + gtk_box_pack_start(inst->hbox, inst->sbar, FALSE, FALSE, 0); + else + gtk_box_pack_end(inst->hbox, inst->sbar, FALSE, FALSE, 0); + } gtk_box_pack_start(inst->hbox, inst->area, TRUE, TRUE, 0); - if (cfg.scrollbar) - gtk_box_pack_start(inst->hbox, inst->sbar, FALSE, FALSE, 0); gtk_container_add(GTK_CONTAINER(inst->window), GTK_WIDGET(inst->hbox));