From 4dc4f9c452e22fd4e424eaf3e5f44d5b659b6abc Mon Sep 17 00:00:00 2001 From: simon 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). git-svn-id: svn://svn.tartarus.org/sgt/putty@2072 cda61777-01e9-0310-a592-d414129be87e --- 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)); -- 2.11.0