gnome-terminal r3152 - trunk/src



Author: chpe
Date: Thu Oct  9 14:11:43 2008
New Revision: 3152
URL: http://svn.gnome.org/viewvc/gnome-terminal?rev=3152&view=rev

Log:
Add 2 * xpad to width and 2 * ypad to height in
terminal_window_set_size_force_grid, since that's also how
vte_terminal_size_request works.

Modified:
   trunk/src/terminal-window.c

Modified: trunk/src/terminal-window.c
==============================================================================
--- trunk/src/terminal-window.c	(original)
+++ trunk/src/terminal-window.c	Thu Oct  9 14:11:43 2008
@@ -2254,9 +2254,8 @@
   
   vte_terminal_get_padding (VTE_TERMINAL (screen), &xpad, &ypad);
 
-  /* FIXMEchpe: shouldn't this 2 * PAD ? */
-  w += xpad + char_width * grid_width;
-  h += ypad + char_height * grid_height;
+  w += xpad * 2 + char_width * grid_width;
+  h += ypad * 2 + char_height * grid_height;
 
 #ifdef DEBUG_GEOMETRY
   g_printerr ("set size: grid %dx%d force %dx%d setting %dx%d pixels\n",



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