{"thread":{"id":"12298","subject":"[PATCH] gitk: adding a horizontal scrollbar to the diff window.","startedAt":"2008-02-24T20:08:42Z","lastAt":"2008-02-24T20:08:42Z","messageCount":1,"participants":["Stefan-W. Hahn"],"isPatch":true,"patchVersion":1,"patchTotal":null},"messages":[{"id":"69814","messageId":"20080224200842.GA8052@scotty.home","threadId":"12298","inReplyTo":null,"subject":"[PATCH] gitk: adding a horizontal scrollbar to the diff window.","fromName":"Stefan-W. Hahn","fromEmail":"stefan.hahn@s-hahn.de","sentAt":"2008-02-24T20:08:42Z","receivedAt":"2008-02-24T20:08:42Z","isPatch":true,"sender":{"key":"stefan.hahn@s-hahn.de","avatar":null},"body":"This patch makes the \"unvisible horizontal scroll\" feature of\nthe diff window visible by adding a horizontal scrollbar at the\nbottom of that window.\n\nSigned-off-by: Stefan-W. Hahn <stefan.hahn@s-hahn.de>\n---\n gitk-git/gitk |    9 ++++++---\n 1 files changed, 6 insertions(+), 3 deletions(-)\n\ndiff --git a/gitk-git/gitk b/gitk-git/gitk\nindex f1f21e9..a7087a9 100644\n--- a/gitk-git/gitk\n+++ b/gitk-git/gitk\n@@ -857,14 +857,17 @@ proc makewindow {} {\n     set ctext .bleft.ctext\n     text $ctext -background $bgcolor -foreground $fgcolor \\\n \t-state disabled -font textfont \\\n+\t-xscrollcommand \".bleft.xsb set\" \\\n \t-yscrollcommand scrolltext -wrap none\n     if {$have_tk85} {\n \t$ctext conf -tabstyle wordprocessor\n     }\n-    scrollbar .bleft.sb -command \"$ctext yview\"\n+    scrollbar .bleft.ysb -command \"$ctext yview\"\n+    scrollbar .bleft.xsb -command \"$ctext xview\" -orient horizontal\n     pack .bleft.top -side top -fill x\n     pack .bleft.mid -side top -fill x\n-    pack .bleft.sb -side right -fill y\n+    pack .bleft.ysb -side right -fill y\n+    pack .bleft.xsb -side bottom -fill x\n     pack $ctext -side left -fill both -expand 1\n     lappend bglist $ctext\n     lappend fglist $ctext\n@@ -5604,7 +5607,7 @@ proc searchmarkvisible {doall} {\n proc scrolltext {f0 f1} {\n     global searchstring\n \n-    .bleft.sb set $f0 $f1\n+    .bleft.ysb set $f0 $f1\n     if {$searchstring ne {}} {\n \tsearchmarkvisible 0\n     }\n-- \n1.5.4.2.198.g3f625\n\n\n-- \nStefan-W. Hahn                          It is easy to make things.\n/ mailto:stefan.hahn@s-hahn.de /        It is hard to make things simple.\t\t\t\n\nPlease note that according to the German law on data retention,\ninformation on every electronic information exchange with me is\nretained for a period of six months.\nBundesgesetzblatt:\nhttp://www.bgblportal.de/BGBL/bgbl1f/bgbl107s3198.pdf\n"}]}