Re: [msysGit] [PATCH] git-gui: make sure placement of panedwindow sashes happens correctly on startup

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Am 01.05.2010 20:29, schrieb Adam Spiers:
diff --git a/git-gui.sh b/git-gui.sh
index 8996d2d..9585d7f 100755
--- a/git-gui.sh
+++ b/git-gui.sh
@@ -3466,6 +3466,7 @@ $main_status show [mc "Initializing..."]
  catch {
  set gm $repo_config(gui.geometry)
  wm geometry . [lindex $gm 0]
+update
  if {$use_ttk} {
  	.vpane sashpos 0 [lindex $gm 1]
  	.vpane.files sashpos 0 [lindex $gm 2]

This flashes git-gui briefly with the default size before it resizes to the final size on startup. Not that it matters a lot, because the incorrect sash position is much more annoying than this flashing.

But I do wonder why gitk does not have the same problem with its sashes...

-- Hannes
--
To unsubscribe from this list: send the line "unsubscribe git" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at  http://vger.kernel.org/majordomo-info.html

[Index of Archives]     [Linux Kernel Development]     [Gcc Help]     [IETF Annouce]     [DCCP]     [Netdev]     [Networking]     [Security]     [V4L]     [Bugtraq]     [Yosemite]     [MIPS Linux]     [ARM Linux]     [Linux Security]     [Linux RAID]     [Linux SCSI]     [Fedora Users]