diff -upr gnome-terminal-2.11.2/src/gnome-terminal.glade2 gnome-terminal-2.11.2-maximized/src/gnome-terminal.glade2
--- gnome-terminal-2.11.2/src/gnome-terminal.glade2	2004-10-31 23:03:53.000000000 +0100
+++ gnome-terminal-2.11.2-maximized/src/gnome-terminal.glade2	2005-08-18 18:03:33.000000000 +0200
@@ -16,6 +16,7 @@
   <property name="skip_pager_hint">False</property>
   <property name="type_hint">GDK_WINDOW_TYPE_HINT_DIALOG</property>
   <property name="gravity">GDK_GRAVITY_NORTH_WEST</property>
+  <property name="focus_on_map">True</property>
   <property name="has_separator">False</property>
 
   <child internal-child="vbox">
@@ -105,6 +106,10 @@
 			  <property name="xpad">4</property>
 			  <property name="ypad">0</property>
 			  <property name="mnemonic_widget">profile-name-entry</property>
+			  <property name="ellipsize">PANGO_ELLIPSIZE_NONE</property>
+			  <property name="width_chars">-1</property>
+			  <property name="single_line_mode">False</property>
+			  <property name="angle">0</property>
 			</widget>
 			<packing>
 			  <property name="left_attach">0</property>
@@ -183,6 +188,10 @@
 			  <property name="xpad">0</property>
 			  <property name="ypad">0</property>
 			  <property name="mnemonic_widget">profile-icon-entry</property>
+			  <property name="ellipsize">PANGO_ELLIPSIZE_NONE</property>
+			  <property name="width_chars">-1</property>
+			  <property name="single_line_mode">False</property>
+			  <property name="angle">0</property>
 			</widget>
 			<packing>
 			  <property name="padding">0</property>
@@ -227,7 +236,7 @@
 		  <child>
 		    <widget class="GtkTable" id="table19">
 		      <property name="visible">True</property>
-		      <property name="n_rows">3</property>
+		      <property name="n_rows">4</property>
 		      <property name="n_columns">2</property>
 		      <property name="homogeneous">False</property>
 		      <property name="row_spacing">12</property>
@@ -247,12 +256,16 @@
 			  <property name="xpad">0</property>
 			  <property name="ypad">0</property>
 			  <property name="mnemonic_widget">word-chars-entry</property>
+			  <property name="ellipsize">PANGO_ELLIPSIZE_NONE</property>
+			  <property name="width_chars">-1</property>
+			  <property name="single_line_mode">False</property>
+			  <property name="angle">0</property>
 			</widget>
 			<packing>
 			  <property name="left_attach">0</property>
 			  <property name="right_attach">1</property>
-			  <property name="top_attach">2</property>
-			  <property name="bottom_attach">3</property>
+			  <property name="top_attach">3</property>
+			  <property name="bottom_attach">4</property>
 			  <property name="x_options">fill</property>
 			  <property name="y_options"></property>
 			</packing>
@@ -273,8 +286,8 @@
 			<packing>
 			  <property name="left_attach">1</property>
 			  <property name="right_attach">2</property>
-			  <property name="top_attach">2</property>
-			  <property name="bottom_attach">3</property>
+			  <property name="top_attach">3</property>
+			  <property name="bottom_attach">4</property>
 			  <property name="y_options"></property>
 			</packing>
 		      </child>
@@ -282,7 +295,7 @@
 		      <child>
 			<widget class="GtkAlignment" id="alignment9">
 			  <property name="visible">True</property>
-			  <property name="xalign">1.49012e-08</property>
+			  <property name="xalign">1.49012002737e-08</property>
 			  <property name="yalign">0.5</property>
 			  <property name="xscale">0</property>
 			  <property name="yscale">1</property>
@@ -317,7 +330,7 @@
 		      <child>
 			<widget class="GtkAlignment" id="alignment10">
 			  <property name="visible">True</property>
-			  <property name="xalign">1.49012e-08</property>
+			  <property name="xalign">1.49012002737e-08</property>
 			  <property name="yalign">0.5</property>
 			  <property name="xscale">0</property>
 			  <property name="yscale">1</property>
@@ -353,7 +366,7 @@
 		      <child>
 			<widget class="GtkAlignment" id="alignment11">
 			  <property name="visible">True</property>
-			  <property name="xalign">1.49012e-08</property>
+			  <property name="xalign">1.49012002737e-08</property>
 			  <property name="yalign">0.5</property>
 			  <property name="xscale">0</property>
 			  <property name="yscale">1</property>
@@ -388,7 +401,7 @@
 		      <child>
 			<widget class="GtkAlignment" id="alignment12">
 			  <property name="visible">True</property>
-			  <property name="xalign">1.49012e-08</property>
+			  <property name="xalign">1.49012002737e-08</property>
 			  <property name="yalign">0.5</property>
 			  <property name="xscale">0</property>
 			  <property name="yscale">1</property>
@@ -420,6 +433,41 @@
 			  <property name="y_options">fill</property>
 			</packing>
 		      </child>
+
+		      <child>
+			<widget class="GtkAlignment" id="alignment130">
+			  <property name="visible">True</property>
+			  <property name="xalign">1.49012002737e-08</property>
+			  <property name="yalign">0.5</property>
+			  <property name="xscale">0</property>
+			  <property name="yscale">1</property>
+			  <property name="top_padding">0</property>
+			  <property name="bottom_padding">0</property>
+			  <property name="left_padding">0</property>
+			  <property name="right_padding">0</property>
+
+			  <child>
+			    <widget class="GtkCheckButton" id="maximized-checkbutton">
+			      <property name="visible">True</property>
+			      <property name="can_focus">True</property>
+			      <property name="label" translatable="yes">_Maximize window on startup</property>
+			      <property name="use_underline">True</property>
+			      <property name="relief">GTK_RELIEF_NORMAL</property>
+			      <property name="focus_on_click">True</property>
+			      <property name="active">False</property>
+			      <property name="inconsistent">False</property>
+			      <property name="draw_indicator">True</property>
+			    </widget>
+			  </child>
+			</widget>
+			<packing>
+			  <property name="left_attach">0</property>
+			  <property name="right_attach">1</property>
+			  <property name="top_attach">2</property>
+			  <property name="bottom_attach">3</property>
+			  <property name="x_options">fill</property>
+			</packing>
+		      </child>
 		    </widget>
 		    <packing>
 		      <property name="padding">0</property>
@@ -447,6 +495,10 @@
 		  <property name="yalign">0.5</property>
 		  <property name="xpad">0</property>
 		  <property name="ypad">0</property>
+		  <property name="ellipsize">PANGO_ELLIPSIZE_NONE</property>
+		  <property name="width_chars">-1</property>
+		  <property name="single_line_mode">False</property>
+		  <property name="angle">0</property>
 		</widget>
 		<packing>
 		  <property name="type">label_item</property>
@@ -472,6 +524,10 @@
 	      <property name="yalign">0.5</property>
 	      <property name="xpad">0</property>
 	      <property name="ypad">0</property>
+	      <property name="ellipsize">PANGO_ELLIPSIZE_NONE</property>
+	      <property name="width_chars">-1</property>
+	      <property name="single_line_mode">False</property>
+	      <property name="angle">0</property>
 	    </widget>
 	    <packing>
 	      <property name="type">tab</property>
@@ -519,6 +575,10 @@
 			  <property name="xpad">0</property>
 			  <property name="ypad">0</property>
 			  <property name="mnemonic_widget">title-entry</property>
+			  <property name="ellipsize">PANGO_ELLIPSIZE_NONE</property>
+			  <property name="width_chars">-1</property>
+			  <property name="single_line_mode">False</property>
+			  <property name="angle">0</property>
 			</widget>
 			<packing>
 			  <property name="left_attach">0</property>
@@ -544,6 +604,10 @@
 			  <property name="xpad">0</property>
 			  <property name="ypad">0</property>
 			  <property name="mnemonic_widget">title-mode-optionmenu</property>
+			  <property name="ellipsize">PANGO_ELLIPSIZE_NONE</property>
+			  <property name="width_chars">-1</property>
+			  <property name="single_line_mode">False</property>
+			  <property name="angle">0</property>
 			</widget>
 			<packing>
 			  <property name="left_attach">0</property>
@@ -568,6 +632,10 @@
 			  <property name="yalign">0.5</property>
 			  <property name="xpad">0</property>
 			  <property name="ypad">0</property>
+			  <property name="ellipsize">PANGO_ELLIPSIZE_NONE</property>
+			  <property name="width_chars">-1</property>
+			  <property name="single_line_mode">False</property>
+			  <property name="angle">0</property>
 			</widget>
 			<packing>
 			  <property name="left_attach">0</property>
@@ -606,7 +674,7 @@
 		      <child>
 			<widget class="GtkAlignment" id="alignment18">
 			  <property name="visible">True</property>
-			  <property name="xalign">1.49012e-08</property>
+			  <property name="xalign">1.49012002737e-08</property>
 			  <property name="yalign">0.5</property>
 			  <property name="xscale">0</property>
 			  <property name="yscale">1</property>
@@ -688,6 +756,10 @@
 		      <property name="yalign">0.5</property>
 		      <property name="xpad">0</property>
 		      <property name="ypad">0</property>
+		      <property name="ellipsize">PANGO_ELLIPSIZE_NONE</property>
+		      <property name="width_chars">-1</property>
+		      <property name="single_line_mode">False</property>
+		      <property name="angle">0</property>
 		    </widget>
 		    <packing>
 		      <property name="type">label_item</property>
@@ -722,7 +794,7 @@
 		      <child>
 			<widget class="GtkAlignment" id="alignment24">
 			  <property name="visible">True</property>
-			  <property name="xalign">1.49012e-08</property>
+			  <property name="xalign">1.49012002737e-08</property>
 			  <property name="yalign">0.5</property>
 			  <property name="xscale">0</property>
 			  <property name="yscale">1</property>
@@ -758,7 +830,7 @@
 		      <child>
 			<widget class="GtkAlignment" id="alignment27">
 			  <property name="visible">True</property>
-			  <property name="xalign">1.49012e-08</property>
+			  <property name="xalign">1.49012002737e-08</property>
 			  <property name="yalign">0.5</property>
 			  <property name="xscale">0</property>
 			  <property name="yscale">1</property>
@@ -794,7 +866,7 @@
 		      <child>
 			<widget class="GtkAlignment" id="alignment23">
 			  <property name="visible">True</property>
-			  <property name="xalign">1.49012e-08</property>
+			  <property name="xalign">1.49012002737e-08</property>
 			  <property name="yalign">0.5</property>
 			  <property name="xscale">0</property>
 			  <property name="yscale">1</property>
@@ -843,6 +915,10 @@
 			  <property name="xpad">0</property>
 			  <property name="ypad">0</property>
 			  <property name="mnemonic_widget">custom-command-entry</property>
+			  <property name="ellipsize">PANGO_ELLIPSIZE_NONE</property>
+			  <property name="width_chars">-1</property>
+			  <property name="single_line_mode">False</property>
+			  <property name="angle">0</property>
 			</widget>
 			<packing>
 			  <property name="left_attach">0</property>
@@ -866,8 +942,8 @@
 			  <property name="invisible_char">*</property>
 			  <property name="activates_default">False</property>
 			  <accessibility>
-			    <atkrelation target="use-custom-command-checkbutton" type="controlled-by"/>
 			    <atkrelation target="custom-command-entry-label" type="labelled-by"/>
+			    <atkrelation target="use-custom-command-checkbutton" type="controlled-by"/>
 			  </accessibility>
 			</widget>
 			<packing>
@@ -882,7 +958,7 @@
 		      <child>
 			<widget class="GtkAlignment" id="alignment19">
 			  <property name="visible">True</property>
-			  <property name="xalign">1.49012e-08</property>
+			  <property name="xalign">1.49012002737e-08</property>
 			  <property name="yalign">0.5</property>
 			  <property name="xscale">0</property>
 			  <property name="yscale">1</property>
@@ -956,6 +1032,10 @@
 			  <property name="xpad">0</property>
 			  <property name="ypad">0</property>
 			  <property name="mnemonic_widget">exit-action-optionmenu</property>
+			  <property name="ellipsize">PANGO_ELLIPSIZE_NONE</property>
+			  <property name="width_chars">-1</property>
+			  <property name="single_line_mode">False</property>
+			  <property name="angle">0</property>
 			</widget>
 			<packing>
 			  <property name="left_attach">0</property>
@@ -982,6 +1062,10 @@
 		      <property name="yalign">0.5</property>
 		      <property name="xpad">0</property>
 		      <property name="ypad">0</property>
+		      <property name="ellipsize">PANGO_ELLIPSIZE_NONE</property>
+		      <property name="width_chars">-1</property>
+		      <property name="single_line_mode">False</property>
+		      <property name="angle">0</property>
 		    </widget>
 		    <packing>
 		      <property name="type">label_item</property>
@@ -1016,6 +1100,10 @@
 	      <property name="yalign">0.5</property>
 	      <property name="xpad">0</property>
 	      <property name="ypad">0</property>
+	      <property name="ellipsize">PANGO_ELLIPSIZE_NONE</property>
+	      <property name="width_chars">-1</property>
+	      <property name="single_line_mode">False</property>
+	      <property name="angle">0</property>
 	    </widget>
 	    <packing>
 	      <property name="type">tab</property>
@@ -1052,7 +1140,7 @@
 		      <child>
 			<widget class="GtkAlignment" id="alignment25">
 			  <property name="visible">True</property>
-			  <property name="xalign">1.49012e-08</property>
+			  <property name="xalign">1.49012002737e-08</property>
 			  <property name="yalign">0.5</property>
 			  <property name="xscale">0</property>
 			  <property name="yscale">1</property>
@@ -1099,6 +1187,10 @@
 			  <property name="xpad">0</property>
 			  <property name="ypad">0</property>
 			  <property name="mnemonic_widget">foreground-colorpicker</property>
+			  <property name="ellipsize">PANGO_ELLIPSIZE_NONE</property>
+			  <property name="width_chars">-1</property>
+			  <property name="single_line_mode">False</property>
+			  <property name="angle">0</property>
 			</widget>
 			<packing>
 			  <property name="left_attach">0</property>
@@ -1149,6 +1241,10 @@
 			  <property name="xpad">0</property>
 			  <property name="ypad">0</property>
 			  <property name="mnemonic_widget">color-scheme-optionmenu</property>
+			  <property name="ellipsize">PANGO_ELLIPSIZE_NONE</property>
+			  <property name="width_chars">-1</property>
+			  <property name="single_line_mode">False</property>
+			  <property name="angle">0</property>
 			  <accessibility>
 			    <atkproperty name="AtkObject::accessible_name" translatable="yes">Built-in foreground and background color schemes:</atkproperty>
 			  </accessibility>
@@ -1199,6 +1295,10 @@
 			  <property name="xpad">0</property>
 			  <property name="ypad">0</property>
 			  <property name="mnemonic_widget">background-colorpicker</property>
+			  <property name="ellipsize">PANGO_ELLIPSIZE_NONE</property>
+			  <property name="width_chars">-1</property>
+			  <property name="single_line_mode">False</property>
+			  <property name="angle">0</property>
 			</widget>
 			<packing>
 			  <property name="left_attach">2</property>
@@ -1247,6 +1347,10 @@
 		      <property name="yalign">0.5</property>
 		      <property name="xpad">0</property>
 		      <property name="ypad">0</property>
+		      <property name="ellipsize">PANGO_ELLIPSIZE_NONE</property>
+		      <property name="width_chars">-1</property>
+		      <property name="single_line_mode">False</property>
+		      <property name="angle">0</property>
 		    </widget>
 		    <packing>
 		      <property name="type">label_item</property>
@@ -1292,6 +1396,10 @@
 			  <property name="xpad">0</property>
 			  <property name="ypad">0</property>
 			  <property name="mnemonic_widget">palette-optionmenu</property>
+			  <property name="ellipsize">PANGO_ELLIPSIZE_NONE</property>
+			  <property name="width_chars">-1</property>
+			  <property name="single_line_mode">False</property>
+			  <property name="angle">0</property>
 			  <accessibility>
 			    <atkproperty name="AtkObject::accessible_name" translatable="yes">Built-in palette schemes:</atkproperty>
 			  </accessibility>
@@ -1320,6 +1428,10 @@
 			  <property name="xpad">0</property>
 			  <property name="ypad">0</property>
 			  <property name="mnemonic_widget">palette-colorpicker-1</property>
+			  <property name="ellipsize">PANGO_ELLIPSIZE_NONE</property>
+			  <property name="width_chars">-1</property>
+			  <property name="single_line_mode">False</property>
+			  <property name="angle">0</property>
 			</widget>
 			<packing>
 			  <property name="left_attach">0</property>
@@ -1667,6 +1779,10 @@
 			  <property name="yalign">0.5</property>
 			  <property name="xpad">0</property>
 			  <property name="ypad">0</property>
+			  <property name="ellipsize">PANGO_ELLIPSIZE_NONE</property>
+			  <property name="width_chars">-1</property>
+			  <property name="single_line_mode">False</property>
+			  <property name="angle">0</property>
 			</widget>
 			<packing>
 			  <property name="left_attach">0</property>
@@ -1681,7 +1797,7 @@
 		      <child>
 			<widget class="GtkAlignment" id="alignment17">
 			  <property name="visible">True</property>
-			  <property name="xalign">1.49012e-08</property>
+			  <property name="xalign">1.49012002737e-08</property>
 			  <property name="yalign">0.5</property>
 			  <property name="xscale">0</property>
 			  <property name="yscale">1</property>
@@ -1732,6 +1848,10 @@
 		      <property name="yalign">0.5</property>
 		      <property name="xpad">0</property>
 		      <property name="ypad">0</property>
+		      <property name="ellipsize">PANGO_ELLIPSIZE_NONE</property>
+		      <property name="width_chars">-1</property>
+		      <property name="single_line_mode">False</property>
+		      <property name="angle">0</property>
 		    </widget>
 		    <packing>
 		      <property name="type">label_item</property>
@@ -1765,6 +1885,10 @@
 	      <property name="yalign">0.5</property>
 	      <property name="xpad">0</property>
 	      <property name="ypad">0</property>
+	      <property name="ellipsize">PANGO_ELLIPSIZE_NONE</property>
+	      <property name="width_chars">-1</property>
+	      <property name="single_line_mode">False</property>
+	      <property name="angle">0</property>
 	    </widget>
 	    <packing>
 	      <property name="type">tab</property>
@@ -1870,8 +1994,8 @@
 			<widget class="GtkAlignment" id="alignment15">
 			  <property name="visible">True</property>
 			  <property name="xalign">0</property>
-			  <property name="yalign">0.1</property>
-			  <property name="xscale">0.95</property>
+			  <property name="yalign">0.10000000149</property>
+			  <property name="xscale">0.949999988079</property>
 			  <property name="yscale">0</property>
 			  <property name="top_padding">0</property>
 			  <property name="bottom_padding">0</property>
@@ -1898,6 +2022,10 @@
 				  <property name="xpad">0</property>
 				  <property name="ypad">0</property>
 				  <property name="mnemonic_widget">darken-background-scale</property>
+				  <property name="ellipsize">PANGO_ELLIPSIZE_NONE</property>
+				  <property name="width_chars">-1</property>
+				  <property name="single_line_mode">False</property>
+				  <property name="angle">0</property>
 				</widget>
 				<packing>
 				  <property name="padding">1</property>
@@ -1925,6 +2053,10 @@
 				      <property name="yalign">0.5</property>
 				      <property name="xpad">6</property>
 				      <property name="ypad">0</property>
+				      <property name="ellipsize">PANGO_ELLIPSIZE_NONE</property>
+				      <property name="width_chars">-1</property>
+				      <property name="single_line_mode">False</property>
+				      <property name="angle">0</property>
 				    </widget>
 				    <packing>
 				      <property name="padding">0</property>
@@ -1964,6 +2096,10 @@
 				      <property name="yalign">0.5</property>
 				      <property name="xpad">6</property>
 				      <property name="ypad">0</property>
+				      <property name="ellipsize">PANGO_ELLIPSIZE_NONE</property>
+				      <property name="width_chars">-1</property>
+				      <property name="single_line_mode">False</property>
+				      <property name="angle">0</property>
 				    </widget>
 				    <packing>
 				      <property name="padding">0</property>
@@ -2092,6 +2228,10 @@
 			      <property name="xpad">0</property>
 			      <property name="ypad">0</property>
 			      <property name="mnemonic_widget">background-image-entry</property>
+			      <property name="ellipsize">PANGO_ELLIPSIZE_NONE</property>
+			      <property name="width_chars">-1</property>
+			      <property name="single_line_mode">False</property>
+			      <property name="angle">0</property>
 			    </widget>
 			    <packing>
 			      <property name="padding">0</property>
@@ -2182,6 +2322,10 @@
 		      <property name="yalign">0.5</property>
 		      <property name="xpad">0</property>
 		      <property name="ypad">0</property>
+		      <property name="ellipsize">PANGO_ELLIPSIZE_NONE</property>
+		      <property name="width_chars">-1</property>
+		      <property name="single_line_mode">False</property>
+		      <property name="angle">0</property>
 		    </widget>
 		    <packing>
 		      <property name="type">label_item</property>
@@ -2215,6 +2359,10 @@
 	      <property name="yalign">0.5</property>
 	      <property name="xpad">0</property>
 	      <property name="ypad">0</property>
+	      <property name="ellipsize">PANGO_ELLIPSIZE_NONE</property>
+	      <property name="width_chars">-1</property>
+	      <property name="single_line_mode">False</property>
+	      <property name="angle">0</property>
 	    </widget>
 	    <packing>
 	      <property name="type">tab</property>
@@ -2253,6 +2401,10 @@
 		      <property name="xpad">0</property>
 		      <property name="ypad">0</property>
 		      <property name="mnemonic_widget">scrollback-lines-spinbutton</property>
+		      <property name="ellipsize">PANGO_ELLIPSIZE_NONE</property>
+		      <property name="width_chars">-1</property>
+		      <property name="single_line_mode">False</property>
+		      <property name="angle">0</property>
 		    </widget>
 		    <packing>
 		      <property name="left_attach">0</property>
@@ -2278,6 +2430,10 @@
 		      <property name="xpad">0</property>
 		      <property name="ypad">0</property>
 		      <property name="mnemonic_widget">scrollbar-position-optionmenu</property>
+		      <property name="ellipsize">PANGO_ELLIPSIZE_NONE</property>
+		      <property name="width_chars">-1</property>
+		      <property name="single_line_mode">False</property>
+		      <property name="angle">0</property>
 		    </widget>
 		    <packing>
 		      <property name="left_attach">0</property>
@@ -2303,6 +2459,10 @@
 		      <property name="xpad">0</property>
 		      <property name="ypad">0</property>
 		      <property name="mnemonic_widget">scrollback-kilobytes-spinbutton</property>
+		      <property name="ellipsize">PANGO_ELLIPSIZE_NONE</property>
+		      <property name="width_chars">-1</property>
+		      <property name="single_line_mode">False</property>
+		      <property name="angle">0</property>
 		    </widget>
 		    <packing>
 		      <property name="left_attach">4</property>
@@ -2327,6 +2487,10 @@
 		      <property name="yalign">0.5</property>
 		      <property name="xpad">0</property>
 		      <property name="ypad">0</property>
+		      <property name="ellipsize">PANGO_ELLIPSIZE_NONE</property>
+		      <property name="width_chars">-1</property>
+		      <property name="single_line_mode">False</property>
+		      <property name="angle">0</property>
 		    </widget>
 		    <packing>
 		      <property name="left_attach">6</property>
@@ -2341,7 +2505,7 @@
 		  <child>
 		    <widget class="GtkAlignment" id="alignment14">
 		      <property name="visible">True</property>
-		      <property name="xalign">1.49012e-08</property>
+		      <property name="xalign">1.49012002737e-08</property>
 		      <property name="yalign">0.5</property>
 		      <property name="xscale">0</property>
 		      <property name="yscale">1</property>
@@ -2377,7 +2541,7 @@
 		  <child>
 		    <widget class="GtkAlignment" id="alignment13">
 		      <property name="visible">True</property>
-		      <property name="xalign">1.49012e-08</property>
+		      <property name="xalign">1.49012002737e-08</property>
 		      <property name="yalign">0.5</property>
 		      <property name="xscale">0</property>
 		      <property name="yscale">1</property>
@@ -2436,7 +2600,7 @@
 		  <child>
 		    <widget class="GtkAlignment" id="alignment20">
 		      <property name="visible">True</property>
-		      <property name="xalign">1.49012e-08</property>
+		      <property name="xalign">1.49012002737e-08</property>
 		      <property name="yalign">0.5</property>
 		      <property name="xscale">0</property>
 		      <property name="yscale">1</property>
@@ -2533,6 +2697,10 @@
 		      <property name="xpad">0</property>
 		      <property name="ypad">0</property>
 		      <property name="mnemonic_widget">scrollback-kilobytes-spinbutton</property>
+		      <property name="ellipsize">PANGO_ELLIPSIZE_NONE</property>
+		      <property name="width_chars">-1</property>
+		      <property name="single_line_mode">False</property>
+		      <property name="angle">0</property>
 		    </widget>
 		    <packing>
 		      <property name="left_attach">8</property>
@@ -2559,6 +2727,10 @@
 		  <property name="yalign">0.5</property>
 		  <property name="xpad">0</property>
 		  <property name="ypad">0</property>
+		  <property name="ellipsize">PANGO_ELLIPSIZE_NONE</property>
+		  <property name="width_chars">-1</property>
+		  <property name="single_line_mode">False</property>
+		  <property name="angle">0</property>
 		</widget>
 		<packing>
 		  <property name="type">label_item</property>
@@ -2585,6 +2757,10 @@
 	      <property name="yalign">0.5</property>
 	      <property name="xpad">0</property>
 	      <property name="ypad">0</property>
+	      <property name="ellipsize">PANGO_ELLIPSIZE_NONE</property>
+	      <property name="width_chars">-1</property>
+	      <property name="single_line_mode">False</property>
+	      <property name="angle">0</property>
 	    </widget>
 	    <packing>
 	      <property name="type">tab</property>
@@ -2618,9 +2794,13 @@ and operating systems that expect differ
 		      <property name="wrap">False</property>
 		      <property name="selectable">False</property>
 		      <property name="xalign">0</property>
-		      <property name="yalign">7.45058e-09</property>
+		      <property name="yalign">7.45058015283e-09</property>
 		      <property name="xpad">0</property>
 		      <property name="ypad">0</property>
+		      <property name="ellipsize">PANGO_ELLIPSIZE_NONE</property>
+		      <property name="width_chars">-1</property>
+		      <property name="single_line_mode">False</property>
+		      <property name="angle">0</property>
 		    </widget>
 		    <packing>
 		      <property name="padding">0</property>
@@ -2652,6 +2832,10 @@ and operating systems that expect differ
 			  <property name="xpad">0</property>
 			  <property name="ypad">0</property>
 			  <property name="mnemonic_widget">delete-binding-optionmenu</property>
+			  <property name="ellipsize">PANGO_ELLIPSIZE_NONE</property>
+			  <property name="width_chars">-1</property>
+			  <property name="single_line_mode">False</property>
+			  <property name="angle">0</property>
 			</widget>
 			<packing>
 			  <property name="left_attach">0</property>
@@ -2677,6 +2861,10 @@ and operating systems that expect differ
 			  <property name="xpad">0</property>
 			  <property name="ypad">0</property>
 			  <property name="mnemonic_widget">backspace-binding-optionmenu</property>
+			  <property name="ellipsize">PANGO_ELLIPSIZE_NONE</property>
+			  <property name="width_chars">-1</property>
+			  <property name="single_line_mode">False</property>
+			  <property name="angle">0</property>
 			</widget>
 			<packing>
 			  <property name="left_attach">0</property>
@@ -2691,7 +2879,7 @@ and operating systems that expect differ
 		      <child>
 			<widget class="GtkAlignment" id="alignment21">
 			  <property name="visible">True</property>
-			  <property name="xalign">1.49012e-08</property>
+			  <property name="xalign">1.49012002737e-08</property>
 			  <property name="yalign">0.5</property>
 			  <property name="xscale">0</property>
 			  <property name="yscale">1</property>
@@ -2750,7 +2938,7 @@ and operating systems that expect differ
 		      <child>
 			<widget class="GtkAlignment" id="alignment22">
 			  <property name="visible">True</property>
-			  <property name="xalign">1.49012e-08</property>
+			  <property name="xalign">1.49012002737e-08</property>
 			  <property name="yalign">0.5</property>
 			  <property name="xscale">0</property>
 			  <property name="yscale">1</property>
@@ -2816,7 +3004,7 @@ and operating systems that expect differ
 		  <child>
 		    <widget class="GtkAlignment" id="alignment010101">
 		      <property name="visible">True</property>
-		      <property name="xalign">1.11759e-08</property>
+		      <property name="xalign">1.11759002053e-08</property>
 		      <property name="yalign">0.5</property>
 		      <property name="xscale">0</property>
 		      <property name="yscale">0</property>
@@ -2858,6 +3046,10 @@ and operating systems that expect differ
 		  <property name="yalign">0.5</property>
 		  <property name="xpad">0</property>
 		  <property name="ypad">0</property>
+		  <property name="ellipsize">PANGO_ELLIPSIZE_NONE</property>
+		  <property name="width_chars">-1</property>
+		  <property name="single_line_mode">False</property>
+		  <property name="angle">0</property>
 		</widget>
 		<packing>
 		  <property name="type">label_item</property>
@@ -2883,6 +3075,10 @@ and operating systems that expect differ
 	      <property name="yalign">0.5</property>
 	      <property name="xpad">0</property>
 	      <property name="ypad">0</property>
+	      <property name="ellipsize">PANGO_ELLIPSIZE_NONE</property>
+	      <property name="width_chars">-1</property>
+	      <property name="single_line_mode">False</property>
+	      <property name="angle">0</property>
 	    </widget>
 	    <packing>
 	      <property name="type">tab</property>
@@ -2911,6 +3107,7 @@ and operating systems that expect differ
   <property name="skip_pager_hint">False</property>
   <property name="type_hint">GDK_WINDOW_TYPE_HINT_DIALOG</property>
   <property name="gravity">GDK_GRAVITY_NORTH_WEST</property>
+  <property name="focus_on_map">True</property>
   <property name="has_separator">False</property>
 
   <child internal-child="vbox">
@@ -2995,6 +3192,9 @@ and operating systems that expect differ
 		  <property name="rules_hint">True</property>
 		  <property name="reorderable">False</property>
 		  <property name="enable_search">True</property>
+		  <property name="fixed_height_mode">False</property>
+		  <property name="hover_selection">False</property>
+		  <property name="hover_expand">False</property>
 		</widget>
 	      </child>
 	    </widget>
@@ -3020,6 +3220,10 @@ and operating systems that expect differ
 	      <property name="xpad">0</property>
 	      <property name="ypad">0</property>
 	      <property name="mnemonic_widget">accelerators-treeview</property>
+	      <property name="ellipsize">PANGO_ELLIPSIZE_NONE</property>
+	      <property name="width_chars">-1</property>
+	      <property name="single_line_mode">False</property>
+	      <property name="angle">0</property>
 	    </widget>
 	    <packing>
 	      <property name="left_attach">0</property>
@@ -3076,6 +3280,7 @@ and operating systems that expect differ
   <property name="skip_pager_hint">False</property>
   <property name="type_hint">GDK_WINDOW_TYPE_HINT_DIALOG</property>
   <property name="gravity">GDK_GRAVITY_NORTH_WEST</property>
+  <property name="focus_on_map">True</property>
   <property name="has_separator">True</property>
 
   <child internal-child="vbox">
@@ -3147,6 +3352,10 @@ and operating systems that expect differ
 	      <property name="xpad">0</property>
 	      <property name="ypad">0</property>
 	      <property name="mnemonic_widget">available-treeview</property>
+	      <property name="ellipsize">PANGO_ELLIPSIZE_NONE</property>
+	      <property name="width_chars">-1</property>
+	      <property name="single_line_mode">False</property>
+	      <property name="angle">0</property>
 	      <accessibility>
 		<atkrelation target="available-treeview" type="label-for"/>
 	      </accessibility>
@@ -3175,6 +3384,10 @@ and operating systems that expect differ
 	      <property name="xpad">0</property>
 	      <property name="ypad">0</property>
 	      <property name="mnemonic_widget">displayed-treeview</property>
+	      <property name="ellipsize">PANGO_ELLIPSIZE_NONE</property>
+	      <property name="width_chars">-1</property>
+	      <property name="single_line_mode">False</property>
+	      <property name="angle">0</property>
 	      <accessibility>
 		<atkrelation target="displayed-treeview" type="label-for"/>
 	      </accessibility>
@@ -3206,6 +3419,9 @@ and operating systems that expect differ
 		  <property name="rules_hint">False</property>
 		  <property name="reorderable">False</property>
 		  <property name="enable_search">True</property>
+		  <property name="fixed_height_mode">False</property>
+		  <property name="hover_selection">False</property>
+		  <property name="hover_expand">False</property>
 		  <accessibility>
 		    <atkrelation target="available-label" type="labelled-by"/>
 		  </accessibility>
@@ -3237,6 +3453,9 @@ and operating systems that expect differ
 		  <property name="rules_hint">False</property>
 		  <property name="reorderable">False</property>
 		  <property name="enable_search">True</property>
+		  <property name="fixed_height_mode">False</property>
+		  <property name="hover_selection">False</property>
+		  <property name="hover_expand">False</property>
 		  <accessibility>
 		    <atkrelation target="displayed-label" type="labelled-by"/>
 		  </accessibility>
@@ -3340,6 +3559,7 @@ and operating systems that expect differ
   <property name="skip_pager_hint">False</property>
   <property name="type_hint">GDK_WINDOW_TYPE_HINT_DIALOG</property>
   <property name="gravity">GDK_GRAVITY_NORTH_WEST</property>
+  <property name="focus_on_map">True</property>
   <property name="has_separator">False</property>
 
   <child internal-child="vbox">
@@ -3442,6 +3662,10 @@ and operating systems that expect differ
 		  <property name="yalign">0.5</property>
 		  <property name="xpad">0</property>
 		  <property name="ypad">0</property>
+		  <property name="ellipsize">PANGO_ELLIPSIZE_NONE</property>
+		  <property name="width_chars">-1</property>
+		  <property name="single_line_mode">False</property>
+		  <property name="angle">0</property>
 		</widget>
 		<packing>
 		  <property name="padding">0</property>
@@ -3469,6 +3693,10 @@ and operating systems that expect differ
 		      <property name="yalign">0.5</property>
 		      <property name="xpad">0</property>
 		      <property name="ypad">0</property>
+		      <property name="ellipsize">PANGO_ELLIPSIZE_NONE</property>
+		      <property name="width_chars">-1</property>
+		      <property name="single_line_mode">False</property>
+		      <property name="angle">0</property>
 		    </widget>
 		    <packing>
 		      <property name="padding">0</property>
@@ -3533,6 +3761,7 @@ and operating systems that expect differ
   <property name="skip_pager_hint">False</property>
   <property name="type_hint">GDK_WINDOW_TYPE_HINT_DIALOG</property>
   <property name="gravity">GDK_GRAVITY_NORTH_WEST</property>
+  <property name="focus_on_map">True</property>
   <property name="has_separator">True</property>
 
   <child internal-child="vbox">
@@ -3617,6 +3846,10 @@ and operating systems that expect differ
 			  <property name="yalign">0.5</property>
 			  <property name="xpad">0</property>
 			  <property name="ypad">0</property>
+			  <property name="ellipsize">PANGO_ELLIPSIZE_NONE</property>
+			  <property name="width_chars">-1</property>
+			  <property name="single_line_mode">False</property>
+			  <property name="angle">0</property>
 			</widget>
 			<packing>
 			  <property name="padding">0</property>
@@ -3672,6 +3905,10 @@ and operating systems that expect differ
 		      <property name="xpad">0</property>
 		      <property name="ypad">0</property>
 		      <property name="mnemonic_widget">new-profile-name-entry</property>
+		      <property name="ellipsize">PANGO_ELLIPSIZE_NONE</property>
+		      <property name="width_chars">-1</property>
+		      <property name="single_line_mode">False</property>
+		      <property name="angle">0</property>
 		    </widget>
 		    <packing>
 		      <property name="padding">0</property>
@@ -3727,6 +3964,10 @@ and operating systems that expect differ
 		      <property name="xpad">0</property>
 		      <property name="ypad">0</property>
 		      <property name="mnemonic_widget">new-profile-base-option-menu</property>
+		      <property name="ellipsize">PANGO_ELLIPSIZE_NONE</property>
+		      <property name="width_chars">-1</property>
+		      <property name="single_line_mode">False</property>
+		      <property name="angle">0</property>
 		    </widget>
 		    <packing>
 		      <property name="padding">0</property>
diff -upr gnome-terminal-2.11.2/src/profile-editor.c gnome-terminal-2.11.2-maximized/src/profile-editor.c
--- gnome-terminal-2.11.2/src/profile-editor.c	2005-07-02 02:07:57.000000000 +0200
+++ gnome-terminal-2.11.2-maximized/src/profile-editor.c	2005-08-18 17:43:52.000000000 +0200
@@ -92,6 +92,8 @@ static void       profile_editor_update_
                                                               TerminalProfile *profile);
 static void       profile_editor_update_allow_bold           (GtkWidget       *widget,
                                                               TerminalProfile *profile);
+static void       profile_editor_update_maximized            (GtkWidget       *widget,
+                                                              TerminalProfile *profile);
 static void       profile_editor_update_silent_bell          (GtkWidget       *widget,
                                                               TerminalProfile *profile);
 static void       profile_editor_update_word_chars           (GtkWidget       *widget,
@@ -183,7 +185,7 @@ profile_editor_destroyed (GtkWidget     
   g_signal_handlers_disconnect_by_func (G_OBJECT (profile),
                                         G_CALLBACK (profile_changed),
                                         editor);
-  
+
   g_object_set_data (G_OBJECT (profile), "editor-window", NULL);
   g_object_set_data (G_OBJECT (editor), "glade-xml", NULL);
   profile_name_entry_notify (profile);
@@ -251,7 +253,7 @@ profile_changed (TerminalProfile        
 
   if (mask->icon_file)
     profile_editor_update_icon (editor, profile);
-  
+
   if (mask->cursor_blink)
     profile_editor_update_cursor_blink (editor, profile);
 
@@ -267,13 +269,16 @@ profile_changed (TerminalProfile        
 
   if (mask->title)
     profile_editor_update_title (editor, profile);
-  
+
   if (mask->title_mode)
     profile_editor_update_title_mode (editor, profile);
 
   if (mask->allow_bold)
     profile_editor_update_allow_bold (editor, profile);
 
+  if (mask->maximized)
+    profile_editor_update_maximized (editor, profile);
+
   if (mask->silent_bell)
     profile_editor_update_silent_bell (editor, profile);
 
@@ -315,7 +320,7 @@ profile_changed (TerminalProfile        
 
   if (mask->background_type)
     profile_editor_update_background_type (editor, profile);
-  
+
   if (mask->background_image_file)
     profile_editor_update_background_image (editor, profile);
 
@@ -333,13 +338,13 @@ profile_changed (TerminalProfile        
 
   if (mask->use_theme_colors)
     profile_editor_update_use_theme_colors (editor, profile);
-    
+
   if (mask->use_system_font)
     profile_editor_update_use_system_font (editor, profile);
 
   if (mask->font)
     profile_editor_update_font (editor, profile);
-  
+
   profile_editor_update_sensitivity (editor, profile);
 }
 
@@ -354,7 +359,7 @@ visible_name_changed (GtkWidget       *e
   char *text;
 
   text = gtk_editable_get_chars (GTK_EDITABLE (entry), 0, -1);
-  
+
   terminal_profile_set_visible_name (profile, text);
 
   g_free (text);
@@ -370,7 +375,7 @@ icon_changed (GtkWidget       *icon_entr
 
   /* NULL filename happens here to unset */
   terminal_profile_set_icon_file (profile, filename);
-  
+
   g_free (filename);
 }
 
@@ -400,7 +405,7 @@ foreground_color_set (GtkWidget       *c
   gtk_color_button_get_color (GTK_COLOR_BUTTON (colorpicker), &color);
 
   terminal_profile_get_color_scheme (profile, NULL, &bg);
-  
+
   terminal_profile_set_color_scheme (profile, &color, &bg);
 }
 
@@ -414,7 +419,7 @@ background_color_set (GtkWidget       *c
   gtk_color_button_get_color (GTK_COLOR_BUTTON (colorpicker), &color);
 
   terminal_profile_get_color_scheme (profile, &fg, NULL);
-  
+
   terminal_profile_set_color_scheme (profile, &fg, &color);
 }
 
@@ -423,9 +428,9 @@ color_scheme_changed (GtkWidget       *o
                       TerminalProfile *profile)
 {
   int i;
-  
+
   i = gtk_option_menu_get_history (GTK_OPTION_MENU (option_menu));
-  
+
   if (i < G_N_ELEMENTS (color_schemes))
     terminal_profile_set_color_scheme (profile,
                                        &color_schemes[i].foreground,
@@ -441,7 +446,7 @@ title_changed (GtkWidget       *entry,
   char *text;
 
   text = gtk_editable_get_chars (GTK_EDITABLE (entry), 0, -1);
-  
+
   terminal_profile_set_title (profile, text);
 
   g_free (text);
@@ -452,7 +457,7 @@ title_mode_changed (GtkWidget       *opt
                     TerminalProfile *profile)
 {
   int i;
-  
+
   i = gtk_option_menu_get_history (GTK_OPTION_MENU (option_menu));
 
   terminal_profile_set_title_mode (profile, i);
@@ -467,6 +472,14 @@ allow_bold_toggled (GtkWidget       *che
 }
 
 static void
+maximized_toggled (GtkWidget       *checkbutton,
+                    TerminalProfile *profile)
+{
+  terminal_profile_set_maximized (profile,
+                                   gtk_toggle_button_get_active (GTK_TOGGLE_BUTTON (checkbutton)));
+}
+
+static void
 bell_toggled (GtkWidget       *checkbutton,
               TerminalProfile *profile)
 {
@@ -479,15 +492,15 @@ word_chars_changed (GtkWidget       *ent
                     TerminalProfile *profile)
 {
   char *text;
-  
+
   text = gtk_editable_get_chars (GTK_EDITABLE (entry), 0, -1);
-  
+
   terminal_profile_set_word_chars (profile, text);
 
   g_free (text);
 }
 
-static void 
+static void
 font_changed (EggXFontSelector *selector, TerminalProfile *profile)
 {
   gchar *name = egg_xfont_selector_get_font_name (selector);
@@ -501,7 +514,7 @@ scrollbar_position_changed (GtkWidget   
                             TerminalProfile *profile)
 {
   int i;
-  
+
   i = gtk_option_menu_get_history (GTK_OPTION_MENU (option_menu));
 
   terminal_profile_set_scrollbar_position (profile, i);
@@ -512,7 +525,7 @@ scrollback_lines_value_changed (GtkWidge
                                 TerminalProfile *profile)
 {
   double val;
-  
+
   val = gtk_spin_button_get_value (GTK_SPIN_BUTTON (spin));
 
   terminal_profile_set_scrollback_lines (profile, val);
@@ -523,7 +536,7 @@ scrollback_kilobytes_value_changed (GtkW
                                     TerminalProfile *profile)
 {
   double val;
-  
+
   val = gtk_spin_button_get_value (GTK_SPIN_BUTTON (spin));
 
   terminal_profile_set_scrollback_lines (profile,
@@ -551,7 +564,7 @@ exit_action_changed (GtkWidget       *op
                      TerminalProfile *profile)
 {
   int i;
-  
+
   i = gtk_option_menu_get_history (GTK_OPTION_MENU (option_menu));
 
   terminal_profile_set_exit_action (profile, i);
@@ -588,7 +601,7 @@ custom_command_changed (GtkWidget       
   char *text;
 
   text = gtk_editable_get_chars (GTK_EDITABLE (entry), 0, -1);
-  
+
   terminal_profile_set_custom_command (profile, text);
 
   g_free (text);
@@ -599,9 +612,9 @@ palette_scheme_changed (GtkWidget       
                       TerminalProfile *profile)
 {
   int i;
-  
+
   i = gtk_option_menu_get_history (GTK_OPTION_MENU (option_menu));
-  
+
   if (i < G_N_ELEMENTS (palette_schemes))
     terminal_profile_set_palette (profile,
                                   palette_schemes[i].palette);
@@ -660,10 +673,10 @@ background_image_changed (GtkWidget     
    * insert a directory in front of what the user was typing once the
    * notify came back from gconf.
    */
-  
+
   text = gtk_editable_get_chars (GTK_EDITABLE (gnome_file_entry_gtk_entry (GNOME_FILE_ENTRY (entry))),
                                  0, -1);
-  
+
   terminal_profile_set_background_image_file (profile, text);
 
   g_free (text);
@@ -697,7 +710,7 @@ backspace_binding_changed (GtkWidget    
                            TerminalProfile *profile)
 {
   int i;
-  
+
   i = gtk_option_menu_get_history (GTK_OPTION_MENU (option_menu));
 
   terminal_profile_set_backspace_binding (profile, i);
@@ -708,7 +721,7 @@ delete_binding_changed (GtkWidget       
                         TerminalProfile *profile)
 {
   int i;
-  
+
   i = gtk_option_menu_get_history (GTK_OPTION_MENU (option_menu));
 
   terminal_profile_set_delete_binding (profile, i);
@@ -744,7 +757,7 @@ font_set (GtkWidget       *fontpicker,
   PangoFontDescription *desc;
   PangoFontDescription *tmp;
   const char *font_name;
-  
+
   font_name = gtk_font_button_get_font_name (GTK_FONT_BUTTON (fontpicker));
   desc = pango_font_description_from_string (font_name);
   if (desc == NULL)
@@ -758,7 +771,7 @@ font_set (GtkWidget       *fontpicker,
   pango_font_description_merge (tmp, desc, TRUE);
   pango_font_description_free (desc);
   desc = tmp;
-  
+
   terminal_profile_set_font (profile, desc);
 
   pango_font_description_free (desc);
@@ -774,7 +787,7 @@ init_color_scheme_menu (GtkWidget *optio
   GtkWidget *menu;
   GtkWidget *menu_item;
   int i;
-  
+
   menu = gtk_menu_new ();
 
   i = 0;
@@ -782,10 +795,10 @@ init_color_scheme_menu (GtkWidget *optio
     {
       menu_item = gtk_menu_item_new_with_label (_(color_schemes[i].name));
       gtk_widget_show (menu_item);
-      
+
       gtk_menu_shell_append (GTK_MENU_SHELL (menu),
                              menu_item);
-      
+
       ++i;
     }
 
@@ -804,7 +817,7 @@ init_palette_scheme_menu (GtkWidget *opt
   GtkWidget *menu;
   GtkWidget *menu_item;
   int i;
-  
+
   menu = gtk_menu_new ();
 
   i = 0;
@@ -812,10 +825,10 @@ init_palette_scheme_menu (GtkWidget *opt
     {
       menu_item = gtk_menu_item_new_with_label (_(palette_schemes[i].name));
       gtk_widget_show (menu_item);
-      
+
       gtk_menu_shell_append (GTK_MENU_SHELL (menu),
                              menu_item);
-      
+
       ++i;
     }
 
@@ -849,7 +862,7 @@ static void
 editor_response_cb (GtkDialog *editor,
                     int        id,
                     void      *data)
-{  
+{
   if (id == GTK_RESPONSE_HELP)
     terminal_util_show_help ("gnome-terminal-prefs", GTK_WINDOW (editor));
   else
@@ -879,15 +892,15 @@ terminal_profile_edit (TerminalProfile *
                                            transient_parent);
       if (xml == NULL)
         return;
-      
+
       old_transient_parent = NULL;
-      
+
       editor = glade_xml_get_widget (xml, "profile-editor-dialog");
 
-      
+
       /* Begin "we have no Glade 2" workarounds */
       gtk_dialog_set_has_separator (GTK_DIALOG (editor), FALSE);
-      
+
       gtk_dialog_add_buttons (GTK_DIALOG (editor),
                               GTK_STOCK_HELP, GTK_RESPONSE_HELP,
                               GTK_STOCK_CLOSE, GTK_RESPONSE_ACCEPT,
@@ -896,16 +909,16 @@ terminal_profile_edit (TerminalProfile *
       /* End "we have no Glade 2" workarounds */
 
 
-      
+
       g_object_set_data (G_OBJECT (profile),
                          "editor-window",
-                         editor);      
+                         editor);
 
       g_object_set_data_full (G_OBJECT (editor),
                               "glade-xml",
                               xml,
                               (GDestroyNotify) g_object_unref);
-      
+
       g_signal_connect (G_OBJECT (editor),
                         "destroy",
                         G_CALLBACK (profile_editor_destroyed),
@@ -915,18 +928,18 @@ terminal_profile_edit (TerminalProfile *
                         "response",
                         G_CALLBACK (editor_response_cb),
                         NULL);
-      
+
       gtk_window_set_destroy_with_parent (GTK_WINDOW (editor), TRUE);
 
       g_signal_connect (G_OBJECT (profile),
                         "changed",
                         G_CALLBACK (profile_changed),
                         editor);
-      
+
       g_signal_connect (G_OBJECT (profile),
                         "forgotten",
                         G_CALLBACK (profile_forgotten),
-                        editor);      
+                        editor);
 
       profile_editor_update_sensitivity (editor, profile);
 
@@ -942,7 +955,7 @@ terminal_profile_edit (TerminalProfile *
       g_signal_connect (G_OBJECT (w), "changed",
                         G_CALLBACK (icon_changed),
                         profile);
-      
+
       w = glade_xml_get_widget (xml, "blink-cursor-checkbutton");
       profile_editor_update_cursor_blink (editor, profile);
       g_signal_connect (G_OBJECT (w), "toggled",
@@ -956,7 +969,7 @@ terminal_profile_edit (TerminalProfile *
                         profile);
 
       profile_editor_update_color_pickers (editor, profile);
-      
+
       w = glade_xml_get_widget (xml, "foreground-colorpicker");
       g_signal_connect (G_OBJECT (w), "color_set",
                         G_CALLBACK (foreground_color_set),
@@ -992,7 +1005,13 @@ terminal_profile_edit (TerminalProfile *
       g_signal_connect (G_OBJECT (w), "toggled",
                         G_CALLBACK (allow_bold_toggled),
                         profile);
-      
+
+      w = glade_xml_get_widget (xml, "maximized-checkbutton");
+      profile_editor_update_maximized (editor, profile);
+      g_signal_connect (G_OBJECT (w), "toggled",
+                        G_CALLBACK (maximized_toggled),
+                        profile);
+
       w = glade_xml_get_widget (xml, "bell-checkbutton");
       profile_editor_update_silent_bell (editor, profile);
       g_signal_connect (G_OBJECT (w), "toggled",
@@ -1004,7 +1023,7 @@ terminal_profile_edit (TerminalProfile *
       g_signal_connect (G_OBJECT (w), "changed",
                         G_CALLBACK (word_chars_changed),
                         profile);
-      
+
       w = glade_xml_get_widget (xml, "scrollbar-position-optionmenu");
       profile_editor_update_scrollbar_position (editor, profile);
       g_signal_connect (G_OBJECT (w), "changed",
@@ -1012,14 +1031,14 @@ terminal_profile_edit (TerminalProfile *
                         profile);
 
       size_group = gtk_size_group_new (GTK_SIZE_GROUP_HORIZONTAL);
-      
+
       w = glade_xml_get_widget (xml, "scrollback-lines-spinbutton");
       profile_editor_update_scrollback_lines (editor, profile);
       g_signal_connect (G_OBJECT (w), "value_changed",
                         G_CALLBACK (scrollback_lines_value_changed),
                         profile);
       gtk_size_group_add_widget (size_group, w);
-      
+
       gtk_spin_button_get_range (GTK_SPIN_BUTTON (w), &num1, &num2);
 
       w = glade_xml_get_widget (xml, "scrollback-kilobytes-spinbutton");
@@ -1028,15 +1047,15 @@ terminal_profile_edit (TerminalProfile *
       gtk_spin_button_set_range (GTK_SPIN_BUTTON (w),
                                  (num1 * BYTES_PER_LINE) / 1024,
                                  (num2 * BYTES_PER_LINE) / 1024);
-      
-      profile_editor_update_scrollback_lines (editor, profile);      
+
+      profile_editor_update_scrollback_lines (editor, profile);
       g_signal_connect (G_OBJECT (w), "value_changed",
                         G_CALLBACK (scrollback_kilobytes_value_changed),
                         profile);
       gtk_size_group_add_widget (size_group, w);
 
       g_object_unref (G_OBJECT (size_group));
-      
+
       w = glade_xml_get_widget (xml, "scroll-on-keystroke-checkbutton");
       profile_editor_update_scroll_on_keystroke (editor, profile);
       g_signal_connect (G_OBJECT (w), "toggled",
@@ -1054,13 +1073,13 @@ terminal_profile_edit (TerminalProfile *
       g_signal_connect (G_OBJECT (w), "changed",
                         G_CALLBACK (exit_action_changed),
                         profile);
-      
+
       w = glade_xml_get_widget (xml, "login-shell-checkbutton");
       profile_editor_update_login_shell (editor, profile);
       g_signal_connect (G_OBJECT (w), "toggled",
                         G_CALLBACK (login_shell_toggled),
                         profile);
-      
+
       w = glade_xml_get_widget (xml, "update-records-checkbutton");
       profile_editor_update_update_records (editor, profile);
       g_signal_connect (G_OBJECT (w), "toggled",
@@ -1112,7 +1131,7 @@ terminal_profile_edit (TerminalProfile *
       g_signal_connect (G_OBJECT (w), "toggled",
                         G_CALLBACK (scroll_background_toggled),
                         profile);
-      
+
       w = glade_xml_get_widget (xml, "darken-background-scale");
       init_background_darkness_scale (w);
       profile_editor_update_background_darkness (editor, profile);
@@ -1137,22 +1156,22 @@ terminal_profile_edit (TerminalProfile *
       g_signal_connect (G_OBJECT (w), "toggled",
                         G_CALLBACK (use_theme_colors_toggled),
                         profile);
-      
+
       w = glade_xml_get_widget (xml, "system-font-checkbutton");
       profile_editor_update_use_system_font (editor, profile);
       g_signal_connect (G_OBJECT (w), "toggled",
                         G_CALLBACK (use_system_font_toggled),
                         profile);
 
-      
+
       i = 0;
       while (i < TERMINAL_PALETTE_SIZE)
         {
           char *s = g_strdup_printf ("palette-colorpicker-%d", i+1);
-          
+
           w = glade_xml_get_widget (xml, s);
           g_assert (w);
-          
+
           g_object_set_data (G_OBJECT (w),
                              "palette-entry-index",
                              GINT_TO_POINTER (i));
@@ -1160,7 +1179,7 @@ terminal_profile_edit (TerminalProfile *
           g_signal_connect (G_OBJECT (w), "color_set",
                             G_CALLBACK (palette_color_set),
                             profile);
-          
+
           g_free (s);
 
           ++i;
@@ -1173,7 +1192,7 @@ terminal_profile_edit (TerminalProfile *
       if (terminal_widget_supports_pango_fonts ())
         {
           GtkWidget *font_label;
-          
+
           fontsel = gtk_font_button_new ();
           g_object_set_data (G_OBJECT (editor), "font-selector", fontsel);
 
@@ -1193,7 +1212,7 @@ terminal_profile_edit (TerminalProfile *
           gtk_label_set_mnemonic_widget (GTK_LABEL (font_label), fontsel);
 
           gtk_box_set_spacing (GTK_BOX (w), 12);
-          
+
           gtk_box_pack_start (GTK_BOX (w), GTK_WIDGET (font_label), FALSE, FALSE, 0);
           gtk_box_pack_start (GTK_BOX (w), GTK_WIDGET (fontsel), FALSE, FALSE, 0);
 
@@ -1212,9 +1231,9 @@ terminal_profile_edit (TerminalProfile *
         {
           fontsel = egg_xfont_selector_new (_("Choose a terminal font"));
           g_object_set_data (G_OBJECT (editor), "font-selector", fontsel);
- 
+
           profile_editor_update_x_font (editor, profile);
-      
+
           g_signal_connect (fontsel, "changed",
                             G_CALLBACK (font_changed), profile);
 
@@ -1231,9 +1250,9 @@ terminal_profile_edit (TerminalProfile *
 
           gtk_box_pack_start (GTK_BOX (w), GTK_WIDGET (fontsel), TRUE, TRUE, 0);
         }
-      
+
       gtk_widget_show_all (w);
-      
+
       w = glade_xml_get_widget (xml, "reset-compat-defaults-button");
       g_signal_connect (G_OBJECT (w), "clicked",
 			G_CALLBACK (reset_compat_defaults_clicked),
@@ -1252,7 +1271,7 @@ terminal_profile_edit (TerminalProfile *
                                     GTK_WINDOW (transient_parent));
       gtk_widget_hide (editor); /* re-show the window on its new parent */
     }
-  
+
   /*   gtk_widget_show_all (editor);*/
   gtk_window_present (GTK_WINDOW (editor));
 }
@@ -1262,7 +1281,7 @@ set_insensitive (GtkWidget  *editor,
                  const char *widget_name,
                  gboolean    setting)
 {
-  GtkWidget *w;  
+  GtkWidget *w;
 
   w = profile_editor_get_widget (editor, widget_name);
 
@@ -1275,7 +1294,7 @@ profile_editor_update_sensitivity (GtkWi
 {
   const TerminalSettingMask *mask;
   GtkWidget *w;
-  
+
   /* the first time in this function the object data is unset
    * thus the last mask is 0, which means everything is sensitive,
    * which is what we want.
@@ -1286,7 +1305,7 @@ profile_editor_update_sensitivity (GtkWi
   last_mask = GPOINTER_TO_INT (g_object_get_data (G_OBJECT (editor),
                                                   "cached-lock-mask"));
 #endif
-  
+
   mask = terminal_profile_get_locked_settings (profile);
 
   /* This one can't be short-circuited by the cache, since
@@ -1295,7 +1314,7 @@ profile_editor_update_sensitivity (GtkWi
   w = profile_editor_get_widget (editor, "custom-command-entry");
   gtk_widget_set_sensitive (w,
                             !((mask->custom_command) ||
-                              !terminal_profile_get_use_custom_command (profile))); 
+                              !terminal_profile_get_use_custom_command (profile)));
   if (terminal_profile_get_background_type (profile) == TERMINAL_BACKGROUND_IMAGE)
     {
       w = profile_editor_get_widget (editor, "background-image-fileentry");
@@ -1305,7 +1324,7 @@ profile_editor_update_sensitivity (GtkWi
       w = profile_editor_get_widget (editor, "darken-background-vbox");
       gtk_widget_set_sensitive (w, !(mask->background_darkness));
     }
-  else if (terminal_profile_get_background_type (profile) == TERMINAL_BACKGROUND_TRANSPARENT) 
+  else if (terminal_profile_get_background_type (profile) == TERMINAL_BACKGROUND_TRANSPARENT)
   {
       w = profile_editor_get_widget (editor, "darken-background-vbox");
       gtk_widget_set_sensitive (w, !(mask->background_darkness));
@@ -1313,7 +1332,7 @@ profile_editor_update_sensitivity (GtkWi
       gtk_widget_set_sensitive (w, FALSE);
       w = profile_editor_get_widget (editor, "scroll-background-checkbutton");
       gtk_widget_set_sensitive (w, FALSE);
-      
+
     }
   else
     {
@@ -1346,31 +1365,31 @@ profile_editor_update_sensitivity (GtkWi
       set_insensitive (editor, "color-scheme-optionmenu", TRUE);
     }
   else
-    {      
+    {
       set_insensitive (editor, "foreground-colorpicker",
                        mask->foreground_color);
-      
+
       set_insensitive (editor, "background-colorpicker",
                        mask->background_color);
-      
+
       set_insensitive (editor, "color-scheme-optionmenu",
                        (mask->background_color) ||
                        (mask->foreground_color));
     }
-  
+
 #if 0 /* uncomment once we've tested the sensitivity code */
   if (mask == last_mask)
     return;
   g_object_set_data (G_OBJECT (editor), "cached-lock-mask",
                      GINT_TO_POINTER (mask));
 #endif
-  
+
   set_insensitive (editor, "profile-name-entry",
                    mask->visible_name);
 
   set_insensitive (editor, "profile-icon-entry",
                    mask->icon_file);
-  
+
   set_insensitive (editor, "blink-cursor-checkbutton",
                    mask->cursor_blink);
 
@@ -1379,13 +1398,16 @@ profile_editor_update_sensitivity (GtkWi
 
   set_insensitive (editor, "title-entry",
                    mask->title);
-  
+
   set_insensitive (editor, "title-mode-optionmenu",
                    mask->title_mode);
 
   set_insensitive (editor, "allow-bold-checkbutton",
                    mask->allow_bold);
 
+  set_insensitive (editor, "maximized-checkbutton",
+                   mask->maximized);
+
   set_insensitive (editor, "bell-checkbutton",
                    mask->silent_bell);
 
@@ -1400,7 +1422,7 @@ profile_editor_update_sensitivity (GtkWi
 
   set_insensitive (editor, "scrollback-kilobytes-spinbutton",
                    mask->scrollback_lines);
-  
+
   set_insensitive (editor, "scroll-on-keystroke-checkbutton",
                    mask->scroll_on_keystroke);
 
@@ -1440,7 +1462,7 @@ profile_editor_update_sensitivity (GtkWi
   set_insensitive (editor, "system-font-checkbutton",
                    mask->use_system_font);
 
-  
+
   {
     int i;
 
@@ -1465,12 +1487,12 @@ profile_editor_update_visible_name (GtkW
 {
   char *s;
   GtkWidget *w;
-  
+
   s = g_strdup_printf (_("Editing Profile \"%s\""),
                        terminal_profile_get_visible_name (profile));
-  
+
   gtk_window_set_title (GTK_WINDOW (editor), s);
-  
+
   g_free (s);
 
   w = profile_editor_get_widget (editor, "profile-name-entry");
@@ -1486,19 +1508,19 @@ profile_editor_update_icon (GtkWidget   
   GtkWidget *w;
   char *current_filename;
   const char *profile_filename;
-  
+
   w = profile_editor_get_widget (editor, "profile-icon-entry");
 
   current_filename = gnome_icon_entry_get_filename (GNOME_ICON_ENTRY (w));
 
   profile_filename = terminal_profile_get_icon_file (profile);
-  
+
   if (current_filename && profile_filename &&
       strcmp (current_filename, profile_filename) == 0)
     return;
 
   g_free (current_filename);
-  
+
   gnome_icon_entry_set_filename (GNOME_ICON_ENTRY (w), profile_filename);
 }
 
@@ -1531,12 +1553,12 @@ profile_editor_update_color_pickers (Gtk
 {
   GtkWidget *w;
   GdkColor color1, color2;
-  
+
   terminal_profile_get_color_scheme (profile, &color1, &color2);
-  
+
   w = profile_editor_get_widget (editor, "foreground-colorpicker");
   colorpicker_set_if_changed (w, &color1);
-  
+
   w = profile_editor_get_widget (editor, "background-colorpicker");
   colorpicker_set_if_changed (w, &color2);
 }
@@ -1550,7 +1572,7 @@ profile_editor_update_color_scheme_menu 
   GtkWidget *w;
 
   w = profile_editor_get_widget (editor, "color-scheme-optionmenu");
-  
+
   terminal_profile_get_color_scheme (profile, &fg, &bg);
 
   i = 0;
@@ -1589,7 +1611,7 @@ profile_editor_update_title_mode (GtkWid
   GtkWidget *w;
 
   w = profile_editor_get_widget (editor, "title-mode-optionmenu");
-  
+
   gtk_option_menu_set_history (GTK_OPTION_MENU (w),
                                terminal_profile_get_title_mode (profile));
 }
@@ -1601,19 +1623,31 @@ profile_editor_update_allow_bold (GtkWid
   GtkWidget *w;
 
   w = profile_editor_get_widget (editor, "allow-bold-checkbutton");
-  
+
   gtk_toggle_button_set_active (GTK_TOGGLE_BUTTON (w),
                                 terminal_profile_get_allow_bold (profile));
 }
 
 static void
+profile_editor_update_maximized (GtkWidget       *editor,
+                                  TerminalProfile *profile)
+{
+  GtkWidget *w;
+
+  w = profile_editor_get_widget (editor, "maximized-checkbutton");
+
+  gtk_toggle_button_set_active (GTK_TOGGLE_BUTTON (w),
+                                terminal_profile_get_maximized (profile));
+}
+
+static void
 profile_editor_update_silent_bell (GtkWidget       *editor,
                                    TerminalProfile *profile)
 {
   GtkWidget *w;
 
   w = profile_editor_get_widget (editor, "bell-checkbutton");
-  
+
   gtk_toggle_button_set_active (GTK_TOGGLE_BUTTON (w),
                                 !terminal_profile_get_silent_bell (profile));
 }
@@ -1637,7 +1671,7 @@ profile_editor_update_scrollbar_position
   GtkWidget *w;
 
   w = profile_editor_get_widget (editor, "scrollbar-position-optionmenu");
-  
+
   gtk_option_menu_set_history (GTK_OPTION_MENU (w),
                                terminal_profile_get_scrollbar_position (profile));
 }
@@ -1650,13 +1684,13 @@ profile_editor_update_scrollback_lines (
   int lines;
 
   lines = terminal_profile_get_scrollback_lines (profile);
-  
+
   w = profile_editor_get_widget (editor, "scrollback-lines-spinbutton");
 
   gtk_spin_button_set_value (GTK_SPIN_BUTTON (w), lines);
 
   w = profile_editor_get_widget (editor, "scrollback-kilobytes-spinbutton");
-  
+
   gtk_spin_button_set_value (GTK_SPIN_BUTTON (w), (BYTES_PER_LINE * lines) / 1024);
 }
 
@@ -1667,7 +1701,7 @@ profile_editor_update_scroll_on_keystrok
   GtkWidget *w;
 
   w = profile_editor_get_widget (editor, "scroll-on-keystroke-checkbutton");
-  
+
   gtk_toggle_button_set_active (GTK_TOGGLE_BUTTON (w),
                                 terminal_profile_get_scroll_on_keystroke (profile));
 }
@@ -1679,7 +1713,7 @@ profile_editor_update_scroll_on_output (
   GtkWidget *w;
 
   w = profile_editor_get_widget (editor, "scroll-on-output-checkbutton");
-  
+
   gtk_toggle_button_set_active (GTK_TOGGLE_BUTTON (w),
                                 terminal_profile_get_scroll_on_output (profile));
 }
@@ -1691,7 +1725,7 @@ profile_editor_update_exit_action (GtkWi
   GtkWidget *w;
 
   w = profile_editor_get_widget (editor, "exit-action-optionmenu");
-  
+
   gtk_option_menu_set_history (GTK_OPTION_MENU (w),
                                terminal_profile_get_exit_action (profile));
 }
@@ -1703,7 +1737,7 @@ profile_editor_update_login_shell (GtkWi
   GtkWidget *w;
 
   w = profile_editor_get_widget (editor, "login-shell-checkbutton");
-  
+
   gtk_toggle_button_set_active (GTK_TOGGLE_BUTTON (w),
                                 terminal_profile_get_login_shell (profile));
 }
@@ -1715,7 +1749,7 @@ profile_editor_update_update_records (Gt
   GtkWidget *w;
 
   w = profile_editor_get_widget (editor, "update-records-checkbutton");
-  
+
   gtk_toggle_button_set_active (GTK_TOGGLE_BUTTON (w),
                                terminal_profile_get_update_records (profile));
 
@@ -1728,7 +1762,7 @@ profile_editor_update_use_custom_command
   GtkWidget *w;
 
   w = profile_editor_get_widget (editor, "use-custom-command-checkbutton");
-  
+
   gtk_toggle_button_set_active (GTK_TOGGLE_BUTTON (w),
                                terminal_profile_get_use_custom_command (profile));
 
@@ -1744,7 +1778,7 @@ profile_editor_update_custom_command (Gt
   w = profile_editor_get_widget (editor, "custom-command-entry");
 
   command = terminal_profile_get_custom_command (profile);
-  
+
   entry_set_text_if_changed (GTK_ENTRY (w), command);
 
   /* FIXME get error from this and display it in a tooltip
@@ -1766,7 +1800,7 @@ profile_editor_update_custom_command (Gt
       GdkColor color;
       gdk_color_parse ("red", &color);
       gtk_widget_modify_text (w, GTK_STATE_NORMAL, &color);
-    }            
+    }
 }
 
 static void
@@ -1778,16 +1812,16 @@ profile_editor_update_palette (GtkWidget
   GdkColor palette[TERMINAL_PALETTE_SIZE];
 
   terminal_profile_get_palette (profile, palette);
-  
+
   i = 0;
   while (i < TERMINAL_PALETTE_SIZE)
     {
       char *s = g_strdup_printf ("palette-colorpicker-%d", i+1);
       w = profile_editor_get_widget (editor, s);
       g_free (s);
-      
+
       colorpicker_set_if_changed (w, &palette[i]);
-      
+
       ++i;
     }
 
@@ -1809,13 +1843,13 @@ profile_editor_update_palette (GtkWidget
               match = FALSE;
               break;
             }
-          
+
           ++j;
         }
 
       if (match)
         break;
-      
+
       ++i;
     }
 
@@ -1837,14 +1871,14 @@ profile_editor_update_x_font (GtkWidget 
 
   if (terminal_widget_supports_pango_fonts ())
     return;
-  
+
   fontsel = g_object_get_data (G_OBJECT (editor), "font-selector");
 
   /* If the current selector font is the same as the new font,
    * don't do any work.
    */
   name = egg_xfont_selector_get_font_name (EGG_XFONT_SELECTOR (fontsel));
-  
+
   if (name == NULL)
     return;
 
@@ -1853,9 +1887,9 @@ profile_editor_update_x_font (GtkWidget 
       g_free (name);
       return;
     }
-  
+
   g_free (name);
-  
+
   egg_xfont_selector_set_font_name (EGG_XFONT_SELECTOR (fontsel),
 				    terminal_profile_get_x_font (profile));
 
@@ -1912,7 +1946,7 @@ profile_editor_update_scroll_background 
   GtkWidget *w;
 
   w = profile_editor_get_widget (editor, "scroll-background-checkbutton");
-  
+
   gtk_toggle_button_set_active (GTK_TOGGLE_BUTTON (w),
                                terminal_profile_get_scroll_background (profile));
 }
@@ -1927,7 +1961,7 @@ profile_editor_update_background_darknes
   w = profile_editor_get_widget (editor, "darken-background-scale");
 
   v = terminal_profile_get_background_darkness (profile);
-  
+
   gtk_range_set_value (GTK_RANGE (w), v);
 }
 
@@ -1938,7 +1972,7 @@ profile_editor_update_backspace_binding 
   GtkWidget *w;
 
   w = profile_editor_get_widget (editor, "backspace-binding-optionmenu");
-  
+
   gtk_option_menu_set_history (GTK_OPTION_MENU (w),
                                terminal_profile_get_backspace_binding (profile));
 }
@@ -1950,7 +1984,7 @@ profile_editor_update_delete_binding (Gt
   GtkWidget *w;
 
   w = profile_editor_get_widget (editor, "delete-binding-optionmenu");
-  
+
   gtk_option_menu_set_history (GTK_OPTION_MENU (w),
                                terminal_profile_get_delete_binding (profile));
 }
@@ -1962,7 +1996,7 @@ profile_editor_update_use_theme_colors (
   GtkWidget *w;
 
   w = profile_editor_get_widget (editor, "use-theme-colors-checkbutton");
-  
+
   gtk_toggle_button_set_active (GTK_TOGGLE_BUTTON (w),
                                 terminal_profile_get_use_theme_colors (profile));
 }
@@ -1974,7 +2008,7 @@ profile_editor_update_use_system_font (G
   GtkWidget *w;
 
   w = profile_editor_get_widget (editor, "system-font-checkbutton");
-  
+
   gtk_toggle_button_set_active (GTK_TOGGLE_BUTTON (w),
                                 terminal_profile_get_use_system_font (profile));
 }
@@ -1987,7 +2021,7 @@ profile_editor_update_font (GtkWidget   
 
   if (!terminal_widget_supports_pango_fonts ())
     return;
-  
+
   w = g_object_get_data (G_OBJECT (editor), "font-selector");
 
   fontpicker_set_if_changed (w,
@@ -2000,16 +2034,16 @@ profile_editor_get_widget (GtkWidget  *e
 {
   GladeXML *xml;
   GtkWidget *w;
-  
+
   xml = g_object_get_data (G_OBJECT (editor),
                            "glade-xml");
 
   g_return_val_if_fail (xml, NULL);
-  
+
   w = glade_xml_get_widget (xml, widget_name);
 
   if (w == NULL)
     g_error ("No such widget %s", widget_name);
-  
+
   return w;
 }
diff -upr gnome-terminal-2.11.2/src/terminal-profile.c gnome-terminal-2.11.2-maximized/src/terminal-profile.c
--- gnome-terminal-2.11.2/src/terminal-profile.c	2005-07-02 02:07:57.000000000 +0200
+++ gnome-terminal-2.11.2-maximized/src/terminal-profile.c	2005-08-19 09:41:43.000000000 +0200
@@ -28,7 +28,7 @@
 #include <stdlib.h>
 
 /* If you add a key, you need to update code:
- * 
+ *
  *  - in the function that sets the key
  *  - in the update function that reads all keys on startup
  *  - in the profile_change_notify function
@@ -70,6 +70,7 @@
 #define KEY_USE_SYSTEM_FONT "use_system_font"
 #define KEY_USE_SKEY "use_skey"
 #define KEY_FONT "font"
+#define KEY_MAXIMIZED "maximized"
 
 struct _TerminalProfilePrivate
 {
@@ -112,10 +113,10 @@ struct _TerminalProfilePrivate
   TerminalEraseBinding delete_binding;
 
   PangoFontDescription *font;
-  
+
   guint icon_load_failed : 1;
   guint background_load_failed : 1;
-  
+
   guint cursor_blink : 1;
   guint default_show_menubar : 1;
   guint allow_bold : 1;
@@ -130,6 +131,7 @@ struct _TerminalProfilePrivate
   guint use_system_font : 1;
   guint use_skey : 1;
   guint forgotten : 1;
+  guint maximized : 1;
 };
 
 static gboolean
@@ -163,7 +165,7 @@ static const GConfEnumStringPair title_m
 static const GConfEnumStringPair scrollbar_positions[] = {
   { TERMINAL_SCROLLBAR_LEFT, "left" },
   { TERMINAL_SCROLLBAR_RIGHT, "right" },
-  { TERMINAL_SCROLLBAR_HIDDEN, "hidden" },  
+  { TERMINAL_SCROLLBAR_HIDDEN, "hidden" },
   { -1, NULL }
 };
 
@@ -231,7 +233,7 @@ terminal_profile_get_type (void)
   static GType object_type = 0;
 
   g_type_init ();
-  
+
   if (!object_type)
     {
       static const GTypeInfo object_info =
@@ -246,12 +248,12 @@ terminal_profile_get_type (void)
         0,              /* n_preallocs */
         (GInstanceInitFunc) terminal_profile_init,
       };
-      
+
       object_type = g_type_register_static (G_TYPE_OBJECT,
                                             "TerminalProfile",
                                             &object_info, 0);
     }
-  
+
   return object_type;
 }
 
@@ -259,7 +261,7 @@ static void
 terminal_profile_init (TerminalProfile *profile)
 {
   g_return_if_fail (profiles != NULL);
-  
+
   profile->priv = g_new0 (TerminalProfilePrivate, 1);
   terminal_setting_mask_clear (&profile->priv->locked);
   profile->priv->cursor_blink = FALSE;
@@ -277,6 +279,7 @@ terminal_profile_init (TerminalProfile *
   profile->priv->scrollbar_position = TERMINAL_SCROLLBAR_RIGHT;
   profile->priv->scrollback_lines = 1000;
   profile->priv->allow_bold = TRUE;
+  profile->priv->maximized = FALSE;
   profile->priv->word_chars = g_strdup ("");
   profile->priv->custom_command = g_strdup ("");
   profile->priv->icon_file = g_strdup ("gnome-terminal.png");
@@ -303,9 +306,9 @@ static void
 terminal_profile_class_init (TerminalProfileClass *klass)
 {
   GObjectClass *object_class = G_OBJECT_CLASS (klass);
-  
+
   parent_class = g_type_class_peek_parent (klass);
-  
+
   object_class->finalize = terminal_profile_finalize;
 
   signals[CHANGED] =
@@ -335,7 +338,7 @@ terminal_profile_finalize (GObject *obje
   profile = TERMINAL_PROFILE (object);
 
   terminal_profile_forget (profile);
-  
+
   gconf_client_notify_remove (profile->priv->conf,
                               profile->priv->notify_id);
   profile->priv->notify_id = 0;
@@ -356,9 +359,9 @@ terminal_profile_finalize (GObject *obje
     g_object_unref (G_OBJECT (profile->priv->background_image));
 
   pango_font_description_free (profile->priv->font);
-  
+
   g_free (profile->priv);
-  
+
   G_OBJECT_CLASS (parent_class)->finalize (object);
 }
 
@@ -372,14 +375,14 @@ terminal_profile_new (const char *name,
   g_return_val_if_fail (profiles != NULL, NULL);
   g_return_val_if_fail (terminal_profile_lookup (name) == NULL,
                         NULL);
-  
+
   profile = g_object_new (TERMINAL_TYPE_PROFILE, NULL);
 
   profile->priv->conf = conf;
   g_object_ref (G_OBJECT (conf));
-  
+
   profile->priv->name = g_strdup (name);
-  
+
   profile->priv->profile_dir = gconf_concat_dir_and_key (CONF_PROFILES_PREFIX,
                                                          profile->priv->name);
 
@@ -393,7 +396,7 @@ terminal_profile_new (const char *name,
                   profile->priv->profile_dir, err->message);
       g_error_free (err);
     }
-  
+
   err = NULL;
   profile->priv->notify_id =
     gconf_client_notify_add (conf,
@@ -401,14 +404,14 @@ terminal_profile_new (const char *name,
                              profile_change_notify,
                              profile,
                              NULL, &err);
-  
+
   if (err)
     {
       g_printerr (_("There was an error subscribing to notification of terminal profile changes. (%s)\n"),
                   err->message);
       g_error_free (err);
     }
-  
+
   g_hash_table_insert (profiles, profile->priv->name, profile);
 
   if (default_profile == NULL &&
@@ -418,7 +421,7 @@ terminal_profile_new (const char *name,
       /* We are the default profile */
       default_profile = profile;
     }
-  
+
   return profile;
 }
 
@@ -441,10 +444,10 @@ terminal_profile_set_visible_name (Termi
   char *key;
 
   RETURN_IF_NOTIFYING (profile);
-  
+
   key = gconf_concat_dir_and_key (profile->priv->profile_dir,
                                   KEY_VISIBLE_NAME);
-  
+
   gconf_client_set_string (profile->priv->conf,
                            key,
                            name,
@@ -475,10 +478,10 @@ terminal_profile_set_silent_bell (Termin
   char *key;
 
   RETURN_IF_NOTIFYING (profile);
-  
+
   key = gconf_concat_dir_and_key (profile->priv->profile_dir,
                                   KEY_SILENT_BELL);
-  
+
   gconf_client_set_bool (profile->priv->conf,
                          key,
                          setting,
@@ -491,7 +494,7 @@ gboolean
 terminal_profile_get_cursor_blink (TerminalProfile  *profile)
 {
   g_return_val_if_fail (TERMINAL_IS_PROFILE (profile), FALSE);
-  
+
   return profile->priv->cursor_blink;
 }
 
@@ -502,10 +505,10 @@ terminal_profile_set_cursor_blink (Termi
   char *key;
 
   RETURN_IF_NOTIFYING (profile);
-  
+
   key = gconf_concat_dir_and_key (profile->priv->profile_dir,
                                   KEY_CURSOR_BLINK);
-  
+
   gconf_client_set_bool (profile->priv->conf,
                          key,
                          setting,
@@ -530,10 +533,10 @@ terminal_profile_set_scroll_on_keystroke
   char *key;
 
   RETURN_IF_NOTIFYING (profile);
-  
+
   key = gconf_concat_dir_and_key (profile->priv->profile_dir,
                                   KEY_SCROLL_ON_KEYSTROKE);
-  
+
   gconf_client_set_bool (profile->priv->conf,
                          key,
                          setting,
@@ -558,10 +561,10 @@ terminal_profile_set_scroll_on_output (T
   char *key;
 
   RETURN_IF_NOTIFYING (profile);
-  
+
   key = gconf_concat_dir_and_key (profile->priv->profile_dir,
                                   KEY_SCROLL_ON_OUTPUT);
-  
+
   gconf_client_set_bool (profile->priv->conf,
                          key,
                          setting,
@@ -584,14 +587,14 @@ terminal_profile_set_scrollbar_position 
 {
   char *key;
   const char *pos_string;
-  
+
   RETURN_IF_NOTIFYING (profile);
-  
+
   key = gconf_concat_dir_and_key (profile->priv->profile_dir,
                                   KEY_SCROLLBAR_POSITION);
 
   pos_string = gconf_enum_to_string (scrollbar_positions, pos);
-  
+
   gconf_client_set_string (profile->priv->conf,
                            key,
                            pos_string,
@@ -604,8 +607,8 @@ int
 terminal_profile_get_scrollback_lines (TerminalProfile *profile)
 {
   g_return_val_if_fail (TERMINAL_IS_PROFILE (profile), 500);
-  
-  return profile->priv->scrollback_lines;  
+
+  return profile->priv->scrollback_lines;
 }
 
 void
@@ -615,10 +618,10 @@ terminal_profile_set_scrollback_lines (T
   char *key;
 
   RETURN_IF_NOTIFYING (profile);
-  
+
   key = gconf_concat_dir_and_key (profile->priv->profile_dir,
                                   KEY_SCROLLBACK_LINES);
-  
+
   gconf_client_set_int (profile->priv->conf,
                         key,
                         lines,
@@ -633,7 +636,7 @@ terminal_profile_get_color_scheme (Termi
                                    GdkColor         *background)
 {
   g_return_if_fail (TERMINAL_IS_PROFILE (profile));
-  
+
   if (foreground)
     *foreground = profile->priv->foreground;
   if (background)
@@ -645,12 +648,12 @@ color_to_string (const GdkColor *color)
 {
   char *s;
   char *ptr;
-  
+
   s = g_strdup_printf ("#%2X%2X%2X",
                        color->red / 256,
                        color->green / 256,
                        color->blue / 256);
-  
+
   for (ptr = s; *ptr; ptr++)
     if (*ptr == ' ')
       *ptr = '0';
@@ -668,7 +671,7 @@ terminal_profile_set_color_scheme (Termi
   char *str;
 
   RETURN_IF_NOTIFYING (profile);
-  
+
   fg_key = gconf_concat_dir_and_key (profile->priv->profile_dir,
                                      KEY_FOREGROUND_COLOR);
 
@@ -676,7 +679,7 @@ terminal_profile_set_color_scheme (Termi
                                      KEY_BACKGROUND_COLOR);
 
   str = color_to_string (foreground);
-  
+
   gconf_client_set_string (profile->priv->conf,
                            fg_key, str, NULL);
 
@@ -688,7 +691,7 @@ terminal_profile_set_color_scheme (Termi
                            bg_key, str, NULL);
 
   g_free (str);
-  
+
   g_free (fg_key);
   g_free (bg_key);
 }
@@ -697,7 +700,7 @@ const char*
 terminal_profile_get_word_chars (TerminalProfile  *profile)
 {
   g_return_val_if_fail (TERMINAL_IS_PROFILE (profile), NULL);
-    
+
   return profile->priv->word_chars;
 }
 
@@ -708,10 +711,10 @@ terminal_profile_set_word_chars (Termina
   char *key;
 
   RETURN_IF_NOTIFYING (profile);
-  
+
   key = gconf_concat_dir_and_key (profile->priv->profile_dir,
                                   KEY_WORD_CHARS);
-  
+
   gconf_client_set_string (profile->priv->conf,
                            key,
                            word_chars,
@@ -724,7 +727,7 @@ const char*
 terminal_profile_get_title (TerminalProfile  *profile)
 {
   g_return_val_if_fail (TERMINAL_IS_PROFILE (profile), NULL);
-  
+
   return profile->priv->title;
 }
 
@@ -735,10 +738,10 @@ terminal_profile_set_title (TerminalProf
   char *key;
 
   RETURN_IF_NOTIFYING (profile);
-  
+
   key = gconf_concat_dir_and_key (profile->priv->profile_dir,
                                   KEY_TITLE);
-  
+
   gconf_client_set_string (profile->priv->conf,
                            key,
                            title,
@@ -751,7 +754,7 @@ TerminalTitleMode
 terminal_profile_get_title_mode (TerminalProfile  *profile)
 {
   g_return_val_if_fail (TERMINAL_IS_PROFILE (profile), 0);
-  
+
   return profile->priv->title_mode;
 }
 
@@ -761,14 +764,14 @@ terminal_profile_set_title_mode (Termina
 {
   char *key;
   const char *mode_string;
-  
+
   RETURN_IF_NOTIFYING (profile);
-  
+
   key = gconf_concat_dir_and_key (profile->priv->profile_dir,
                                   KEY_TITLE_MODE);
 
   mode_string = gconf_enum_to_string (title_modes, mode);
-  
+
   gconf_client_set_string (profile->priv->conf,
                            key,
                            mode_string,
@@ -793,10 +796,37 @@ terminal_profile_set_allow_bold (Termina
   char *key;
 
   RETURN_IF_NOTIFYING (profile);
-  
+
   key = gconf_concat_dir_and_key (profile->priv->profile_dir,
                                   KEY_ALLOW_BOLD);
-  
+
+  gconf_client_set_bool (profile->priv->conf,
+                         key,
+                         setting,
+                         NULL);
+
+  g_free (key);
+}
+
+gboolean
+terminal_profile_get_maximized (TerminalProfile  *profile)
+{
+    g_return_val_if_fail (TERMINAL_IS_PROFILE (profile), FALSE);
+
+  return profile->priv->maximized;
+}
+
+void
+terminal_profile_set_maximized (TerminalProfile  *profile,
+                                          gboolean          setting)
+{
+  char *key;
+
+  RETURN_IF_NOTIFYING (profile);
+
+  key = gconf_concat_dir_and_key (profile->priv->profile_dir,
+                                  KEY_MAXIMIZED);
+
   gconf_client_set_bool (profile->priv->conf,
                          key,
                          setting,
@@ -809,7 +839,7 @@ gboolean
 terminal_profile_get_default_show_menubar (TerminalProfile *profile)
 {
   g_return_val_if_fail (TERMINAL_IS_PROFILE (profile), TRUE);
-  
+
   return profile->priv->default_show_menubar;
 }
 
@@ -820,10 +850,10 @@ terminal_profile_set_default_show_menuba
   char *key;
 
   RETURN_IF_NOTIFYING (profile);
-  
+
   key = gconf_concat_dir_and_key (profile->priv->profile_dir,
                                   KEY_DEFAULT_SHOW_MENUBAR);
-  
+
   gconf_client_set_bool (profile->priv->conf,
                          key,
                          setting,
@@ -847,14 +877,14 @@ terminal_profile_set_exit_action (Termin
 {
   char *key;
   const char *action_string;
-  
+
   RETURN_IF_NOTIFYING (profile);
-  
+
   key = gconf_concat_dir_and_key (profile->priv->profile_dir,
                                   KEY_EXIT_ACTION);
 
   action_string = gconf_enum_to_string (exit_actions, action);
-  
+
   gconf_client_set_string (profile->priv->conf,
                            key,
                            action_string,
@@ -878,10 +908,10 @@ terminal_profile_set_login_shell (Termin
   char *key;
 
   RETURN_IF_NOTIFYING (profile);
-  
+
   key = gconf_concat_dir_and_key (profile->priv->profile_dir,
                                   KEY_LOGIN_SHELL);
-  
+
   gconf_client_set_bool (profile->priv->conf,
                          key,
                          setting,
@@ -905,10 +935,10 @@ terminal_profile_set_update_records (Ter
   char *key;
 
   RETURN_IF_NOTIFYING (profile);
-  
+
   key = gconf_concat_dir_and_key (profile->priv->profile_dir,
                                   KEY_UPDATE_RECORDS);
-  
+
   gconf_client_set_bool (profile->priv->conf,
                          key,
                          setting,
@@ -932,10 +962,10 @@ terminal_profile_set_use_custom_command 
   char *key;
 
   RETURN_IF_NOTIFYING (profile);
-  
+
   key = gconf_concat_dir_and_key (profile->priv->profile_dir,
                                   KEY_USE_CUSTOM_COMMAND);
-  
+
   gconf_client_set_bool (profile->priv->conf,
                          key,
                          setting,
@@ -959,10 +989,10 @@ terminal_profile_set_custom_command (Ter
   char *key;
 
   RETURN_IF_NOTIFYING (profile);
-  
+
   key = gconf_concat_dir_and_key (profile->priv->profile_dir,
                                   KEY_CUSTOM_COMMAND);
-  
+
   gconf_client_set_string (profile->priv->conf,
                            key,
                            command,
@@ -975,7 +1005,7 @@ const char*
 terminal_profile_get_icon_file (TerminalProfile *profile)
 {
   g_return_val_if_fail (TERMINAL_IS_PROFILE (profile), NULL);
-  
+
   return profile->priv->icon_file;
 }
 
@@ -983,7 +1013,7 @@ GdkPixbuf*
 terminal_profile_get_icon (TerminalProfile *profile)
 {
   g_return_val_if_fail (TERMINAL_IS_PROFILE (profile), NULL);
-  
+
   if (profile->priv->icon == NULL &&
       !profile->priv->icon_load_failed)
     {
@@ -1004,10 +1034,10 @@ terminal_profile_get_icon (TerminalProfi
                       terminal_profile_get_visible_name (profile));
 
           profile->priv->icon_load_failed = TRUE;
-          
+
           goto out;
         }
-      
+
       err = NULL;
       pixbuf = gdk_pixbuf_new_from_file (filename, &err);
 
@@ -1022,7 +1052,7 @@ terminal_profile_get_icon (TerminalProfi
           g_free (filename);
 
           profile->priv->icon_load_failed = TRUE;
-          
+
           goto out;
         }
 
@@ -1042,7 +1072,7 @@ terminal_profile_set_icon_file (Terminal
   char *key;
 
   RETURN_IF_NOTIFYING (profile);
-  
+
   key = gconf_concat_dir_and_key (profile->priv->profile_dir,
                                   KEY_ICON);
 
@@ -1065,7 +1095,7 @@ gboolean
 terminal_profile_get_is_default (TerminalProfile *profile)
 {
   g_return_val_if_fail (TERMINAL_IS_PROFILE (profile), FALSE);
-  
+
   return profile == default_profile;
 }
 
@@ -1074,7 +1104,7 @@ terminal_profile_set_is_default (Termina
                                  gboolean         setting)
 {
   RETURN_IF_NOTIFYING (profile);
-  
+
   gconf_client_set_string (profile->priv->conf,
                            CONF_GLOBAL_PREFIX"/default_profile",
                            terminal_profile_get_name (profile),
@@ -1086,7 +1116,7 @@ terminal_profile_get_palette (TerminalPr
                               GdkColor        *colors)
 {
   g_return_if_fail (TERMINAL_IS_PROFILE (profile));
-  
+
   memcpy (colors, profile->priv->palette,
           TERMINAL_PALETTE_SIZE * sizeof (GdkColor));
 }
@@ -1099,12 +1129,12 @@ terminal_profile_set_palette (TerminalPr
   char *str;
 
   RETURN_IF_NOTIFYING (profile);
-  
+
   key = gconf_concat_dir_and_key (profile->priv->profile_dir,
                                   KEY_PALETTE);
 
   str = terminal_palette_to_string (colors);
-  
+
   gconf_client_set_string (profile->priv->conf,
                            key, str,
                            NULL);
@@ -1128,10 +1158,10 @@ terminal_profile_set_x_font (TerminalPro
   char *key;
 
   RETURN_IF_NOTIFYING (profile);
-  
+
   key = gconf_concat_dir_and_key (profile->priv->profile_dir,
                                   KEY_X_FONT);
-  
+
   gconf_client_set_string (profile->priv->conf,
                            key,
                            name,
@@ -1154,14 +1184,14 @@ terminal_profile_set_background_type (Te
 {
   char *key;
   const char *type_string;
-  
+
   RETURN_IF_NOTIFYING (profile);
-  
+
   key = gconf_concat_dir_and_key (profile->priv->profile_dir,
                                   KEY_BACKGROUND_TYPE);
 
   type_string = gconf_enum_to_string (background_types, type);
-  
+
   gconf_client_set_string (profile->priv->conf,
                            key,
                            type_string,
@@ -1174,7 +1204,7 @@ GdkPixbuf*
 terminal_profile_get_background_image (TerminalProfile *profile)
 {
   g_return_val_if_fail (TERMINAL_IS_PROFILE (profile), NULL);
-  
+
   if (profile->priv->background_image == NULL &&
       !profile->priv->background_load_failed)
     {
@@ -1195,10 +1225,10 @@ terminal_profile_get_background_image (T
                       terminal_profile_get_visible_name (profile));
 
           profile->priv->background_load_failed = TRUE;
-          
+
           goto out;
         }
-      
+
       err = NULL;
       pixbuf = gdk_pixbuf_new_from_file (filename, &err);
 
@@ -1213,7 +1243,7 @@ terminal_profile_get_background_image (T
           g_free (filename);
 
           profile->priv->background_load_failed = TRUE;
-          
+
           goto out;
         }
 
@@ -1240,10 +1270,10 @@ terminal_profile_set_background_image_fi
   char *key;
 
   RETURN_IF_NOTIFYING (profile);
-  
+
   key = gconf_concat_dir_and_key (profile->priv->profile_dir,
                                   KEY_BACKGROUND_IMAGE);
-  
+
   gconf_client_set_string (profile->priv->conf,
                            key,
                            filename,
@@ -1267,10 +1297,10 @@ terminal_profile_set_scroll_background (
   char *key;
 
   RETURN_IF_NOTIFYING (profile);
-  
+
   key = gconf_concat_dir_and_key (profile->priv->profile_dir,
                                   KEY_SCROLL_BACKGROUND);
-  
+
   gconf_client_set_bool (profile->priv->conf,
                          key,
                          setting,
@@ -1294,10 +1324,10 @@ terminal_profile_set_background_darkness
   char *key;
 
   RETURN_IF_NOTIFYING (profile);
-  
+
   key = gconf_concat_dir_and_key (profile->priv->profile_dir,
                                   KEY_BACKGROUND_DARKNESS);
-  
+
   gconf_client_set_float (profile->priv->conf,
                           key,
                           setting,
@@ -1320,14 +1350,14 @@ terminal_profile_set_backspace_binding (
 {
   char *key;
   const char *binding_string;
-  
+
   RETURN_IF_NOTIFYING (profile);
-  
+
   key = gconf_concat_dir_and_key (profile->priv->profile_dir,
                                   KEY_BACKSPACE_BINDING);
 
   binding_string = gconf_enum_to_string (erase_bindings, binding);
-  
+
   gconf_client_set_string (profile->priv->conf,
                            key,
                            binding_string,
@@ -1350,14 +1380,14 @@ terminal_profile_set_delete_binding (Ter
 {
   char *key;
   const char *binding_string;
-  
+
   RETURN_IF_NOTIFYING (profile);
-  
+
   key = gconf_concat_dir_and_key (profile->priv->profile_dir,
                                   KEY_DELETE_BINDING);
 
   binding_string = gconf_enum_to_string (erase_bindings, binding);
-  
+
   gconf_client_set_string (profile->priv->conf,
                            key,
                            binding_string,
@@ -1376,7 +1406,7 @@ terminal_profile_set_palette_entry (Term
   g_return_if_fail (TERMINAL_IS_PROFILE (profile));
   g_return_if_fail (i < TERMINAL_PALETTE_SIZE);
   g_return_if_fail (color != NULL);
-  
+
   memcpy (colors, profile->priv->palette,
           TERMINAL_PALETTE_SIZE * sizeof (GdkColor));
 
@@ -1400,10 +1430,10 @@ terminal_profile_set_use_theme_colors (T
   char *key;
 
   RETURN_IF_NOTIFYING (profile);
-  
+
   key = gconf_concat_dir_and_key (profile->priv->profile_dir,
                                   KEY_USE_THEME_COLORS);
-  
+
   gconf_client_set_bool (profile->priv->conf,
                          key,
                          setting,
@@ -1427,10 +1457,10 @@ terminal_profile_set_use_system_font (Te
   char *key;
 
   RETURN_IF_NOTIFYING (profile);
-  
+
   key = gconf_concat_dir_and_key (profile->priv->profile_dir,
                                   KEY_USE_SYSTEM_FONT);
-  
+
   gconf_client_set_bool (profile->priv->conf,
                          key,
                          setting,
@@ -1454,10 +1484,10 @@ terminal_profile_set_use_skey (TerminalP
   char *key;
 
   RETURN_IF_NOTIFYING (profile);
-  
+
   key = gconf_concat_dir_and_key (profile->priv->profile_dir,
                                   KEY_USE_SKEY);
-  
+
   gconf_client_set_bool (profile->priv->conf,
                          key,
                          setting,
@@ -1483,15 +1513,15 @@ terminal_profile_set_font (TerminalProfi
   char *str;
 
   g_return_if_fail (font_desc != NULL);
-  
+
   RETURN_IF_NOTIFYING (profile);
-  
+
   key = gconf_concat_dir_and_key (profile->priv->profile_dir,
                                   KEY_FONT);
 
   str = pango_font_description_to_string (font_desc);
   g_return_if_fail (str);
-  
+
   gconf_client_set_string (profile->priv->conf,
                            key,
                            str,
@@ -1508,7 +1538,7 @@ set_visible_name (TerminalProfile *profi
   if (candidate_name &&
       strcmp (profile->priv->visible_name, candidate_name) == 0)
     return FALSE;
-  
+
   if (candidate_name != NULL)
     {
       g_free (profile->priv->visible_name);
@@ -1525,7 +1555,7 @@ set_foreground_color (TerminalProfile *p
                       const char      *str_val)
 {
   GdkColor color;
-  
+
   if (str_val && gdk_color_parse (str_val, &color) &&
       !gdk_color_equal (&color, &profile->priv->foreground))
     {
@@ -1543,7 +1573,7 @@ set_background_color (TerminalProfile *p
                       const char      *str_val)
 {
   GdkColor color;
-  
+
   if (str_val && gdk_color_parse (str_val, &color) &&
       !gdk_color_equal (&color, &profile->priv->background))
     {
@@ -1563,7 +1593,7 @@ set_title (TerminalProfile *profile,
   if (candidate_name &&
       strcmp (profile->priv->title, candidate_name) == 0)
     return FALSE;
-  
+
   if (candidate_name != NULL)
     {
       g_free (profile->priv->title);
@@ -1580,7 +1610,7 @@ set_title_mode (TerminalProfile *profile
                 const char      *str_val)
 {
   int mode; /* TerminalTitleMode */
-  
+
   if (str_val &&
       gconf_string_to_enum (title_modes, str_val, &mode) &&
       mode != profile->priv->title_mode)
@@ -1601,7 +1631,7 @@ set_word_chars (TerminalProfile *profile
   if (candidate_chars &&
       strcmp (profile->priv->word_chars, candidate_chars) == 0)
     return FALSE;
-  
+
   if (candidate_chars != NULL)
     {
       g_free (profile->priv->word_chars);
@@ -1609,7 +1639,7 @@ set_word_chars (TerminalProfile *profile
       return TRUE;
     }
   /* otherwise just leave the old chars */
-  
+
   return FALSE;
 }
 
@@ -1618,7 +1648,7 @@ set_scrollbar_position (TerminalProfile 
                         const char      *str_val)
 {
   int pos; /* TerminalScrollbarPosition */
-  
+
   if (str_val &&
       gconf_string_to_enum (scrollbar_positions, str_val, &pos) &&
       pos != profile->priv->scrollbar_position)
@@ -1653,7 +1683,7 @@ set_exit_action (TerminalProfile *profil
                  const char      *str_val)
 {
   int action; /* TerminalExitAction */
-  
+
   if (str_val &&
       gconf_string_to_enum (exit_actions, str_val, &action) &&
       action != profile->priv->exit_action)
@@ -1674,7 +1704,7 @@ set_custom_command (TerminalProfile *pro
   if (candidate_command &&
       strcmp (profile->priv->custom_command, candidate_command) == 0)
     return FALSE;
-  
+
   if (candidate_command != NULL)
     {
       g_free (profile->priv->custom_command);
@@ -1682,7 +1712,7 @@ set_custom_command (TerminalProfile *pro
       return TRUE;
     }
   /* otherwise just leave the old command */
-  
+
   return FALSE;
 }
 
@@ -1693,10 +1723,10 @@ set_icon_file (TerminalProfile *profile,
   if (candidate_file &&
       strcmp (profile->priv->icon_file, candidate_file) == 0)
     return FALSE;
-  
+
   if (candidate_file != NULL)
     {
-      
+
       g_free (profile->priv->icon_file);
       profile->priv->icon_file = g_strdup (candidate_file);
 
@@ -1711,14 +1741,14 @@ set_icon_file (TerminalProfile *profile,
       return TRUE;
     }
   /* otherwise just leave the old filename */
-  
+
   return FALSE;
 }
 
 static gboolean
 set_palette (TerminalProfile *profile,
              const char      *candidate_str)
-{  
+{
   if (candidate_str != NULL)
     {
       GdkColor new_palette[TERMINAL_PALETTE_SIZE];
@@ -1737,7 +1767,7 @@ set_palette (TerminalProfile *profile,
 
       return TRUE;
     }
-  
+
   return FALSE;
 }
 
@@ -1748,7 +1778,7 @@ set_x_font (TerminalProfile *profile,
   if (candidate_font &&
       strcmp (profile->priv->x_font, candidate_font) == 0)
     return FALSE;
-  
+
   if (candidate_font != NULL)
     {
       g_free (profile->priv->x_font);
@@ -1756,7 +1786,7 @@ set_x_font (TerminalProfile *profile,
       return TRUE;
     }
   /* otherwise just leave the old font */
-  
+
   return FALSE;
 }
 
@@ -1765,7 +1795,7 @@ set_background_type (TerminalProfile *pr
                      const char      *str_val)
 {
   int type; /* TerminalBackgroundType */
-  
+
   if (str_val &&
       gconf_string_to_enum (background_types, str_val, &type) &&
       type != profile->priv->background_type)
@@ -1786,7 +1816,7 @@ set_background_image_file (TerminalProfi
   if (candidate_file &&
       strcmp (profile->priv->background_image_file, candidate_file) == 0)
     return FALSE;
-  
+
   if (candidate_file != NULL)
     {
       g_free (profile->priv->background_image_file);
@@ -1803,7 +1833,7 @@ set_background_image_file (TerminalProfi
       return TRUE;
     }
   /* otherwise just leave the old filename */
-  
+
   return FALSE;
 }
 
@@ -1812,7 +1842,7 @@ set_backspace_binding (TerminalProfile *
                        const char      *str_val)
 {
   int binding; /* TerminalEraseBinding */
-  
+
   if (str_val &&
       gconf_string_to_enum (erase_bindings, str_val, &binding) &&
       binding != profile->priv->backspace_binding)
@@ -1831,7 +1861,7 @@ set_delete_binding (TerminalProfile *pro
                     const char      *str_val)
 {
   int binding; /* TerminalEraseBinding */
-  
+
   if (str_val &&
       gconf_string_to_enum (erase_bindings, str_val, &binding) &&
       binding != profile->priv->delete_binding)
@@ -1851,7 +1881,7 @@ set_font (TerminalProfile *profile,
 {
   PangoFontDescription *desc;
   PangoFontDescription *tmp;
-  
+
   if (candidate_font_name == NULL)
     return FALSE; /* leave old font */
 
@@ -1870,7 +1900,7 @@ set_font (TerminalProfile *profile,
   pango_font_description_merge (tmp, desc, TRUE);
   pango_font_description_free (desc);
   desc = tmp;
-  
+
   if (pango_font_description_equal (profile->priv->font, desc))
     {
       pango_font_description_free (desc);
@@ -1890,7 +1920,7 @@ terminal_profile_update (TerminalProfile
   TerminalSettingMask locked;
   TerminalSettingMask old_locked;
   TerminalSettingMask mask;
-  
+
   terminal_setting_mask_clear (&mask);
   terminal_setting_mask_clear (&locked);
 
@@ -1960,6 +1990,7 @@ terminal_profile_update (TerminalProfile
   UPDATE_STRING  (KEY_TITLE,                title);
   UPDATE_STRING  (KEY_TITLE_MODE,           title_mode);
   UPDATE_BOOLEAN (KEY_ALLOW_BOLD,           allow_bold);
+  UPDATE_BOOLEAN (KEY_MAXIMIZED,            maximized);
   UPDATE_BOOLEAN (KEY_SILENT_BELL,          silent_bell);
   UPDATE_STRING  (KEY_WORD_CHARS,           word_chars);
   UPDATE_STRING  (KEY_SCROLLBAR_POSITION,   scrollbar_position);
@@ -1983,17 +2014,17 @@ terminal_profile_update (TerminalProfile
   UPDATE_BOOLEAN (KEY_USE_THEME_COLORS,     use_theme_colors);
   UPDATE_BOOLEAN (KEY_USE_SYSTEM_FONT,      use_system_font);
   UPDATE_STRING  (KEY_FONT,                 font);
-  
+
 #undef UPDATE_BOOLEAN
 #undef UPDATE_INTEGER
 #undef UPDATE_FLOAT
 #undef UPDATE_STRING
 
   /* Update state and emit signals */
-  
+
   old_locked = profile->priv->locked;
   profile->priv->locked = locked;
-  
+
   if (!(terminal_setting_mask_is_empty (&mask) &&
         terminal_setting_mask_equal (&locked, &old_locked)))
     emit_changed (profile, &mask);
@@ -2004,7 +2035,7 @@ static const gchar*
 find_key (const gchar* key)
 {
   const gchar* end;
-  
+
   end = strrchr (key, '/');
 
   ++end;
@@ -2023,16 +2054,16 @@ profile_change_notify (GConfClient *clie
   GConfValue *val;
   TerminalSettingMask old_locked;
   TerminalSettingMask mask;
-  
+
   profile = TERMINAL_PROFILE (user_data);
 
   terminal_setting_mask_clear (&mask);
   old_locked = profile->priv->locked;
 
   val = gconf_entry_get_value (entry);
-  
+
   key = find_key (gconf_entry_get_key (entry));
-  
+
 #define UPDATE_BOOLEAN(KName, FName, Preset)                            \
   }                                                                     \
 else if (strcmp (key, KName) == 0)                                      \
@@ -2106,6 +2137,7 @@ else if (strcmp (key, KName) == 0)      
      UPDATE_STRING  (KEY_TITLE,                  title,                  NULL);
      UPDATE_STRING  (KEY_TITLE_MODE,             title_mode,             NULL);
      UPDATE_BOOLEAN (KEY_ALLOW_BOLD,             allow_bold,             FALSE);
+     UPDATE_BOOLEAN (KEY_MAXIMIZED,              maximized,              FALSE);
      UPDATE_BOOLEAN (KEY_SILENT_BELL,            silent_bell,            FALSE);
      UPDATE_STRING  (KEY_WORD_CHARS,             word_chars,             NULL);
      UPDATE_STRING  (KEY_SCROLLBAR_POSITION,     scrollbar_position,     NULL);
@@ -2130,7 +2162,7 @@ else if (strcmp (key, KName) == 0)      
      UPDATE_BOOLEAN (KEY_USE_SYSTEM_FONT,        use_system_font,        TRUE);
      UPDATE_STRING  (KEY_FONT,                   font,                   NULL);
    }
-  
+
 #undef UPDATE_BOOLEAN
 #undef UPDATE_INTEGER
 #undef UPDATE_FLOAT
@@ -2167,15 +2199,15 @@ set_key_to_default (TerminalProfile *pro
   if (val == NULL)
     g_printerr (_("There wasn't a default value for %s\n"),
                 default_key);
-  
+
   g_free (default_key);
-  
+
   if (val)
     {
       key = gconf_concat_dir_and_key (profile->priv->profile_dir,
                                       relative_key);
-      
-      err = NULL;      
+
+      err = NULL;
       gconf_client_set (profile->priv->conf,
                         key, val, &err);
       if (err != NULL)
@@ -2204,15 +2236,15 @@ update_default_profile (const char *name
   TerminalProfile *profile;
   gboolean changed;
   TerminalProfile *old_default;
-  
+
   changed = FALSE;
-  
+
   g_free (default_profile_id);
   default_profile_id = g_strdup (name);
 
   old_default = default_profile;
   profile = terminal_profile_lookup (name);
-  
+
   if (profile)
     {
       if (profile != default_profile)
@@ -2231,15 +2263,15 @@ update_default_profile (const char *name
 
       terminal_setting_mask_clear (&mask);
       mask.is_default = TRUE;
-      
+
       default_profile_locked = locked;
-      
+
       all_profiles = terminal_profile_get_list ();
       tmp = all_profiles;
       while (tmp != NULL)
         {
           TerminalProfile *p = tmp->data;
-          
+
           emit_changed (p, &mask);
           tmp = tmp->next;
         }
@@ -2249,7 +2281,7 @@ update_default_profile (const char *name
   else if (changed)
     {
       TerminalSettingMask mask;
-      
+
       terminal_setting_mask_clear (&mask);
       mask.is_default = TRUE;
 
@@ -2269,17 +2301,17 @@ default_change_notify (GConfClient *clie
   GConfValue *val;
   gboolean locked;
   const char *name;
-  
-  val = gconf_entry_get_value (entry);  
+
+  val = gconf_entry_get_value (entry);
 
   if (val == NULL || val->type != GCONF_VALUE_STRING)
     return;
-  
-  if (gconf_entry_get_is_writable (entry))  
+
+  if (gconf_entry_get_is_writable (entry))
     locked = FALSE;
   else
     locked = TRUE;
-  
+
   name = gconf_value_get_string (val);
 
   update_default_profile (name, locked);
@@ -2315,7 +2347,7 @@ terminal_profile_get_list (void)
   g_hash_table_foreach (profiles, listify_foreach, &list);
 
   list = g_list_sort (list, alphabetic_cmp);
-  
+
   return list;
 }
 
@@ -2376,7 +2408,7 @@ terminal_profile_forget (TerminalProfile
   if (!profile->priv->forgotten)
     {
       GError *err;
-      
+
       err = NULL;
       gconf_client_remove_dir (profile->priv->conf,
                                profile->priv->profile_dir,
@@ -2391,9 +2423,9 @@ terminal_profile_forget (TerminalProfile
       g_hash_table_remove (profiles, profile->priv->name);
       profile->priv->forgotten = TRUE;
 
-      if (profile == default_profile)          
+      if (profile == default_profile)
         default_profile = NULL;
-      
+
       g_signal_emit (G_OBJECT (profile), signals[FORGOTTEN], 0);
     }
 }
@@ -2413,11 +2445,11 @@ terminal_profile_ensure_fallback (GConfC
 
   if (profile == NULL)
     {
-      profile = terminal_profile_new (FALLBACK_PROFILE_ID, conf);  
-      
+      profile = terminal_profile_new (FALLBACK_PROFILE_ID, conf);
+
       terminal_profile_update (profile);
     }
-  
+
   return profile;
 }
 
@@ -2428,16 +2460,16 @@ terminal_profile_initialize (GConfClient
   char *str;
 
   g_return_if_fail (profiles == NULL);
-  
+
   profiles = g_hash_table_new (g_str_hash, g_str_equal);
-  
+
   err = NULL;
   gconf_client_notify_add (conf,
                            CONF_GLOBAL_PREFIX"/default_profile",
                            default_change_notify,
                            NULL,
                            NULL, &err);
-  
+
   if (err)
     {
       g_printerr (_("There was an error subscribing to notification of changes to default profile. (%s)\n"),
@@ -2463,7 +2495,7 @@ emit_changed (TerminalProfile           
               const TerminalSettingMask *mask)
 {
   profile->priv->in_notification_count += 1;
-  g_signal_emit (G_OBJECT (profile), signals[CHANGED], 0, mask);  
+  g_signal_emit (G_OBJECT (profile), signals[CHANGED], 0, mask);
   profile->priv->in_notification_count -= 1;
 }
 
@@ -2476,25 +2508,25 @@ dialog_add_details (GtkDialog  *dialog,
   GtkWidget *button;
   GtkWidget *label;
   GtkRequisition req;
-  
+
   hbox = gtk_hbox_new (FALSE, 0);
 
   gtk_container_set_border_width (GTK_CONTAINER (hbox), 10);
-  
+
   gtk_box_pack_start (GTK_BOX (dialog->vbox),
                       hbox,
                       FALSE, FALSE, 0);
 
   button = gtk_button_new_with_mnemonic (_("_Details"));
-  
+
   gtk_box_pack_end (GTK_BOX (hbox), button,
                     FALSE, FALSE, 0);
-  
+
   label = gtk_label_new (details);
 
   gtk_label_set_line_wrap (GTK_LABEL (label), TRUE);
   gtk_label_set_selectable (GTK_LABEL (label), TRUE);
-  
+
   gtk_box_pack_start (GTK_BOX (hbox), label,
                       TRUE, TRUE, 0);
 
@@ -2503,7 +2535,7 @@ dialog_add_details (GtkDialog  *dialog,
                             "clicked",
                             G_CALLBACK (gtk_widget_show),
                             label);
-  
+
   /* second callback destroys the button (note disconnects first callback) */
   g_signal_connect (G_OBJECT (button), "clicked",
                     G_CALLBACK (gtk_widget_destroy),
@@ -2517,7 +2549,7 @@ dialog_add_details (GtkDialog  *dialog,
   gtk_widget_size_request (GTK_WIDGET (dialog), &req);
 
   gtk_window_set_default_size (GTK_WINDOW (dialog), req.width, req.height);
-  
+
   gtk_widget_hide (label);
 }
 
@@ -2535,7 +2567,7 @@ terminal_profile_create (TerminalProfile
   GError *err = NULL;
   GList *profiles = NULL;
   GSList *name_list = NULL;
-  GList *tmp;  
+  GList *tmp;
 
   /* This is for extra bonus paranoia against CORBA reentrancy */
   g_object_ref (G_OBJECT (base_profile));
@@ -2546,8 +2578,8 @@ terminal_profile_create (TerminalProfile
         base_profile->priv->forgotten ||                \
         err != NULL)                                    \
        goto cleanup;                                    \
-  } while (0) 
-  
+  } while (0)
+
   /* Pick a unique name for storing in gconf (based on visible name) */
   profile_name = gconf_escape_key (visible_name, -1);
 
@@ -2556,7 +2588,7 @@ terminal_profile_create (TerminalProfile
   while (terminal_profile_lookup (s))
     {
       g_free (s);
-      
+
       s = g_strdup_printf ("%s-%d", profile_name, i);
 
       ++i;
@@ -2565,9 +2597,9 @@ terminal_profile_create (TerminalProfile
   g_free (profile_name);
   profile_name = s;
 
-  profile_dir = gconf_concat_dir_and_key (CONF_PROFILES_PREFIX, 
+  profile_dir = gconf_concat_dir_and_key (CONF_PROFILES_PREFIX,
                                           profile_name);
-  
+
   /* Store a copy of base profile values at under that directory */
 
   key = gconf_concat_dir_and_key (profile_dir,
@@ -2605,7 +2637,7 @@ terminal_profile_create (TerminalProfile
                                   KEY_FOREGROUND_COLOR);
   s = color_to_string (&base_profile->priv->foreground);
   gconf_client_set_string (base_profile->priv->conf,
-                           key, s,                           
+                           key, s,
                            &err);
   g_free (s);
 
@@ -2616,7 +2648,7 @@ terminal_profile_create (TerminalProfile
                                   KEY_BACKGROUND_COLOR);
   s = color_to_string (&base_profile->priv->background);
   gconf_client_set_string (base_profile->priv->conf,
-                           key, s,                           
+                           key, s,
                            &err);
   g_free (s);
 
@@ -2630,7 +2662,7 @@ terminal_profile_create (TerminalProfile
                            key, visible_name,
                            &err);
   BAIL_OUT_CHECK ();
-  
+
   g_free (key);
   key = gconf_concat_dir_and_key (profile_dir,
                                   KEY_TITLE_MODE);
@@ -2670,7 +2702,7 @@ terminal_profile_create (TerminalProfile
                            key, base_profile->priv->word_chars,
                            &err);
   BAIL_OUT_CHECK ();
-  
+
   g_free (key);
   key = gconf_concat_dir_and_key (profile_dir,
                                   KEY_SCROLLBAR_POSITION);
@@ -2680,7 +2712,7 @@ terminal_profile_create (TerminalProfile
                            key, cs,
                            &err);
   BAIL_OUT_CHECK ();
-  
+
   g_free (key);
   key = gconf_concat_dir_and_key (profile_dir,
                                   KEY_SCROLLBACK_LINES);
@@ -2689,7 +2721,7 @@ terminal_profile_create (TerminalProfile
                         &err);
   BAIL_OUT_CHECK ();
 
-  
+
   g_free (key);
   key = gconf_concat_dir_and_key (profile_dir,
                                   KEY_SCROLL_ON_KEYSTROKE);
@@ -2719,7 +2751,7 @@ terminal_profile_create (TerminalProfile
 
   cs = gconf_enum_to_string (scrollbar_positions,
                              base_profile->priv->exit_action);
-  
+
   gconf_client_set_string (base_profile->priv->conf,
                            key, cs,
                            &err);
@@ -2759,7 +2791,7 @@ terminal_profile_create (TerminalProfile
 
   BAIL_OUT_CHECK ();
 
-  
+
   g_free (key);
   key = gconf_concat_dir_and_key (profile_dir,
                                   KEY_CUSTOM_COMMAND);
@@ -2869,10 +2901,10 @@ terminal_profile_create (TerminalProfile
                            key, s,
                            &err);
   g_free (s);
-  
+
   BAIL_OUT_CHECK ();
-  
-  
+
+
   /* Add new profile to the profile list; the method for doing this has
    * a race condition where we and someone else set at the same time,
    * but I am just going to punt on this issue.
@@ -2883,12 +2915,12 @@ terminal_profile_create (TerminalProfile
     {
       name_list = g_slist_prepend (name_list,
                                    g_strdup (terminal_profile_get_name (tmp->data)));
-      
+
       tmp = tmp->next;
     }
 
   name_list = g_slist_prepend (name_list, g_strdup (profile_name));
-  
+
   gconf_client_set_list (base_profile->priv->conf,
                          CONF_GLOBAL_PREFIX"/profile_list",
                          GCONF_VALUE_STRING,
@@ -2896,7 +2928,7 @@ terminal_profile_create (TerminalProfile
                          &err);
 
   BAIL_OUT_CHECK ();
-  
+
  cleanup:
   g_free (profile_name);
   g_free (profile_dir);
@@ -2909,7 +2941,7 @@ terminal_profile_create (TerminalProfile
       g_slist_foreach (name_list, (GFunc) g_free, NULL);
       g_slist_free (name_list);
     }
-  
+
   if (err)
     {
       if (GTK_WIDGET_VISIBLE (transient_parent))
@@ -2928,15 +2960,15 @@ terminal_profile_create (TerminalProfile
 
           dialog_add_details (GTK_DIALOG (dialog),
                               err->message);
-          
+
           gtk_window_set_resizable (GTK_WINDOW (dialog), FALSE);
-          
+
           gtk_widget_show (dialog);
         }
 
       g_error_free (err);
     }
-  
+
   g_object_unref (G_OBJECT (base_profile));
   g_object_unref (G_OBJECT (transient_parent));
 }
@@ -2953,17 +2985,17 @@ terminal_profile_delete_list (GConfClien
 
   /* reentrancy paranoia */
   g_object_ref (G_OBJECT (transient_parent));
-  
-  current_profiles = terminal_profile_get_list ();  
+
+  current_profiles = terminal_profile_get_list ();
 
   /* remove deleted profiles from list */
   tmp = deleted_profiles;
   while (tmp != NULL)
     {
       TerminalProfile *profile = tmp->data;
-      
+
       current_profiles = g_list_remove (current_profiles, profile);
-      
+
       tmp = tmp->next;
     }
 
@@ -2974,7 +3006,7 @@ terminal_profile_delete_list (GConfClien
     {
       name_list = g_slist_prepend (name_list,
                                    g_strdup (terminal_profile_get_name (tmp->data)));
-      
+
       tmp = tmp->next;
     }
 
@@ -3007,9 +3039,9 @@ terminal_profile_delete_list (GConfClien
 
           dialog_add_details (GTK_DIALOG (dialog),
                               err->message);
-          
+
           gtk_window_set_resizable (GTK_WINDOW (dialog), FALSE);
-          
+
           gtk_widget_show (dialog);
         }
 
@@ -3033,9 +3065,9 @@ terminal_profile_get_for_new_term (Termi
 
   if (current)
     return current;
-  
+
   if (default_profile)
-    return default_profile;	
+    return default_profile;
 
   list = terminal_profile_get_list ();
   if (list)
@@ -3048,7 +3080,7 @@ terminal_profile_get_for_new_term (Termi
   return profile;
 }
 
-/* We need to do this ourselves, because the gtk_color_selection_palette_to_string 
+/* We need to do this ourselves, because the gtk_color_selection_palette_to_string
  * does not carry all the bytes, and xterm's palette is messed up...
  */
 
@@ -3058,7 +3090,7 @@ color_selection_palette_to_string (const
   gint i;
   gchar **strs = NULL;
   gchar *retval;
-  
+
   if (n_colors == 0)
     return g_strdup ("");
 
@@ -3067,7 +3099,7 @@ color_selection_palette_to_string (const
   for (i = 0; i < n_colors; ++i)
     {
       gchar *ptr;
-      
+
       strs[i] = g_strdup_printf ("#%4X%4X%4X", colors[i].red, colors[i].green, colors[i].blue);
 
       for (ptr = strs[i]; *ptr; ptr++)
@@ -3117,13 +3149,13 @@ terminal_palette_from_string (const char
 			      n_colors),
                     n_colors, TERMINAL_PALETTE_SIZE);
     }
-                                                
+
   /* We continue even with a funky palette size, so we can change the
    * palette size in future versions without causing too many issues.
    */
   if (TERMINAL_PALETTE_SIZE > n_colors)
     memcpy (palette, terminal_palette_linux, TERMINAL_PALETTE_SIZE * sizeof (GdkColor));
-  
+
   memcpy (palette, colors, MIN (TERMINAL_PALETTE_SIZE, n_colors) * sizeof (GdkColor));
 
   g_free (colors);
@@ -3131,11 +3163,11 @@ terminal_palette_from_string (const char
   return TRUE;
 }
 
-gboolean 
+gboolean
 terminal_setting_mask_is_empty (const TerminalSettingMask *mask)
 {
   const unsigned int *p = (const unsigned int *) mask;
-  const unsigned int *end = p + (sizeof (TerminalSettingMask) / 
+  const unsigned int *end = p + (sizeof (TerminalSettingMask) /
                                  sizeof (unsigned int));
 
   while (p < end)
@@ -3161,7 +3193,7 @@ terminal_setting_mask_equal (const Termi
   /* This assumes the padding in the TerminalSettingMask
    * struct is initialized to 0
    */
-  
+
   return memcmp (a, b, sizeof (*a)) == 0;
 }
 
diff -upr gnome-terminal-2.11.2/src/terminal-profile.h gnome-terminal-2.11.2-maximized/src/terminal-profile.h
--- gnome-terminal-2.11.2/src/terminal-profile.h	2005-07-02 02:07:57.000000000 +0200
+++ gnome-terminal-2.11.2-maximized/src/terminal-profile.h	2005-08-18 17:44:39.000000000 +0200
@@ -66,6 +66,7 @@ typedef struct
   unsigned int use_theme_colors : 1;
   unsigned int use_system_font : 1;
   unsigned int font : 1;
+  unsigned int maximized : 1;
 } TerminalSettingMask;
 
 typedef enum
@@ -95,7 +96,7 @@ typedef enum
   TERMINAL_SCROLLBAR_HIDDEN
 } TerminalScrollbarPosition;
 
-typedef enum 
+typedef enum
 {
   TERMINAL_EXIT_CLOSE,
   TERMINAL_EXIT_RESTART,
@@ -147,6 +148,7 @@ const char*               terminal_profi
 const char*               terminal_profile_get_visible_name         (TerminalProfile *profile);
 gboolean                  terminal_profile_get_cursor_blink         (TerminalProfile *profile);
 gboolean                  terminal_profile_get_allow_bold           (TerminalProfile *profile);
+gboolean                  terminal_profile_get_maximized            (TerminalProfile *profile);
 gboolean                  terminal_profile_get_silent_bell          (TerminalProfile *profile);
 TerminalScrollbarPosition terminal_profile_get_scrollbar_position   (TerminalProfile *profile);
 int                       terminal_profile_get_scrollback_lines     (TerminalProfile *profile);
@@ -193,6 +195,8 @@ void terminal_profile_set_visible_name  
                                                 const char                *name);
 void terminal_profile_set_allow_bold           (TerminalProfile           *profile,
                                                 gboolean                   setting);
+void terminal_profile_set_maximized            (TerminalProfile           *profile,
+                                                gboolean                   setting);
 void terminal_profile_set_silent_bell          (TerminalProfile           *profile,
                                                 gboolean                   setting);
 void terminal_profile_set_scrollbar_position   (TerminalProfile           *profile,
diff -upr gnome-terminal-2.11.2/src/terminal-screen.c gnome-terminal-2.11.2-maximized/src/terminal-screen.c
--- gnome-terminal-2.11.2/src/terminal-screen.c	2005-07-02 02:37:58.000000000 +0200
+++ gnome-terminal-2.11.2-maximized/src/terminal-screen.c	2005-08-19 09:41:04.000000000 +0200
@@ -146,7 +146,7 @@ terminal_screen_get_type (void)
   static GType object_type = 0;
 
   g_type_init ();
-  
+
   if (!object_type)
     {
       static const GTypeInfo object_info =
@@ -161,12 +161,12 @@ terminal_screen_get_type (void)
         0,              /* n_preallocs */
         (GInstanceInitFunc) terminal_screen_init,
       };
-      
+
       object_type = g_type_register_static (G_TYPE_OBJECT,
                                             "TerminalScreen",
                                             &object_info, 0);
     }
-  
+
   return object_type;
 }
 
@@ -177,7 +177,7 @@ style_set_callback (GtkWidget *widget,
                     void      *data)
 {
   if (GTK_WIDGET_REALIZED (widget))
-    terminal_screen_update_on_realize (widget, TERMINAL_SCREEN (data));  
+    terminal_screen_update_on_realize (widget, TERMINAL_SCREEN (data));
 }
 
 static void
@@ -188,7 +188,7 @@ connect_monospace_font_change (TerminalS
   guint connection_id;
 
   conf = gconf_client_get_default ();
-  
+
   err = NULL;
   gconf_client_add_dir (conf, MONOSPACE_FONT_DIR,
                         GCONF_CLIENT_PRELOAD_ONELEVEL,
@@ -205,11 +205,11 @@ connect_monospace_font_change (TerminalS
   connection_id = gconf_client_notify_add (conf,
 					   MONOSPACE_FONT_DIR,
 					   monospace_font_change_notify,
-					   screen, 
+					   screen,
 					   NULL, &err);
 
   g_object_unref (conf);
-  
+
   if (err)
     {
       g_printerr (_("There was an error subscribing to notification of monospace font changes. (%s)\n"),
@@ -231,11 +231,11 @@ terminal_screen_init (TerminalScreen *sc
   screen->priv->child_pid = -1;
 
   screen->priv->recheck_working_dir_idle = 0;
-  
+
   screen->priv->term = terminal_widget_new ();
 
   screen->priv->font_scale = PANGO_SCALE_MEDIUM;
-  
+
   g_object_ref (G_OBJECT (screen->priv->term));
   gtk_object_sink (GTK_OBJECT (screen->priv->term));
 
@@ -253,19 +253,19 @@ terminal_screen_init (TerminalScreen *sc
   terminal_widget_match_add (screen->priv->term,
       "\\<(www|ftp)[" HOSTCHARS "]*\\.[" HOSTCHARS ".]+(:[0-9]+)?(" URLPATH ")?", FLAVOR_DEFAULT_TO_HTTP);
 
-  terminal_widget_match_add (screen->priv->term,       
+  terminal_widget_match_add (screen->priv->term,
       "\\<(mailto:)?[a-z0-9][a-z0-9.-]*@[a-z0-9][a-z0-9-]*(\\.[a-z0-9][a-z0-9-]*)+\\>", FLAVOR_MAILTO);
-	  
+
   terminal_widget_match_add (screen->priv->term,
       "\\<news:[-A-Z\\^_a-z{|}~!\"#$%&'()*+,./0-9;:=?`]+@[" HOSTCHARS ".]+(:[0-9]+)?\\>", FLAVOR_AS_IS);
 
 
   terminal_screen_setup_dnd (screen);
-  
+
   g_object_set_data (G_OBJECT (screen->priv->term),
                      "terminal-screen",
                      screen);
-  
+
   g_signal_connect (G_OBJECT (screen->priv->term),
                     "realize",
                     G_CALLBACK (terminal_screen_update_on_realize),
@@ -275,7 +275,7 @@ terminal_screen_init (TerminalScreen *sc
                     "style_set",
                     G_CALLBACK (style_set_callback),
                     screen);
-  
+
   g_signal_connect (G_OBJECT (screen->priv->term),
                     "popup_menu",
                     G_CALLBACK (terminal_screen_popup_menu),
@@ -315,11 +315,11 @@ static void
 terminal_screen_class_init (TerminalScreenClass *klass)
 {
   GObjectClass *object_class = G_OBJECT_CLASS (klass);
-  
+
   parent_class = g_type_class_peek_parent (klass);
-  
+
   object_class->finalize = terminal_screen_finalize;
-  
+
   signals[PROFILE_SET] =
     g_signal_new ("profile_set",
                   G_OBJECT_CLASS_TYPE (object_class),
@@ -337,7 +337,7 @@ terminal_screen_class_init (TerminalScre
                   NULL, NULL,
                   g_cclosure_marshal_VOID__VOID,
                   G_TYPE_NONE, 0);
-  
+
   signals[ICON_TITLE_CHANGED] =
     g_signal_new ("icon_title_changed",
                   G_OBJECT_CLASS_TYPE (object_class),
@@ -354,7 +354,7 @@ terminal_screen_class_init (TerminalScre
                   G_STRUCT_OFFSET (TerminalScreenClass, selection_changed),
                   NULL, NULL,
                   g_cclosure_marshal_VOID__VOID,
-                  G_TYPE_NONE, 0);  
+                  G_TYPE_NONE, 0);
 
   signals[ENCODING_CHANGED] =
     g_signal_new ("encoding_changed",
@@ -363,7 +363,7 @@ terminal_screen_class_init (TerminalScre
                   G_STRUCT_OFFSET (TerminalScreenClass, encoding_changed),
                   NULL, NULL,
                   g_cclosure_marshal_VOID__VOID,
-                  G_TYPE_NONE, 0);  
+                  G_TYPE_NONE, 0);
 }
 
 static void
@@ -375,27 +375,27 @@ terminal_screen_finalize (GObject *objec
   screen = TERMINAL_SCREEN (object);
 
   conf = gconf_client_get_default ();
-  
+
   if (screen->priv->gconf_connection_id)
     gconf_client_notify_remove (conf, screen->priv->gconf_connection_id);
-  
+
   gconf_client_remove_dir (conf, MONOSPACE_FONT_DIR,
 			   NULL);
 
   g_object_unref (conf);
 
-  used_ids = g_list_remove (used_ids, GINT_TO_POINTER (screen->priv->id));  
+  used_ids = g_list_remove (used_ids, GINT_TO_POINTER (screen->priv->id));
 
   if (screen->priv->title_editor)
     gtk_widget_destroy (screen->priv->title_editor);
-  
+
   terminal_screen_set_profile (screen, NULL);
-  
+
   g_object_unref (G_OBJECT (screen->priv->term));
 
   if (screen->priv->recheck_working_dir_idle)
     g_source_remove (screen->priv->recheck_working_dir_idle);
-  
+
   g_free (screen->priv->raw_title);
   g_free (screen->priv->cooked_title);
   g_free (screen->priv->raw_icon_title);
@@ -403,9 +403,9 @@ terminal_screen_finalize (GObject *objec
   g_free (screen->priv->matched_string);
   g_strfreev (screen->priv->override_command);
   g_free (screen->priv->working_dir);
-  
+
   g_free (screen->priv);
-  
+
   G_OBJECT_CLASS (parent_class)->finalize (object);
 }
 
@@ -427,11 +427,11 @@ terminal_screen_new (void)
   TerminalScreen *screen;
 
   screen = g_object_new (TERMINAL_TYPE_SCREEN, NULL);
-  
+
   screen->priv->id = next_unused_id ();
 
   used_ids = g_list_prepend (used_ids, GINT_TO_POINTER (screen->priv->id));
-  
+
   return screen;
 }
 
@@ -492,9 +492,9 @@ reread_profile (TerminalScreen *screen)
   TerminalProfile *profile;
   GtkWidget *term;
   TerminalBackgroundType bg_type;
-  
-  profile = screen->priv->profile;  
-  
+
+  profile = screen->priv->profile;
+
   if (profile == NULL)
     return;
 
@@ -502,7 +502,7 @@ reread_profile (TerminalScreen *screen)
 
   terminal_screen_cook_title (screen);
   terminal_screen_cook_icon_title (screen);
-  
+
   if (screen->priv->window)
     {
       /* We need these in line for the set_size in
@@ -512,7 +512,7 @@ reread_profile (TerminalScreen *screen)
       terminal_window_update_icon (screen->priv->window);
       terminal_window_update_geometry (screen->priv->window);
     }
-  
+
   if (GTK_WIDGET_REALIZED (screen->priv->term))
     terminal_screen_update_on_realize (term, screen);
 
@@ -527,7 +527,7 @@ reread_profile (TerminalScreen *screen)
 
   terminal_widget_set_scroll_on_keystroke (term,
                                            terminal_profile_get_scroll_on_keystroke (profile));
-  
+
   terminal_widget_set_scroll_on_output (term,
                                         terminal_profile_get_scroll_on_output (profile));
 
@@ -544,7 +544,7 @@ reread_profile (TerminalScreen *screen)
       terminal_widget_skey_match_remove (screen->priv->term);
     }
   bg_type = terminal_profile_get_background_type (profile);
-  
+
   if (bg_type == TERMINAL_BACKGROUND_IMAGE)
     {
       terminal_widget_set_background_image_file (term,
@@ -564,13 +564,13 @@ reread_profile (TerminalScreen *screen)
                                              terminal_profile_get_background_darkness (profile));
   else
     terminal_widget_set_background_darkness (term, 0.0); /* normal color */
-  
+
   terminal_widget_set_background_transparent (term,
                                               bg_type == TERMINAL_BACKGROUND_TRANSPARENT);
 
   terminal_widget_set_backspace_binding (term,
                                          terminal_profile_get_backspace_binding (profile));
-  
+
   terminal_widget_set_delete_binding (term,
                                       terminal_profile_get_delete_binding (profile));
 }
@@ -580,7 +580,7 @@ reread_profile (TerminalScreen *screen)
  * @screen:
  * @raw_title: main ingredient
  * @old_cooked_title: pointer of the current cooked_title
- * 
+ *
  * Cook title according to the profile of @screen. If the result is different from
  * <literal>*old_cooked_title</literal>, store it there.
  * Returns: %TRUE or %FALSE according to whether the cooked_title was changed.
@@ -640,14 +640,14 @@ cook_title  (TerminalScreen *screen, con
     }
 }
 
-static void 
+static void
 terminal_screen_cook_title (TerminalScreen *screen)
 {
   if (cook_title (screen, screen->priv->raw_title, &screen->priv->cooked_title))
     g_signal_emit (G_OBJECT (screen), signals[TITLE_CHANGED], 0);
 }
 
-static void 
+static void
 terminal_screen_cook_icon_title (TerminalScreen *screen)
 {
   if (cook_title (screen, screen->priv->raw_icon_title, &screen->priv->cooked_icon_title))
@@ -667,7 +667,7 @@ update_color_scheme (TerminalScreen *scr
 {
   GdkColor fg, bg;
   GdkColor palette[TERMINAL_PALETTE_SIZE];
-  
+
   if (screen->priv->term == NULL ||
       !GTK_WIDGET_REALIZED (screen->priv->term))
     return;
@@ -701,7 +701,7 @@ monospace_font_change_notify (GConfClien
 {
   TerminalScreen *screen = TERMINAL_SCREEN (user_data);
   GtkWidget *widget = screen->priv->term;
-  
+
   if (strcmp (entry->key, MONOSPACE_FONT_KEY) == 0 &&
       GTK_WIDGET_REALIZED (widget))
     terminal_screen_update_on_realize (widget, screen);
@@ -722,7 +722,7 @@ get_system_monospace_font (void)
       desc = pango_font_description_from_string (name);
       g_free (name);
     }
-  
+
   if (!desc)
     desc = pango_font_description_from_string ("Monospace 10");
 
@@ -734,9 +734,9 @@ terminal_screen_update_on_realize (GtkWi
                                    TerminalScreen *screen)
 {
   TerminalProfile *profile;
-  
+
   profile = screen->priv->profile;
-  
+
   update_color_scheme (screen);
 
   if (terminal_widget_supports_pango_fonts ())
@@ -759,11 +759,11 @@ terminal_screen_update_on_realize (GtkWi
   else
     {
       /* font_scale is not supported in X fonts mode */
-      
+
       GdkFont *font;
 
       font = NULL;
-      
+
        if (terminal_profile_get_use_system_font (screen->priv->profile))
          {
 	    PangoFontDescription *desc;
@@ -771,15 +771,15 @@ terminal_screen_update_on_realize (GtkWi
 
 	    desc = get_system_monospace_font ();
             from_desc = gdk_font_from_description (desc);
-            
+
             if (from_desc != NULL)
               {
                 char *font_name;
-                
+
                 font_name = g_strdup (gdk_x11_font_get_name (from_desc));
 
                 g_assert (font_name);
-                
+
                 if (!xfont_is_monospace (font_name));
                 {
                   /* Can't use the system font as-is */
@@ -788,7 +788,7 @@ terminal_screen_update_on_realize (GtkWi
                   fallback = make_xfont_monospace (font_name);
 
                   g_assert (fallback);
-                  
+
                   font = load_fonset_without_error (fallback);
 
                   if (font == NULL)
@@ -797,7 +797,7 @@ terminal_screen_update_on_realize (GtkWi
                       fallback = make_xfont_char_cell (font_name);
                       font = load_fonset_without_error (fallback);
                     }
-                
+
                   if (font == NULL)
                     {
                       g_free (fallback);
@@ -806,17 +806,17 @@ terminal_screen_update_on_realize (GtkWi
                                                               font_name);
                       font = load_fonset_without_error (fallback);
                     }
-                
+
                   g_free (fallback);
                 }
-                
+
                 g_free (font_name);
                 gdk_font_unref (from_desc);
               }
 
 	    pango_font_description_free (desc);
          }
-       
+
        if (font == NULL)
          {
            font = gdk_fontset_load (terminal_profile_get_x_font (profile));
@@ -834,11 +834,14 @@ terminal_screen_update_on_realize (GtkWi
            gdk_font_unref (font);
          }
     }
-  
+
   terminal_widget_set_allow_bold (term,
                                   terminal_profile_get_allow_bold (profile));
 
   terminal_window_set_size (screen->priv->window, screen, TRUE);
+  terminal_window_set_maximized (screen->priv->window,
+                                 screen,
+                                 terminal_profile_get_maximized (profile));
 }
 
 static void
@@ -862,7 +865,7 @@ terminal_screen_set_profile (TerminalScr
 {
   if (profile == screen->priv->profile)
     return;
-  
+
   if (screen->priv->profile_changed_id)
     {
       g_signal_handler_disconnect (G_OBJECT (screen->priv->profile),
@@ -876,7 +879,7 @@ terminal_screen_set_profile (TerminalScr
                                    screen->priv->profile_forgotten_id);
       screen->priv->profile_forgotten_id = 0;
     }
-  
+
   if (profile)
     {
       g_object_ref (G_OBJECT (profile));
@@ -898,7 +901,7 @@ terminal_screen_set_profile (TerminalScr
            terminal_profile_get_visible_name (screen->priv->profile) : "none",
            profile ? terminal_profile_get_visible_name (profile) : "none");
 #endif
-  
+
   if (screen->priv->profile)
     {
       g_object_unref (G_OBJECT (screen->priv->profile));
@@ -948,7 +951,7 @@ show_command_error_dialog (TerminalScree
                            GError         *error)
 {
   g_return_if_fail (error != NULL);
-  
+
   terminal_util_show_error_dialog ((GtkWindow*) gtk_widget_get_ancestor (screen->priv->term, GTK_TYPE_WINDOW), NULL,
                                    _("There was a problem with the command for this terminal: %s"), error->message);
 }
@@ -968,7 +971,7 @@ get_child_command (TerminalScreen *scree
 
   file = NULL;
   argv = NULL;
-  
+
   if (file_p)
     *file_p = NULL;
   if (argv_p)
@@ -996,7 +999,7 @@ get_child_command (TerminalScreen *scree
       shell = gnome_util_user_shell ();
 
       file = g_strdup (shell);
-      
+
       only_name = strrchr (shell, '/');
       if (only_name != NULL)
         only_name++;
@@ -1040,13 +1043,13 @@ get_child_environment (GtkWidget      *t
   int i;
   char **retval;
 #define EXTRA_ENV_VARS 7
-  
+
   profile = screen->priv->profile;
 
   /* count env vars that are set */
   for (p = environ; *p; p++)
     ;
-  
+
   i = p - environ;
   retval = g_new (char *, i + 1 + EXTRA_ENV_VARS);
 
@@ -1077,12 +1080,12 @@ get_child_environment (GtkWidget      *t
   retval[i] = g_strdup_printf ("WINDOWID=%ld",
                                GDK_WINDOW_XWINDOW (term->window));
   ++i;
-  retval[i] = g_strdup_printf ("DISPLAY=%s", 
+  retval[i] = g_strdup_printf ("DISPLAY=%s",
 			       gdk_display_get_name(gtk_widget_get_display(term)));
   ++i;
-  
+
   retval[i] = NULL;
-  
+
   return retval;
 }
 
@@ -1094,7 +1097,7 @@ terminal_screen_launch_child (TerminalSc
   char  *path;
   char **argv;
   GError *err;
-  
+
   profile = screen->priv->profile;
 
   err = NULL;
@@ -1104,8 +1107,8 @@ terminal_screen_launch_child (TerminalSc
       g_error_free (err);
       return;
     }
-  
-  env = get_child_environment (screen->priv->term, screen);  
+
+  env = get_child_environment (screen->priv->term, screen);
 
   err = NULL;
   if (!terminal_widget_fork_command (screen->priv->term,
@@ -1123,7 +1126,7 @@ terminal_screen_launch_child (TerminalSc
                                        "%s", err->message);
       g_error_free (err);
     }
-  
+
   g_free (path);
   g_strfreev (argv);
   g_strfreev (env);
@@ -1156,7 +1159,7 @@ new_window_callback (GtkWidget      *men
 
   name = gdk_screen_make_display_name (gtk_widget_get_screen (menu_item));
   dir = terminal_screen_get_working_dir (screen);
-  
+
   terminal_app_new_terminal (terminal_app_get (),
                              terminal_profile_get_for_new_term (screen->priv->profile),
                              NULL,
@@ -1209,9 +1212,9 @@ configuration_callback (GtkWidget      *
                         TerminalScreen *screen)
 {
   g_return_if_fail (screen->priv->profile);
-  
+
   terminal_app_edit_profile (terminal_app_get (),
-                             screen->priv->profile, 
+                             screen->priv->profile,
                              GTK_WINDOW (screen->priv->window));
 }
 
@@ -1223,7 +1226,7 @@ choose_profile_callback (GtkWidget      
 
   if (!gtk_check_menu_item_get_active (GTK_CHECK_MENU_ITEM (menu_item)))
     return;
-  
+
   profile = g_object_get_data (G_OBJECT (menu_item),
                                "profile");
 
@@ -1254,12 +1257,12 @@ open_url (TerminalScreen *screen,
 {
   GError *err;
   char *url;
-  
+
   g_return_if_fail (orig_url != NULL);
 
   /* this is to handle gnome_url_show reentrancy */
   g_object_ref (G_OBJECT (screen));
-  
+
   switch (flavor)
     {
     case FLAVOR_DEFAULT_TO_HTTP:
@@ -1296,11 +1299,11 @@ open_url (TerminalScreen *screen,
                                           GTK_TYPE_WINDOW);
       else
         window = NULL;
-      
+
       terminal_util_show_error_dialog (window ? GTK_WINDOW (window) : NULL, NULL,
                                        _("Could not open the address \"%s\":\n%s"),
                                        url, err->message);
-      
+
       g_error_free (err);
     }
 
@@ -1358,7 +1361,7 @@ append_menuitem (GtkWidget  *menu,
                  gpointer    data)
 {
   GtkWidget *menu_item;
-  
+
   menu_item = gtk_menu_item_new_with_mnemonic (text);
   gtk_widget_show (menu_item);
   gtk_menu_shell_append (GTK_MENU_SHELL (menu),
@@ -1383,7 +1386,7 @@ append_stock_menuitem (GtkWidget  *menu,
   GError *error;
   gboolean use_image;
 
-  
+
   menu_item = gtk_image_menu_item_new_from_stock (text, NULL);
   image = gtk_image_menu_item_get_image (GTK_IMAGE_MENU_ITEM (menu_item));
 
@@ -1426,7 +1429,7 @@ append_check_menuitem (GtkWidget  *menu,
                        gpointer    data)
 {
   GtkWidget *menu_item;
-  
+
   menu_item = gtk_check_menu_item_new_with_mnemonic (text);
   gtk_widget_show (menu_item);
   gtk_menu_shell_append (GTK_MENU_SHELL (menu), menu_item);
@@ -1437,7 +1440,7 @@ append_check_menuitem (GtkWidget  *menu,
   return menu_item;
 }
 
-typedef struct 
+typedef struct
 {
   TerminalScreen *screen;
   gint button;
@@ -1458,10 +1461,10 @@ popup_clipboard_request_callback (GtkCli
   GList *tmp;
   GSList *group;
   gboolean has_tabs;
-  
+
   screen = info->screen;
 
-  if (!GTK_WIDGET_REALIZED (screen->priv->term)) 
+  if (!GTK_WIDGET_REALIZED (screen->priv->term))
     {
       goto cleanup;
     }
@@ -1474,33 +1477,33 @@ popup_clipboard_request_callback (GtkCli
   screen->priv->popup_menu = gtk_menu_new ();
   gtk_menu_set_accel_group (GTK_MENU (screen->priv->popup_menu),
                             terminal_accels_get_group_for_widget (screen->priv->popup_menu));
-  
+
   gtk_menu_attach_to_widget (GTK_MENU (screen->priv->popup_menu),
                              GTK_WIDGET (screen->priv->term),
                              popup_menu_detach);
 
-  if (screen->priv->matched_string != NULL) 
+  if (screen->priv->matched_string != NULL)
     {
       menu_item = append_menuitem (screen->priv->popup_menu,
                                    _("_Open Link"),
                                    G_CALLBACK (open_url_callback),
                                    screen);
-      
+
       menu_item = append_menuitem (screen->priv->popup_menu,
                                    _("_Copy Link Address"),
                                    G_CALLBACK (copy_url_callback),
                                    screen);
-  
+
       menu_item = gtk_separator_menu_item_new ();
       gtk_widget_show (menu_item);
       gtk_menu_shell_append (GTK_MENU_SHELL (screen->priv->popup_menu), menu_item);
     }
- 
+
   menu_item = append_menuitem (screen->priv->popup_menu,
                                _("Open _Terminal"),
                                G_CALLBACK (new_window_callback),
                                screen);
-  
+
   menu_item = append_menuitem (screen->priv->popup_menu,
                                _("Open Ta_b"),
                                G_CALLBACK (new_tab_callback),
@@ -1531,7 +1534,7 @@ popup_clipboard_request_callback (GtkCli
                                      G_CALLBACK (paste_callback),
                                      screen);
   gtk_widget_set_sensitive (menu_item, text != NULL);
-  
+
   menu_item = gtk_separator_menu_item_new ();
   gtk_widget_show (menu_item);
   gtk_menu_shell_append (GTK_MENU_SHELL (screen->priv->popup_menu), menu_item);
@@ -1543,7 +1546,7 @@ popup_clipboard_request_callback (GtkCli
 
   gtk_widget_show (profile_menu);
   gtk_widget_show (menu_item);
-  
+
   gtk_menu_shell_append (GTK_MENU_SHELL (screen->priv->popup_menu), menu_item);
 
   group = NULL;
@@ -1551,9 +1554,9 @@ popup_clipboard_request_callback (GtkCli
   for (tmp = profiles; tmp != NULL; tmp = tmp->next)
     {
       TerminalProfile *profile;
-      
+
       profile = tmp->data;
-      
+
       /* Profiles can go away while the menu is up. */
       g_object_ref (G_OBJECT (profile));
 
@@ -1566,7 +1569,7 @@ popup_clipboard_request_callback (GtkCli
         {
           gtk_check_menu_item_set_active (GTK_CHECK_MENU_ITEM (menu_item), TRUE);
         }
-      
+
       g_signal_connect (G_OBJECT (menu_item), "toggled", G_CALLBACK (choose_profile_callback), screen);
       g_object_set_data_full (G_OBJECT (menu_item), "profile", profile, (GDestroyNotify) g_object_unref);
     }
@@ -1577,12 +1580,12 @@ popup_clipboard_request_callback (GtkCli
 		   G_CALLBACK (configuration_callback),
 		   screen);
 
-  menu_item = append_check_menuitem (screen->priv->popup_menu, 
-                                     _("Show _Menubar"), 
+  menu_item = append_check_menuitem (screen->priv->popup_menu,
+                                     _("Show _Menubar"),
                                      terminal_window_get_menubar_visible (screen->priv->window),
                                      G_CALLBACK (show_menubar_callback),
                                      screen);
- 
+
   menu_item = gtk_separator_menu_item_new ();
   gtk_widget_show (menu_item);
   gtk_menu_shell_append (GTK_MENU_SHELL (screen->priv->popup_menu), menu_item);
@@ -1594,10 +1597,10 @@ popup_clipboard_request_callback (GtkCli
   gtk_widget_show (im_menu);
   gtk_widget_show (menu_item);
   gtk_menu_shell_append (GTK_MENU_SHELL (screen->priv->popup_menu), menu_item);
- 
+
   gtk_menu_popup (GTK_MENU (screen->priv->popup_menu),
                   NULL, NULL,
-                  NULL, NULL, 
+                  NULL, NULL,
                   info->button,
                   info->time);
 
@@ -1648,11 +1651,11 @@ terminal_screen_button_press_event (GtkW
   GtkWidget *term;
   int char_width, char_height;
   gboolean dingus_button;
-  
+
   term = screen->priv->term;
 
   terminal_widget_get_cell_size (term, &char_width, &char_height);
-  
+
   g_free (screen->priv->matched_string);
   screen->priv->matched_string =
     terminal_widget_check_match (term,
@@ -1685,13 +1688,13 @@ terminal_screen_button_press_event (GtkW
       (screen->priv->matched_string != NULL))
     {
       gtk_widget_grab_focus (widget);
-      
+
       open_url (screen, screen->priv->matched_string, screen->priv->matched_flavor);
       g_free (screen->priv->matched_string);
       screen->priv->matched_string = NULL;
       return TRUE; /* don't do anything else such as select with the click */
     }
-      
+
   if ((event->button == 3) &&
       !(event->state & (GDK_SHIFT_MASK | GDK_CONTROL_MASK | GDK_MOD1_MASK)))
     {
@@ -1708,7 +1711,7 @@ terminal_screen_set_dynamic_title (Termi
                                    const char     *title)
 {
   g_return_if_fail (TERMINAL_IS_SCREEN (screen));
-  
+
   if (screen->priv->raw_title && title &&
       strcmp (screen->priv->raw_title, title) == 0)
     return;
@@ -1721,14 +1724,14 @@ terminal_screen_set_dynamic_title (Termi
       screen->priv->raw_title)
     {
       char *text;
-      
+
       text = gtk_editable_get_chars (GTK_EDITABLE (screen->priv->title_entry),
                                      0, -1);
 
       if (strcmp (text, screen->priv->raw_title) != 0)
         gtk_entry_set_text (GTK_ENTRY (screen->priv->title_entry),
                             screen->priv->raw_title);
-      
+
       g_free (text);
     }
 }
@@ -1738,7 +1741,7 @@ terminal_screen_set_dynamic_icon_title (
                                         const char     *icon_title)
 {
   g_return_if_fail (TERMINAL_IS_SCREEN (screen));
-  
+
   if (screen->priv->icon_title_set && screen->priv->raw_icon_title && icon_title &&
       strcmp (screen->priv->raw_icon_title, icon_title) == 0)
     return;
@@ -1753,7 +1756,7 @@ const char*
 terminal_screen_get_dynamic_title (TerminalScreen *screen)
 {
   g_return_val_if_fail (TERMINAL_IS_SCREEN (screen), NULL);
-  
+
   return screen->priv->raw_title;
 }
 
@@ -1761,7 +1764,7 @@ const char*
 terminal_screen_get_dynamic_icon_title (TerminalScreen *screen)
 {
   g_return_val_if_fail (TERMINAL_IS_SCREEN (screen), NULL);
-  
+
   return screen->priv->raw_icon_title;
 }
 
@@ -1769,7 +1772,7 @@ void
 terminal_screen_set_working_dir (TerminalScreen *screen,
                                  const char     *dirname)
 {
-  g_return_if_fail (TERMINAL_IS_SCREEN (screen));  
+  g_return_if_fail (TERMINAL_IS_SCREEN (screen));
 
   g_free (screen->priv->working_dir);
   screen->priv->working_dir = g_strdup (dirname);
@@ -1796,7 +1799,7 @@ terminal_screen_get_working_dir (Termina
       if (len > 0 && buf[0] == '/')
         {
           buf[len] = '\0';
-          
+
           g_free (screen->priv->working_dir);
           screen->priv->working_dir = g_strdup (buf);
         }
@@ -1820,10 +1823,10 @@ terminal_screen_get_working_dir (Termina
               g_free (cwd);
             }
         }
-      
+
       g_free (file);
     }
-  
+
   return screen->priv->working_dir;
 }
 
@@ -1833,7 +1836,7 @@ recheck_dir (void *data)
   TerminalScreen *screen = data;
 
   screen->priv->recheck_working_dir_idle = 0;
-  
+
   /* called just for side effect */
   terminal_screen_get_working_dir (screen);
 
@@ -1865,9 +1868,9 @@ terminal_screen_set_font_scale (Terminal
     factor = TERMINAL_SCALE_MINIMUM;
   if (factor > TERMINAL_SCALE_MAXIMUM)
     factor = TERMINAL_SCALE_MAXIMUM;
-  
+
   screen->priv->font_scale = factor;
-  
+
   if (screen->priv->term &&
       GTK_WIDGET_REALIZED (screen->priv->term))
     {
@@ -1881,7 +1884,7 @@ double
 terminal_screen_get_font_scale (TerminalScreen *screen)
 {
   g_return_val_if_fail (TERMINAL_IS_SCREEN (screen), 1.0);
-  
+
   return screen->priv->font_scale;
 }
 
@@ -1890,7 +1893,7 @@ terminal_screen_widget_title_changed (Gt
                                       TerminalScreen *screen)
 {
   terminal_screen_set_dynamic_title (screen,
-                                     terminal_widget_get_title (widget));  
+                                     terminal_widget_get_title (widget));
 
   queue_recheck_working_dir (screen);
 }
@@ -1900,7 +1903,7 @@ terminal_screen_widget_icon_title_change
                                            TerminalScreen *screen)
 {
   terminal_screen_set_dynamic_icon_title (screen,
-                                          terminal_widget_get_icon_title (widget));  
+                                          terminal_widget_get_icon_title (widget));
 
   queue_recheck_working_dir (screen);
 }
@@ -1913,11 +1916,11 @@ terminal_screen_widget_child_died (GtkWi
   TerminalExitAction action;
 
   screen->priv->child_pid = -1;
-  
+
   action = TERMINAL_EXIT_CLOSE;
   if (screen->priv->profile)
     action = terminal_profile_get_exit_action (screen->priv->profile);
-  
+
   switch (action)
     {
     case TERMINAL_EXIT_CLOSE:
@@ -1952,7 +1955,7 @@ title_entry_changed (GtkWidget      *ent
   char *text;
 
   text = gtk_editable_get_chars (GTK_EDITABLE (entry), 0, -1);
-  
+
   terminal_screen_set_dynamic_title (screen, text);
 
   g_free (text);
@@ -1963,15 +1966,15 @@ terminal_screen_edit_title (TerminalScre
                             GtkWindow      *transient_parent)
 {
   GtkWindow *old_transient_parent;
-  
+
   if (screen->priv->title_editor == NULL)
     {
       GtkWidget *hbox;
       GtkWidget *entry;
       GtkWidget *label;
-      
-      old_transient_parent = NULL;      
-      
+
+      old_transient_parent = NULL;
+
       screen->priv->title_editor =
         gtk_dialog_new_with_buttons (_("Set Title"),
                                      NULL,
@@ -1979,7 +1982,7 @@ terminal_screen_edit_title (TerminalScre
                                      GTK_STOCK_CLOSE,
                                      GTK_RESPONSE_ACCEPT,
                                      NULL);
-      
+
       g_signal_connect (G_OBJECT (screen->priv->title_editor),
                         "response",
                         G_CALLBACK (gtk_widget_destroy),
@@ -1989,7 +1992,7 @@ terminal_screen_edit_title (TerminalScre
                                  (void**) &screen->priv->title_editor);
 
       gtk_window_set_resizable (GTK_WINDOW (screen->priv->title_editor), FALSE);
-      
+
       terminal_util_set_unique_role (GTK_WINDOW (screen->priv->title_editor), "gnome-terminal-change-title");
 
       gtk_widget_set_name (screen->priv->title_editor, "set-title-dialog");
@@ -2000,7 +2003,7 @@ terminal_screen_edit_title (TerminalScre
       gtk_box_set_spacing (GTK_BOX (GTK_DIALOG (screen->priv->title_editor)->vbox), 12);
 
       hbox = gtk_hbox_new (FALSE, 12);
-      gtk_box_pack_start (GTK_BOX (GTK_DIALOG (screen->priv->title_editor)->vbox), hbox, FALSE, FALSE, 0);      
+      gtk_box_pack_start (GTK_BOX (GTK_DIALOG (screen->priv->title_editor)->vbox), hbox, FALSE, FALSE, 0);
 
       label = gtk_label_new_with_mnemonic (_("_Title:"));
       gtk_misc_set_alignment (GTK_MISC (label), 0.0, 0.5);
@@ -2011,13 +2014,13 @@ terminal_screen_edit_title (TerminalScre
       gtk_entry_set_activates_default (GTK_ENTRY (entry), TRUE);
       gtk_label_set_mnemonic_widget (GTK_LABEL (label), entry);
       gtk_box_pack_start (GTK_BOX (hbox), entry, TRUE, TRUE, 0);
-      
+
       gtk_widget_grab_focus (entry);
       gtk_dialog_set_default_response (GTK_DIALOG (screen->priv->title_editor), GTK_RESPONSE_ACCEPT);
-      
+
       if (screen->priv->raw_title)
         gtk_entry_set_text (GTK_ENTRY (entry), screen->priv->raw_title);
-      
+
       g_signal_connect (G_OBJECT (entry), "changed",
                         G_CALLBACK (title_entry_changed),
                         screen);
@@ -2032,14 +2035,14 @@ terminal_screen_edit_title (TerminalScre
       old_transient_parent =
         gtk_window_get_transient_for (GTK_WINDOW (screen->priv->title_editor));
     }
-    
+
   if (old_transient_parent != transient_parent)
     {
       gtk_window_set_transient_for (GTK_WINDOW (screen->priv->title_editor),
                                     transient_parent);
       gtk_widget_hide (screen->priv->title_editor); /* re-show the window on its new parent */
     }
-  
+
   gtk_widget_show_all (screen->priv->title_editor);
   gtk_window_present (GTK_WINDOW (screen->priv->title_editor));
 }
@@ -2058,8 +2061,8 @@ enum
   TARGET_MOZ_URL
 };
 
-static void  
-drag_data_received  (GtkWidget *widget, GdkDragContext *context, 
+static void
+drag_data_received  (GtkWidget *widget, GdkDragContext *context,
 		     gint x, gint y,
 		     GtkSelectionData *selection_data, guint info,
 		     guint time,
@@ -2073,19 +2076,19 @@ drag_data_received  (GtkWidget *widget, 
   {
     GList *tmp;
     char *str;
-    
+
     tmp = context->targets;
     while (tmp != NULL)
       {
         GdkAtom atom = GPOINTER_TO_UINT (tmp->data);
 
-        g_print ("Target: %s\n", gdk_atom_name (atom));        
-        
+        g_print ("Target: %s\n", gdk_atom_name (atom));
+
         tmp = tmp->next;
       }
   }
 #endif
-  
+
   switch (info)
     {
     case TARGET_STRING:
@@ -2094,7 +2097,7 @@ drag_data_received  (GtkWidget *widget, 
     case TARGET_TEXT:
       {
         char *str;
-        
+
         str = gtk_selection_data_get_text (selection_data);
 
         /*
@@ -2119,14 +2122,14 @@ drag_data_received  (GtkWidget *widget, 
                         selection_data->length);
             return;
           }
-        
+
         /* FIXME just brazenly ignoring encoding issues... */
         terminal_widget_write_data_to_child (screen->priv->term,
                                              selection_data->data,
                                              selection_data->length);
       }
       break;
-      
+
     case TARGET_COLOR:
       {
         guint16 *data = (guint16 *)selection_data->data;
@@ -2154,10 +2157,10 @@ drag_data_received  (GtkWidget *widget, 
             terminal_profile_set_background_type (profile,
                                                   TERMINAL_BACKGROUND_SOLID);
             terminal_profile_set_use_theme_colors (profile, FALSE);
-            
+
             terminal_profile_get_color_scheme (profile,
                                                &fg, NULL);
-            
+
             terminal_profile_set_color_scheme (profile, &fg, &color);
           }
       }
@@ -2170,7 +2173,7 @@ drag_data_received  (GtkWidget *widget, 
         const guint16 *char_data;
         int char_len;
         char *filename;
-        
+
         /* MOZ_URL is in UCS-2 but in format 8. BROKEN!
          *
          * The data contains the URL, a \n, then the
@@ -2187,7 +2190,7 @@ drag_data_received  (GtkWidget *widget, 
           }
 
         str = g_string_new (NULL);
-        
+
         char_len = selection_data->length / 2;
         char_data = (const guint16*) selection_data->data;
         i = 0;
@@ -2195,15 +2198,15 @@ drag_data_received  (GtkWidget *widget, 
           {
             if (char_data[i] == '\n')
               break;
-            
+
             g_string_append_unichar (str, (gunichar) char_data[i]);
-            
+
             ++i;
           }
 
         /* drop file:///, else paste in URI literally */
         filename = g_filename_from_uri (str->str, NULL, NULL);
-        
+
         /* FIXME just brazenly ignoring encoding issues, sending
          * child some UTF-8
          */
@@ -2215,17 +2218,17 @@ drag_data_received  (GtkWidget *widget, 
                                                str->str,
                                                str->len);
 
-        g_free (filename);        
+        g_free (filename);
         g_string_free (str, TRUE);
       }
       break;
-      
+
     case TARGET_URI_LIST:
       {
         char *uri_list;
         char **uris;
         int i;
-        
+
         if (selection_data->format != 8 ||
             selection_data->length == 0)
           {
@@ -2234,7 +2237,7 @@ drag_data_received  (GtkWidget *widget, 
                         selection_data->length);
             return;
           }
-        
+
         uri_list = g_strndup (selection_data->data,
                               selection_data->length);
 
@@ -2244,7 +2247,7 @@ drag_data_received  (GtkWidget *widget, 
         while (uris && uris[i])
           {
             char *old;
-            
+
             old = uris[i];
 
             uris[i] = g_filename_from_uri (old, NULL, NULL);
@@ -2256,14 +2259,14 @@ drag_data_received  (GtkWidget *widget, 
               uris[i] = old;
             else
               g_free (old);
-            
+
             ++i;
           }
 
         if (uris)
           {
             char *flat;
-            
+
             flat = g_strjoinv (" ", uris);
             terminal_widget_write_data_to_child (screen->priv->term,
                                                  flat, strlen (flat));
@@ -2273,13 +2276,13 @@ drag_data_received  (GtkWidget *widget, 
         g_strfreev (uris);
       }
       break;
-      
+
     case TARGET_BGIMAGE:
       {
         char *uri_list;
         char **uris;
         gboolean exactly_one;
-        
+
         if (selection_data->format != 8 ||
             selection_data->length == 0)
           {
@@ -2288,7 +2291,7 @@ drag_data_received  (GtkWidget *widget, 
                         selection_data->length);
             return;
           }
-        
+
         uri_list = g_strndup (selection_data->data,
                               selection_data->length);
 
@@ -2316,12 +2319,12 @@ drag_data_received  (GtkWidget *widget, 
               }
 
             profile = terminal_screen_get_profile (screen);
-            
+
             if (filename && profile)
               {
                 terminal_profile_set_background_type (profile,
                                                       TERMINAL_BACKGROUND_IMAGE);
-                
+
                 terminal_profile_set_background_image_file (profile,
                                                             filename);
               }
@@ -2338,7 +2341,7 @@ drag_data_received  (GtkWidget *widget, 
         TerminalProfile *profile;
 
         profile = terminal_screen_get_profile (screen);
-        
+
         if (profile)
           {
             terminal_profile_set_background_type (profile,
@@ -2367,10 +2370,10 @@ terminal_screen_setup_dnd (TerminalScree
     /* add when gtk supports it perhaps */
     /* { "text/unicode", 0, TARGET_TEXT_UNICODE } */
   };
-  
+
   g_signal_connect (G_OBJECT (screen->priv->term), "drag_data_received",
                     G_CALLBACK (drag_data_received), screen);
-  
+
   gtk_drag_dest_set (GTK_WIDGET (screen->priv->term),
                      GTK_DEST_DEFAULT_MOTION |
                      GTK_DEST_DEFAULT_HIGHLIGHT |
@@ -2381,11 +2384,11 @@ terminal_screen_setup_dnd (TerminalScree
 
 /* Indices of some xlfd string entries.  The first entry is 1 */
 #define XLFD_WEIGHT_INDEX			3
-#define XLFD_SLANT_INDEX			4	
-#define XLFD_SIZE_IN_PIXELS_INDEX		7	
-#define XLFD_SIZE_IN_POINTS_INDEX		8	
-#define XLFD_HORIZONTAL_RESOLUTION_INDEX	9	
-#define XLFD_VERTICAL_RESOLUTION_INDEX		10	
+#define XLFD_SLANT_INDEX			4
+#define XLFD_SIZE_IN_PIXELS_INDEX		7
+#define XLFD_SIZE_IN_POINTS_INDEX		8
+#define XLFD_HORIZONTAL_RESOLUTION_INDEX	9
+#define XLFD_VERTICAL_RESOLUTION_INDEX		10
 #define XLFD_SPACING_INDEX		        11
 
 #define XLFD_N_FIELDS 14
@@ -2397,11 +2400,11 @@ xlfd_get_nth_field (const char *xlfd,
   char **split;
   char *ret;
   int i;
-  
+
   /* Remember fontsets with the appended ",-*-" and stuff
    * like that...
    */
-  
+
   split = g_strsplit (xlfd, "-", XLFD_N_FIELDS);
 
   i = 0;
@@ -2412,9 +2415,9 @@ xlfd_get_nth_field (const char *xlfd,
 
       ++i;
     }
-  
+
   ret = g_strdup (split[n]);
-  
+
   g_strfreev (split);
 
   return ret;
@@ -2428,11 +2431,11 @@ xlfd_replace_nth_field (const char *xlfd
   char **split;
   char *ret;
   int i;
-  
+
   /* Remember fontsets with the appended ",-*-" and stuff
    * like that...
    */
-  
+
   split = g_strsplit (xlfd, "-", XLFD_N_FIELDS);
 
   i = 0;
@@ -2446,9 +2449,9 @@ xlfd_replace_nth_field (const char *xlfd
 
   g_free (split[n]);
   split[n] = g_strdup (new_value);
-  
+
   ret = g_strjoinv ("-", split);
-  
+
   g_strfreev (split);
 
   return ret;
@@ -2459,7 +2462,7 @@ xfont_is_monospace (const char *fontname
 {
   char *spacing;
   gboolean ret;
-  
+
   spacing = xlfd_get_nth_field (fontname, XLFD_SPACING_INDEX);
 
   if (spacing == NULL)
@@ -2476,7 +2479,7 @@ static char*
 make_xfont_monospace (const char *fontname)
 {
   char *ret;
-  
+
   ret = xlfd_replace_nth_field (fontname, XLFD_SPACING_INDEX, "m");
   if (ret == NULL)
     ret = g_strdup (fontname);
@@ -2488,7 +2491,7 @@ static char*
 make_xfont_char_cell (const char *fontname)
 {
   char *ret;
-  
+
   ret = xlfd_replace_nth_field (fontname, XLFD_SPACING_INDEX, "c");
   if (ret == NULL)
     ret = g_strdup (fontname);
@@ -2541,7 +2544,7 @@ load_fonset_without_error (const gchar *
   char **missing_charset_list;
   char *def_string;
   GdkFont *ret;
-  
+
   fontset = XCreateFontSet (GDK_DISPLAY (), fontset_name,
 			    &missing_charset_list, &missing_charset_count,
 			    &def_string);
@@ -2552,7 +2555,7 @@ load_fonset_without_error (const gchar *
        * it's just here because I might change the function to optionally
        * return these things in a GError
        */
-      
+
       int i;
       GString *str;
 
@@ -2565,7 +2568,7 @@ load_fonset_without_error (const gchar *
                                 "  (Missing character set \"%s\")\n",
                                 missing_charset_list[i]);
       XFreeStringList (missing_charset_list);
-      
+
       /* g_printerr ("%s", str->str); */
 
       g_string_free (str, TRUE);
@@ -2573,11 +2576,11 @@ load_fonset_without_error (const gchar *
 
   if (fontset == NULL)
     return NULL;
-  
-  /* This should succeed, and be fast since we still have "fontset" open */     
+
+  /* This should succeed, and be fast since we still have "fontset" open */
   ret = gdk_fontset_load (fontset_name);
 
   XFreeFontSet (GDK_DISPLAY (), fontset);
-  
+
   return ret;
 }
diff -upr gnome-terminal-2.11.2/src/terminal-window.c gnome-terminal-2.11.2-maximized/src/terminal-window.c
--- gnome-terminal-2.11.2/src/terminal-window.c	2005-08-08 16:19:23.000000000 +0200
+++ gnome-terminal-2.11.2-maximized/src/terminal-window.c	2005-08-18 21:01:45.000000000 +0200
@@ -35,7 +35,7 @@
 #include <libsn/sn-launchee.h>
 
 struct _TerminalWindowPrivate
-{  
+{
   GtkWidget *main_vbox;
   GtkWidget *menubar;
   GtkWidget *notebook;
@@ -191,7 +191,7 @@ static void help_callback               
 static void about_callback                (GtkWidget      *menuitem,
                                            TerminalWindow *window);
 
-static gboolean window_state_event_callback (GtkWidget            *widget, 
+static gboolean window_state_event_callback (GtkWidget            *widget,
                                              GdkEventWindowState  *event,
                                              gpointer              user_data);
 
@@ -219,7 +219,7 @@ terminal_window_get_type (void)
   static GType object_type = 0;
 
   g_type_init ();
-  
+
   if (!object_type)
     {
       static const GTypeInfo object_info =
@@ -234,12 +234,12 @@ terminal_window_get_type (void)
         0,              /* n_preallocs */
         (GInstanceInitFunc) terminal_window_init,
       };
-      
+
       object_type = g_type_register_static (GTK_TYPE_WINDOW,
                                             "TerminalWindow",
-                                            &object_info, 0);      
+                                            &object_info, 0);
     }
-  
+
   return object_type;
 }
 
@@ -251,13 +251,13 @@ append_menuitem (GtkWidget  *menu,
                  gpointer    data)
 {
   GtkWidget *menu_item;
-  
+
   menu_item = gtk_menu_item_new_with_mnemonic (text);
 
   if (accel_path)
     gtk_menu_item_set_accel_path (GTK_MENU_ITEM (menu_item),
                                   accel_path);
-  
+
   gtk_widget_show (menu_item);
   gtk_menu_shell_append (GTK_MENU_SHELL (menu),
                          menu_item);
@@ -298,7 +298,7 @@ menuitem_icon_visibility_notify (GConfCl
                                  gpointer     user_data)
 {
   GConfValue *value = gconf_entry_get_value (entry);
-  
+
   if (value && value->type == GCONF_VALUE_BOOL)
     menuitem_icon_visibility (user_data, gconf_value_get_bool (value));
 }
@@ -355,7 +355,7 @@ append_stock_menuitem (GtkWidget  *menu,
 }
 
 static GtkWidget *
-append_check_menuitem (GtkWidget  *menu, 
+append_check_menuitem (GtkWidget  *menu,
                        const char *text,
                        const char *accel_path,
                        gboolean    active,
@@ -379,7 +379,7 @@ append_check_menuitem (GtkWidget  *menu,
 
   return menu_item;
 }
-                       
+
 static void
 fill_in_config_picker_submenu (TerminalWindow *window)
 {
@@ -397,25 +397,25 @@ fill_in_config_picker_submenu (TerminalW
                                  NULL);
       return;
     }
-  
+
   gtk_widget_set_sensitive (window->priv->choose_config_menuitem, TRUE);
 
-  accel_group = terminal_accels_get_group_for_widget (GTK_WIDGET (window));  
-  
+  accel_group = terminal_accels_get_group_for_widget (GTK_WIDGET (window));
+
   menu = gtk_menu_new ();
   gtk_menu_set_accel_group (GTK_MENU (menu), accel_group);
   gtk_menu_item_set_submenu (GTK_MENU_ITEM (window->priv->choose_config_menuitem),
                              menu);
-  
+
   group = NULL;
   profiles = terminal_profile_get_list ();
   tmp = profiles;
   while (tmp != NULL)
     {
       TerminalProfile *profile;
-      
+
       profile = tmp->data;
-      
+
       /* Profiles can go away while the menu is up. */
       g_object_ref (G_OBJECT (profile));
 
@@ -425,25 +425,25 @@ fill_in_config_picker_submenu (TerminalW
       gtk_widget_show (menu_item);
       gtk_menu_shell_append (GTK_MENU_SHELL (menu),
                              menu_item);
-      
+
       if (profile == terminal_screen_get_profile (window->priv->active_term))
         gtk_check_menu_item_set_active (GTK_CHECK_MENU_ITEM (menu_item),
                                         TRUE);
-      
+
       g_signal_connect (G_OBJECT (menu_item),
                         "toggled",
                         G_CALLBACK (change_configuration_callback),
                         window);
-      
+
       g_object_set_data_full (G_OBJECT (menu_item),
                               "profile",
                               profile,
                               (GDestroyNotify) g_object_unref);
-      
+
       tmp = tmp->next;
     }
 
-  g_list_free (profiles);  
+  g_list_free (profiles);
 }
 
 static char *
@@ -490,11 +490,11 @@ fill_in_new_term_submenus (TerminalWindo
    * otherwise do nothing
    */
   current_profile = terminal_profile_get_for_new_term (current_profile);
-  
+
   if (current_profile == NULL)
     {
       /* Well, this shouldn't happen */
-      
+
       gtk_widget_set_sensitive (window->priv->new_window_menuitem, FALSE);
       gtk_menu_item_set_submenu (GTK_MENU_ITEM (window->priv->new_window_menuitem),
                                  NULL);
@@ -502,15 +502,15 @@ fill_in_new_term_submenus (TerminalWindo
       gtk_menu_item_set_submenu (GTK_MENU_ITEM (window->priv->new_tab_menuitem),
                                  NULL);
 
-      return;      
+      return;
     }
 
   str = g_strdup (terminal_profile_get_visible_name (current_profile));
-  
+
   gtk_widget_set_sensitive (window->priv->new_window_menuitem, TRUE);
   gtk_widget_set_sensitive (window->priv->new_tab_menuitem, TRUE);
-  
-  accel_group = terminal_accels_get_group_for_widget (GTK_WIDGET (window));  
+
+  accel_group = terminal_accels_get_group_for_widget (GTK_WIDGET (window));
 
   /* New window submenu */
   new_window_menu = gtk_menu_new ();
@@ -530,17 +530,17 @@ fill_in_new_term_submenus (TerminalWindo
   g_object_set_data_full (G_OBJECT (menu_item),
                           "profile",
                           current_profile,
-                          (GDestroyNotify) g_object_unref);  
+                          (GDestroyNotify) g_object_unref);
 
   gtk_menu_item_set_accel_path (GTK_MENU_ITEM (menu_item),
                                 ACCEL_PATH_NEW_WINDOW);
-  
+
   /* separator */
   menu_item = gtk_separator_menu_item_new ();
   gtk_widget_show (menu_item);
   gtk_menu_shell_append (GTK_MENU_SHELL (new_window_menu),
                          menu_item);
-  
+
   /* New tab submenu */
   new_tab_menu = gtk_menu_new ();
   gtk_menu_set_accel_group (GTK_MENU (new_tab_menu), accel_group);
@@ -563,13 +563,13 @@ fill_in_new_term_submenus (TerminalWindo
 
   gtk_menu_item_set_accel_path (GTK_MENU_ITEM (menu_item),
                                 ACCEL_PATH_NEW_TAB);
-  
+
   /* separator */
   menu_item = gtk_separator_menu_item_new ();
   gtk_widget_show (menu_item);
   gtk_menu_shell_append (GTK_MENU_SHELL (new_tab_menu),
                          menu_item);
-  
+
   g_free (str);
 
   i = 1;
@@ -580,9 +580,9 @@ fill_in_new_term_submenus (TerminalWindo
     {
       TerminalProfile *profile;
       char *escaped_name;
-      
+
       profile = tmp->data;
-      
+
       /* Profiles can go away while the menu is up. */
       g_object_ref (G_OBJECT (profile));
       g_object_ref (G_OBJECT (profile));
@@ -597,16 +597,16 @@ fill_in_new_term_submenus (TerminalWindo
         str = g_strdup (escaped_name);
 
       g_free (escaped_name);
-      
+
       /* item for new window */
       menu_item = gtk_menu_item_new_with_mnemonic (str);
       gtk_widget_show (menu_item);
       gtk_menu_shell_append (GTK_MENU_SHELL (new_window_menu),
-                             menu_item);      
+                             menu_item);
       g_signal_connect (G_OBJECT (menu_item),
                         "activate",
                         G_CALLBACK (new_window_callback),
-                        window);      
+                        window);
       g_object_set_data_full (G_OBJECT (menu_item),
                               "profile",
                               profile,
@@ -616,11 +616,11 @@ fill_in_new_term_submenus (TerminalWindo
       menu_item = gtk_menu_item_new_with_mnemonic (str);
       gtk_widget_show (menu_item);
       gtk_menu_shell_append (GTK_MENU_SHELL (new_tab_menu),
-                             menu_item);      
+                             menu_item);
       g_signal_connect (G_OBJECT (menu_item),
                         "activate",
                         G_CALLBACK (new_tab_callback),
-                        window);      
+                        window);
       g_object_set_data_full (G_OBJECT (menu_item),
                               "profile",
                               profile,
@@ -648,7 +648,7 @@ fill_in_encoding_menu (TerminalWindow *w
 
   if (!terminal_widget_supports_dynamic_encoding ())
     return;
-  
+
   if (window->priv->active_term == NULL)
     {
       gtk_widget_set_sensitive (window->priv->encoding_menuitem, FALSE);
@@ -656,7 +656,7 @@ fill_in_encoding_menu (TerminalWindow *w
                                  NULL);
       return;
     }
-  
+
   gtk_widget_set_sensitive (window->priv->encoding_menuitem, TRUE);
 
   menu = gtk_menu_new ();
@@ -665,7 +665,7 @@ fill_in_encoding_menu (TerminalWindow *w
 
   w = terminal_screen_get_widget (window->priv->active_term);
   charset = terminal_widget_get_encoding (w);
-  
+
   group = NULL;
   encodings = terminal_get_active_encodings ();
   tmp = encodings;
@@ -673,11 +673,11 @@ fill_in_encoding_menu (TerminalWindow *w
     {
       TerminalEncoding *e;
       char *name;
-      
+
       e = tmp->data;
 
       name = g_strdup_printf ("%s (%s)", e->name, e->charset);
-      
+
       menu_item = gtk_radio_menu_item_new_with_label (group, name);
 
       g_free (name);
@@ -686,11 +686,11 @@ fill_in_encoding_menu (TerminalWindow *w
       gtk_widget_show (menu_item);
       gtk_menu_shell_append (GTK_MENU_SHELL (menu),
                              menu_item);
-      
+
       if (strcmp (e->charset, charset) == 0)
         gtk_check_menu_item_set_active (GTK_CHECK_MENU_ITEM (menu_item),
                                         TRUE);
-      
+
       g_signal_connect (G_OBJECT (menu_item),
                         "toggled",
                         G_CALLBACK (change_encoding_callback),
@@ -700,7 +700,7 @@ fill_in_encoding_menu (TerminalWindow *w
                               "encoding",
                               g_strdup (e->charset),
                               (GDestroyNotify) g_free);
-      
+
       tmp = tmp->next;
     }
 
@@ -712,7 +712,7 @@ fill_in_encoding_menu (TerminalWindow *w
   menu_item = gtk_separator_menu_item_new ();
   gtk_menu_shell_append (GTK_MENU_SHELL (menu), menu_item);
   gtk_widget_show (menu_item);
-  
+
   append_menuitem (menu, _("_Add or Remove..."), NULL,
                    G_CALLBACK (add_encoding_callback),
                    window);
@@ -731,7 +731,7 @@ update_zoom_items (TerminalWindow *windo
   TerminalScreen *screen;
   double ignored;
   double current_zoom;
-  
+
   screen = window->priv->active_term;
   if (screen == NULL)
     return;
@@ -776,26 +776,26 @@ terminal_window_init (TerminalWindow *wi
   GError *error;
   gboolean menus_have_icons;
 
-  g_signal_connect (G_OBJECT (window), "delete_event", 
+  g_signal_connect (G_OBJECT (window), "delete_event",
                     G_CALLBACK(terminal_window_delete_event),
                     NULL);
 
   gtk_window_set_title (GTK_WINDOW (window), _("Terminal"));
   client = gconf_client_get_default();
-  
+
   window->priv = g_new0 (TerminalWindowPrivate, 1);
   window->priv->terms = NULL;
   window->priv->active_term = NULL;
   window->priv->menubar = gtk_menu_bar_new ();
   window->priv->menubar_visible = FALSE;
-  
+
   window->priv->main_vbox = gtk_vbox_new (FALSE, 0);
   window->priv->notebook = gtk_notebook_new ();
-  
+
   window->priv->old_char_width = -1;
   window->priv->old_char_height = -1;
   window->priv->old_geometry_widget = NULL;
-  
+
   window->priv->use_mnemonics = TRUE;
   window->priv->using_mnemonics = FALSE;
 
@@ -810,23 +810,23 @@ terminal_window_init (TerminalWindow *wi
       g_error_free (error);
       menus_have_icons = TRUE;
     }
- 
+
   g_signal_connect (window->priv->menubar,
 		    "can_activate_accel",
 		    G_CALLBACK (gtk_true),
 		    NULL);
-  
+
   accel_group = terminal_accels_get_group_for_widget (GTK_WIDGET (window));
   gtk_window_add_accel_group (GTK_WINDOW (window), accel_group);
-  
+
   gtk_notebook_set_scrollable (GTK_NOTEBOOK (window->priv->notebook),
-                               TRUE);                                      
-  
+                               TRUE);
+
   g_signal_connect_after (G_OBJECT (window->priv->notebook),
                           "switch_page",
                           G_CALLBACK (notebook_page_selected_callback),
                           window);
-  
+
   gtk_container_add (GTK_CONTAINER (window),
                      window->priv->main_vbox);
 
@@ -836,13 +836,13 @@ terminal_window_init (TerminalWindow *wi
 
   gtk_box_pack_end (GTK_BOX (window->priv->main_vbox),
                     window->priv->notebook,
-                    TRUE, TRUE, 0);  
-  
+                    TRUE, TRUE, 0);
+
   mi = append_menuitem (window->priv->menubar,
                         "", NULL,
                         NULL, NULL);
   window->priv->file_menuitem = mi;
-  
+
   menu = gtk_menu_new ();
   gtk_menu_set_accel_group (GTK_MENU (menu),
                             accel_group);
@@ -853,7 +853,7 @@ terminal_window_init (TerminalWindow *wi
 
   window->priv->new_tab_menuitem =
     append_menuitem (menu, _("Open Ta_b"), NULL, NULL, NULL);
-  
+
   mi = gtk_separator_menu_item_new ();
   gtk_menu_shell_append (GTK_MENU_SHELL (menu), mi);
 
@@ -862,19 +862,19 @@ terminal_window_init (TerminalWindow *wi
    */
   append_menuitem (menu, _("New _Profile..."), ACCEL_PATH_NEW_PROFILE,
 		   G_CALLBACK (new_configuration_callback), window);
-  
+
   mi = gtk_separator_menu_item_new ();
   gtk_menu_shell_append (GTK_MENU_SHELL (menu), mi);
 
-  window->priv->close_tab_menuitem = 
+  window->priv->close_tab_menuitem =
     append_menuitem (menu, _("C_lose Tab"), ACCEL_PATH_CLOSE_TAB,
                      G_CALLBACK (close_tab_callback),
                      window);
-  
+
   append_menuitem (menu, _("_Close Window"), ACCEL_PATH_CLOSE_WINDOW,
                    G_CALLBACK (close_window_callback),
                    window);
-  
+
   mi = append_menuitem (window->priv->menubar,
                         "", NULL,
                         NULL, NULL);
@@ -898,12 +898,12 @@ terminal_window_init (TerminalWindow *wi
                            G_CALLBACK (paste_callback),
                            window);
   menuitem_icon_visibility (window->priv->paste_menuitem, menus_have_icons);
-  g_signal_connect (G_OBJECT (mi), "activate", 
+  g_signal_connect (G_OBJECT (mi), "activate",
                     G_CALLBACK (edit_menu_activate_callback), window);
 
   mi = gtk_separator_menu_item_new ();
   gtk_menu_shell_append (GTK_MENU_SHELL (menu), mi);
-  
+
   append_menuitem (menu, _("P_rofiles..."), NULL,
                    G_CALLBACK (manage_configurations_callback), window);
 
@@ -913,7 +913,7 @@ terminal_window_init (TerminalWindow *wi
   window->priv->edit_config_menuitem =
     append_menuitem (menu, _("C_urrent Profile..."), NULL,
                      G_CALLBACK (edit_configuration_callback), window);
-  
+
   mi = append_menuitem (window->priv->menubar,
                         "", NULL,
                         NULL, NULL);
@@ -923,7 +923,7 @@ terminal_window_init (TerminalWindow *wi
   gtk_menu_set_accel_group (GTK_MENU (menu),
                             accel_group);
   gtk_menu_item_set_submenu (GTK_MENU_ITEM (mi), menu);
-  
+
   /* This is a check menu item so that the togglability is evident, but when it is not checked,
    * it won't be seen, of course, because the menubar will be then hidden. */
   mi = append_check_menuitem (menu, _("Show Menu_bar"), ACCEL_PATH_TOGGLE_MENUBAR, FALSE,
@@ -956,16 +956,16 @@ terminal_window_init (TerminalWindow *wi
   menuitem_icon_visibility (window->priv->zoom_normal_menuitem, menus_have_icons);
 
   update_zoom_items (window);
-  
+
   mi = append_menuitem (window->priv->menubar,
                         "", NULL,
                         NULL, NULL);
-  window->priv->terminal_menuitem = mi;  
+  window->priv->terminal_menuitem = mi;
 
   g_signal_connect (G_OBJECT (mi), "activate",
                     G_CALLBACK (terminal_menu_opened_callback),
                     window);
-  
+
   menu = gtk_menu_new ();
   gtk_menu_set_accel_group (GTK_MENU (menu),
                             accel_group);
@@ -975,7 +975,7 @@ terminal_window_init (TerminalWindow *wi
   window->priv->choose_config_menuitem =
     append_menuitem (menu, _("Change _Profile"), NULL,
                      NULL, NULL);
-  
+
   append_menuitem (menu, _("_Set Title..."), ACCEL_PATH_SET_TERMINAL_TITLE,
                    G_CALLBACK (set_title_callback), window);
 
@@ -1003,7 +1003,7 @@ terminal_window_init (TerminalWindow *wi
                         "", NULL,
                         NULL, NULL);
   window->priv->go_menuitem = mi;
-  
+
   menu = gtk_menu_new ();
   window->priv->go_menu = menu;
   gtk_menu_set_accel_group (GTK_MENU (menu),
@@ -1013,19 +1013,19 @@ terminal_window_init (TerminalWindow *wi
   mi = append_menuitem (menu, _("_Previous Tab"), ACCEL_PATH_PREV_TAB,
                         G_CALLBACK (previous_tab_callback), window);
   window->priv->previous_tab_menuitem = mi;
-  
+
   mi = append_menuitem (menu, _("_Next Tab"), ACCEL_PATH_NEXT_TAB,
                         G_CALLBACK (next_tab_callback), window);
   window->priv->next_tab_menuitem = mi;
 
   mi = gtk_separator_menu_item_new ();
   gtk_menu_shell_append (GTK_MENU_SHELL (menu), mi);
-  
+
   mi = append_menuitem (window->priv->menubar,
                         "", NULL,
                         NULL, NULL);
   window->priv->help_menuitem = mi;
-  
+
   menu = gtk_menu_new ();
   gtk_menu_set_accel_group (GTK_MENU (menu),
                             accel_group);
@@ -1040,19 +1040,19 @@ terminal_window_init (TerminalWindow *wi
   gtk_menu_item_set_accel_path (GTK_MENU_ITEM (mi),
                                 ACCEL_PATH_HELP);
 
-  
+
   mi = append_stock_menuitem (menu, GTK_STOCK_ABOUT, NULL,
                               G_CALLBACK (about_callback), window);
   set_menuitem_text (mi, _("_About"), FALSE);
   menuitem_icon_visibility (mi, menus_have_icons);
-  
+
   terminal_window_reread_profile_list (window);
-  
+
   terminal_window_set_menubar_visible (window, TRUE);
-  window->priv->use_default_menubar_visibility = TRUE;  
+  window->priv->use_default_menubar_visibility = TRUE;
 
   reset_menubar_labels (window);
-  
+
   gtk_widget_show_all (window->priv->main_vbox);
 }
 
@@ -1062,9 +1062,9 @@ terminal_window_class_init (TerminalWind
   GObjectClass *object_class = G_OBJECT_CLASS (klass);
   GtkObjectClass *gtk_object_class = GTK_OBJECT_CLASS (klass);
   GtkWidgetClass *widget_class = GTK_WIDGET_CLASS (klass);
-  
+
   parent_class = g_type_class_peek_parent (klass);
-  
+
   object_class->finalize = terminal_window_finalize;
   gtk_object_class->destroy = terminal_window_destroy;
   widget_class->show = terminal_window_show;
@@ -1083,14 +1083,14 @@ terminal_window_finalize (GObject *objec
 
   if (window->priv->conf)
     g_object_unref (G_OBJECT (window->priv->conf));
-  
+
   if (window->priv->icon)
     g_object_unref (G_OBJECT (window->priv->icon));
 
   g_free (window->priv->startup_id);
-  
+
   g_free (window->priv);
-  
+
   G_OBJECT_CLASS (parent_class)->finalize (object);
 }
 
@@ -1106,7 +1106,7 @@ terminal_window_destroy (GtkObject *obje
 
   g_list_free (window->priv->tab_menuitems);
   window->priv->tab_menuitems = NULL;
-  
+
   /* to handle multiple destroy, FIXME some fields are missing */
   window->priv->menubar = NULL;
   window->priv->notebook = NULL;
@@ -1116,8 +1116,8 @@ terminal_window_destroy (GtkObject *obje
   window->priv->edit_config_menuitem = NULL;
   window->priv->choose_config_menuitem = NULL;
   window->priv->encoding_menuitem = NULL;
-  
-  GTK_OBJECT_CLASS (parent_class)->destroy (object);  
+
+  GTK_OBJECT_CLASS (parent_class)->destroy (object);
 }
 
 static gboolean
@@ -1150,12 +1150,12 @@ terminal_window_show (GtkWidget *widget)
   SnLauncheeContext *context;
   GdkScreen *screen;
   GdkDisplay *display;
-  
+
   window = TERMINAL_WINDOW (widget);
 
   if (!GTK_WIDGET_REALIZED (widget))
     gtk_widget_realize (widget);
-  
+
   context = NULL;
   sn_display = NULL;
   if (window->priv->startup_id != NULL)
@@ -1164,14 +1164,14 @@ terminal_window_show (GtkWidget *widget)
       /* FIXME In principle all transient children of this
        * window should get the same startup_id
        */
-      
+
       screen = gtk_window_get_screen (GTK_WINDOW (window));
       display = gdk_screen_get_display (screen);
-      
+
       sn_display = sn_display_new (gdk_x11_display_get_xdisplay (display),
                                    sn_error_trap_push,
                                    sn_error_trap_pop);
-      
+
       context = sn_launchee_context_new (sn_display,
                                          gdk_screen_get_number (screen),
                                          window->priv->startup_id);
@@ -1195,7 +1195,7 @@ terminal_window_show (GtkWidget *widget)
           gdk_x11_window_set_user_time (widget->window, timestamp);
         }
     }
-  
+
   GTK_WIDGET_CLASS (parent_class)->show (widget);
 
   if (context != NULL)
@@ -1219,7 +1219,7 @@ terminal_window_new (GConfClient *conf)
   TerminalWindow *window;
   GError *err;
   gboolean use_mnemonics;
-  
+
   window = g_object_new (TERMINAL_TYPE_WINDOW, NULL);
   g_signal_connect (G_OBJECT (window), "realize", G_CALLBACK (terminal_window_realized_callback), NULL);
 
@@ -1240,7 +1240,7 @@ terminal_window_new (GConfClient *conf)
     {
       window->priv->use_mnemonics = use_mnemonics;
     }
-  
+
   err = NULL;
   window->priv->notify_id =
     gconf_client_notify_add (window->priv->conf,
@@ -1248,7 +1248,7 @@ terminal_window_new (GConfClient *conf)
                              config_change_notify,
                              window,
                              NULL, &err);
-  
+
   if (err)
     {
       g_printerr (_("There was an error subscribing to notification of terminal window configuration changes. (%s)\n"),
@@ -1258,7 +1258,7 @@ terminal_window_new (GConfClient *conf)
 
   reset_menubar_labels (window);
   reset_tab_menuitems (window);
-  
+
   return window;
 }
 
@@ -1268,7 +1268,7 @@ update_notebook (TerminalWindow *window)
   gboolean single;
 
   single = g_list_length (window->priv->terms) == 1;
-    
+
   gtk_notebook_set_show_border (GTK_NOTEBOOK (window->priv->notebook), !single);
   gtk_notebook_set_show_tabs (GTK_NOTEBOOK (window->priv->notebook), !single);
 }
@@ -1289,8 +1289,8 @@ title_changed_callback (TerminalScreen *
 {
   GtkWidget *label;
   GtkWidget *mi;
-  
-  if (screen == window->priv->active_term) 
+
+  if (screen == window->priv->active_term)
     {
     gtk_window_set_title (GTK_WINDOW (window),
                           terminal_screen_get_title (screen));
@@ -1340,7 +1340,7 @@ update_tab_sensitivity (TerminalWindow *
 
   notebook = window->priv->notebook;
   page_num = gtk_notebook_get_current_page (GTK_NOTEBOOK (notebook));
-  
+
   gtk_widget_set_sensitive (window->priv->previous_tab_menuitem,
                             page_num > 0);
 
@@ -1356,7 +1356,7 @@ update_tab_sensitivity (TerminalWindow *
     gtk_widget_set_sensitive (window->priv->close_tab_menuitem, FALSE);
   else
     gtk_widget_set_sensitive (window->priv->close_tab_menuitem, TRUE);
-  
+
   gtk_widget_set_sensitive (window->priv->next_tab_menuitem,
                             !on_last_page);
 }
@@ -1376,12 +1376,12 @@ terminal_window_add_screen (TerminalWind
   GtkWidget *term;
   GtkWidget *hbox;
   GtkWidget *scrollbar;
-  GtkWidget *label;  
-  
+  GtkWidget *label;
+
   old = terminal_screen_get_window (screen);
 
   if (old == window)
-    return;  
+    return;
 
   g_object_ref (G_OBJECT (screen)); /* make our own new refcount */
 
@@ -1402,7 +1402,7 @@ terminal_window_add_screen (TerminalWind
   gtk_label_set_ellipsize (GTK_LABEL (label), PANGO_ELLIPSIZE_END);
   gtk_widget_show (label);
   gtk_misc_set_alignment (GTK_MISC (label), 0.0, 0.5);
-  
+
   screen_set_hbox (screen, hbox);
   screen_set_scrollbar (screen, scrollbar);
   screen_set_label (screen, label);
@@ -1426,32 +1426,32 @@ terminal_window_add_screen (TerminalWind
                     "selection-changed",
                     G_CALLBACK (selection_changed_callback),
                     window);
-  
+
   term = terminal_screen_get_widget (screen);
 
   gtk_box_pack_start (GTK_BOX (hbox),
                       GTK_WIDGET (term), TRUE, TRUE, 0);
-  
+
   gtk_range_set_adjustment (GTK_RANGE (scrollbar),
                             terminal_widget_get_scroll_adjustment (term));
 
   gtk_widget_show_all (hbox);
   terminal_window_update_scrollbar (window, screen);
-  
+
   update_notebook (window);
-  
+
   gtk_notebook_append_page (GTK_NOTEBOOK (window->priv->notebook),
                             hbox,
                             label);
 
   reset_tab_menuitems (window);
   update_tab_sensitivity (window);
-  
+
   /* Busting out the GtkNotebook crackrock features */
   gtk_notebook_set_tab_label_packing (GTK_NOTEBOOK (window->priv->notebook),
                                       hbox,
                                       TRUE, TRUE, GTK_PACK_START);
-  
+
   /* ZvtTerm is a broken POS and requires this realize to get
    * the size request right.
    */
@@ -1461,7 +1461,7 @@ terminal_window_add_screen (TerminalWind
     /* Match size to current active screen */
     int current_width, current_height;
     if (window->priv->active_term)
-      terminal_widget_get_size (terminal_screen_get_widget(window->priv->active_term), 
+      terminal_widget_get_size (terminal_screen_get_widget(window->priv->active_term),
                                 &current_width, &current_height);
     else
       {
@@ -1471,7 +1471,7 @@ terminal_window_add_screen (TerminalWind
 
     terminal_widget_set_size (term, current_width, current_height);
   }
-  
+
   /* Make the first-added screen the active one */
   if (window->priv->terms == NULL)
     terminal_window_set_active (window, screen);
@@ -1483,22 +1483,22 @@ terminal_window_remove_screen (TerminalW
 {
   int old_grid_width;
   int old_grid_height;
-  
+
   g_return_if_fail (terminal_screen_get_window (screen) == window);
 
   old_grid_width = -1;
   old_grid_height = -1;
-  
+
   if (window->priv->active_term == screen)
     {
       GtkWidget *old_active_widget;
-      
+
       window->priv->active_term = NULL;
 
       old_active_widget = terminal_screen_get_widget (screen);
       terminal_widget_get_size (old_active_widget, &old_grid_width, &old_grid_height);
     }
-      
+
   window->priv->terms = g_list_remove (window->priv->terms, screen);
 
   g_signal_handlers_disconnect_by_func (G_OBJECT (screen),
@@ -1516,9 +1516,9 @@ terminal_window_remove_screen (TerminalW
   g_signal_handlers_disconnect_by_func (G_OBJECT (screen),
                                         G_CALLBACK (selection_changed_callback),
                                         window);
-  
+
   terminal_screen_set_window (screen, NULL);
-  
+
   gtk_container_remove (GTK_CONTAINER (window->priv->notebook),
                         screen_get_hbox (screen));
 
@@ -1526,9 +1526,9 @@ terminal_window_remove_screen (TerminalW
   screen_set_label (screen, NULL);
   screen_set_scrollbar (screen, NULL);
   screen_set_menuitem (screen, NULL);
-  
+
   g_object_unref (G_OBJECT (screen));
-  
+
   update_notebook (window);
 
   /* Put ourselves back in a sane state */
@@ -1552,7 +1552,7 @@ terminal_window_remove_screen (TerminalW
 
   reset_tab_menuitems (window);
   update_tab_sensitivity (window);
-  
+
   /* Close window if no more terminals */
   if (window->priv->terms == NULL)
     gtk_widget_destroy (GTK_WIDGET (window));
@@ -1564,7 +1564,7 @@ terminal_window_list_screens (TerminalWi
   return g_list_copy (window->priv->terms);
 }
 
-int    
+int
 terminal_window_get_screen_count (TerminalWindow *window)
 {
   return g_list_length (window->priv->terms);
@@ -1578,15 +1578,15 @@ terminal_window_set_menubar_visible (Ter
    * this side effect must happen before we short-circuit below.
    */
   window->priv->use_default_menubar_visibility = FALSE;
-  
+
   if (setting == window->priv->menubar_visible)
     return;
 
   window->priv->menubar_visible = setting;
   gtk_check_menu_item_set_active (GTK_CHECK_MENU_ITEM (window->priv->show_menubar_menuitem), setting);
-  
+
   if (window->priv->menubar_visible)
-    {      
+    {
       gtk_widget_show (window->priv->menubar);
     }
   else
@@ -1610,6 +1610,15 @@ terminal_window_get_menubar_visible (Ter
 }
 
 void
+terminal_window_set_maximized (TerminalWindow *window,
+                              TerminalScreen *screen,
+                              gboolean       maximize)
+{
+  if (maximize)
+    gtk_window_maximize (GTK_WINDOW (window));
+}
+
+void
 terminal_window_set_size (TerminalWindow *window,
                           TerminalScreen *screen,
                           gboolean        even_if_mapped)
@@ -1639,12 +1648,12 @@ terminal_window_set_size_force_grid (Ter
 
   /* be sure our geometry is up-to-date */
   terminal_window_update_geometry (window);
-  
+
   widget = terminal_screen_get_widget (screen);
-  
+
   app = gtk_widget_get_toplevel (widget);
   g_assert (app != NULL);
-  
+
   /* This set_size_request hack is because the extra size above base
    * size should only include the width of widgets that intersect the
    * term vertically and the height of widgets that intersect the term
@@ -1661,7 +1670,7 @@ terminal_window_set_size_force_grid (Ter
            toplevel_request.width, toplevel_request.height,
            widget_request.width, widget_request.height);
 #endif
-  
+
   w = toplevel_request.width - widget_request.width;
   h = toplevel_request.height - widget_request.height;
 
@@ -1672,9 +1681,9 @@ terminal_window_set_size_force_grid (Ter
     grid_width = force_grid_width;
   if (force_grid_height >= 0)
     grid_height = force_grid_height;
-  
+
   terminal_widget_get_padding (widget, &xpad, &ypad);
-  
+
   w += xpad + char_width * grid_width;
   h += ypad + char_height * grid_height;
 
@@ -1682,7 +1691,7 @@ terminal_window_set_size_force_grid (Ter
   g_print ("set size: grid %dx%d force %dx%d setting %dx%d pixels\n",
            grid_width, grid_height, force_grid_width, force_grid_height, w, h);
 #endif
-  
+
   if (even_if_mapped && GTK_WIDGET_MAPPED (app))
     gtk_window_resize (GTK_WINDOW (app), w, h);
   else
@@ -1695,22 +1704,22 @@ terminal_window_set_active (TerminalWind
 {
   GtkWidget *widget;
   TerminalProfile *profile;
-  
+
   if (window->priv->active_term == screen)
     return;
-  
+
   widget = terminal_screen_get_widget (screen);
-  
+
   profile = terminal_screen_get_profile (screen);
-  
+
   if (!GTK_WIDGET_REALIZED (widget))
     gtk_widget_realize (widget); /* we need this for the char width */
-  
+
   window->priv->active_term = screen;
 
   terminal_window_update_geometry (window);
   terminal_window_update_icon (window);
-  
+
   /* Override menubar setting if it wasn't restored from session */
   if (window->priv->use_default_menubar_visibility)
     {
@@ -1732,9 +1741,9 @@ terminal_window_set_active (TerminalWind
   g_print ("setting size after flipping notebook pages\n");
 #endif
   terminal_window_set_size (window, screen, TRUE);
-  
+
   update_copy_sensitivity (window);
-  
+
   fill_in_config_picker_submenu (window);
   fill_in_new_term_submenus (window);
   fill_in_encoding_menu (window);
@@ -1837,7 +1846,7 @@ notebook_page_selected_callback (GtkWidg
   GtkWidget *menu_item;
   int old_grid_width, old_grid_height;
   GtkWidget *old_widget;
-  
+
   old_widget = NULL;
   old_grid_width = -1;
   old_grid_height = -1;
@@ -1847,7 +1856,7 @@ notebook_page_selected_callback (GtkWidg
       old_widget = terminal_screen_get_widget (window->priv->active_term);
       terminal_widget_get_size (old_widget, &old_grid_width, &old_grid_height);
     }
-  
+
   page_widget = gtk_notebook_get_nth_page (GTK_NOTEBOOK (notebook),
                                            page_num);
 
@@ -1866,9 +1875,9 @@ notebook_page_selected_callback (GtkWidg
   g_print ("setting size in switch_page handler\n");
 #endif
   terminal_window_set_size_force_grid (window, screen, TRUE, old_grid_width, old_grid_height);
-  
+
   update_tab_sensitivity (window);
-  
+
   menu_item = screen_get_menuitem (screen);
   if (menu_item &&
       screen == window->priv->active_term)
@@ -1888,15 +1897,15 @@ terminal_window_update_scrollbar (Termin
 
   if (profile == NULL)
     return;
-  
+
   scrollbar = screen_get_scrollbar (screen);
   hbox = screen_get_hbox (screen);
-  
+
   g_object_ref (G_OBJECT (scrollbar));
 
   if (scrollbar->parent)
     gtk_container_remove (GTK_CONTAINER (hbox), scrollbar);
-  
+
   switch (terminal_profile_get_scrollbar_position (profile))
     {
     case TERMINAL_SCROLLBAR_HIDDEN:
@@ -1943,9 +1952,9 @@ terminal_window_update_icon (TerminalWin
       gtk_window_set_icon (GTK_WINDOW (window), NULL);
       return;
     }
-  
+
   new_icon = terminal_profile_get_icon (profile);
-  
+
   if (window->priv->icon != new_icon)
     {
       if (new_icon)
@@ -1964,46 +1973,46 @@ void
 terminal_window_update_geometry (TerminalWindow *window)
 {
   GdkGeometry hints;
-  GtkWidget *widget;  
+  GtkWidget *widget;
   int char_width;
   int char_height;
-  
+
   if (window->priv->active_term == NULL)
     return;
-  
+
   widget = terminal_screen_get_widget (window->priv->active_term);
-  
+
   /* We set geometry hints from the active term; best thing
    * I can think of to do. Other option would be to try to
    * get some kind of union of all hints from all terms in the
    * window, but that doesn't make too much sense.
    */
   terminal_widget_get_cell_size (widget, &char_width, &char_height);
-  
+
   if (char_width != window->priv->old_char_width ||
       char_height != window->priv->old_char_height ||
       widget != (GtkWidget*) window->priv->old_geometry_widget)
     {
       int xpad, ypad;
-      
+
       /* FIXME Since we're using xthickness/ythickness to compute
        * padding we need to change the hints when the theme changes.
        */
       terminal_widget_get_padding (widget, &xpad, &ypad);
-      
+
       hints.base_width = xpad;
       hints.base_height = ypad;
 
 #define MIN_WIDTH_CHARS 4
 #define MIN_HEIGHT_CHARS 2
-      
+
       hints.width_inc = char_width;
       hints.height_inc = char_height;
 
       /* min size is min size of just the geometry widget, remember. */
       hints.min_width = hints.base_width + hints.width_inc * MIN_WIDTH_CHARS;
       hints.min_height = hints.base_height + hints.height_inc * MIN_HEIGHT_CHARS;
-      
+
       gtk_window_set_geometry_hints (GTK_WINDOW (window),
                                      widget,
                                      &hints,
@@ -2020,7 +2029,7 @@ terminal_window_update_geometry (Termina
                hints.width_inc,
                hints.height_inc);
 #endif
-      
+
       window->priv->old_char_width = hints.width_inc;
       window->priv->old_char_height = hints.height_inc;
       window->priv->old_geometry_widget = widget;
@@ -2049,10 +2058,10 @@ config_change_notify (GConfClient *clien
   window = TERMINAL_WINDOW (user_data);
 
   val = gconf_entry_get_value (entry);
-  
+
   if (strcmp (gconf_entry_get_key (entry),
               CONF_GLOBAL_PREFIX"/use_mnemonics") == 0)
-    {      
+    {
       if (val && val->type == GCONF_VALUE_BOOL)
         {
           window->priv->use_mnemonics = gconf_value_get_bool (val);
@@ -2074,10 +2083,10 @@ set_menuitem_text (GtkWidget  *mi,
     {
       const char *label;
       char *no_mnemonic;
-      
+
       label = NULL;
       no_mnemonic = NULL;
-      
+
       if (strip_mnemonic)
         {
           const char *src;
@@ -2094,7 +2103,7 @@ set_menuitem_text (GtkWidget  *mi,
                   *dest = *src;
                   ++dest;
                 }
-              
+
               ++src;
             }
           *dest = '\0';
@@ -2110,7 +2119,7 @@ set_menuitem_text (GtkWidget  *mi,
         gtk_label_set_text (GTK_LABEL (child), label);
       else
         gtk_label_set_text_with_mnemonic (GTK_LABEL (child), label);
-      
+
       if (no_mnemonic)
         g_free (no_mnemonic);
     }
@@ -2148,7 +2157,7 @@ reset_tab_menuitems (TerminalWindow *win
   TerminalScreen *screen;
   GSList *group;
   gboolean single_page;
-  
+
   tmp = window->priv->tab_menuitems;
   while (tmp != NULL)
     {
@@ -2160,39 +2169,39 @@ reset_tab_menuitems (TerminalWindow *win
   window->priv->tab_menuitems = NULL;
 
   single_page = gtk_notebook_get_n_pages (GTK_NOTEBOOK (window->priv->notebook)) == 1;
-  
+
   group = NULL;
   i = 0;
   while (TRUE) /* should probably make us somewhat nervous */
     {
       GtkWidget *page;
       char *accel_path;
-      
+
       page = gtk_notebook_get_nth_page (GTK_NOTEBOOK (window->priv->notebook),
                                         i);
 
       if (page == NULL)
         break;
-      
+
       screen = find_screen_by_hbox (window, page);
 
       menu_item = gtk_radio_menu_item_new_with_label (group,
                                                       terminal_screen_get_title (screen));
       group = gtk_radio_menu_item_get_group (GTK_RADIO_MENU_ITEM (menu_item));
-      
+
       if (i < N_TABS_WITH_ACCEL && !single_page)
         accel_path = g_strdup_printf (FORMAT_ACCEL_PATH_SWITCH_TO_TAB,
                                       i + 1);
       else
         accel_path = NULL;
-      
+
       if (accel_path)
         {
           gtk_menu_item_set_accel_path (GTK_MENU_ITEM (menu_item),
 					accel_path);
 	  g_free (accel_path);
 	}
-      
+
       gtk_widget_show (menu_item);
       gtk_menu_shell_append (GTK_MENU_SHELL (window->priv->go_menu),
                              menu_item);
@@ -2200,15 +2209,15 @@ reset_tab_menuitems (TerminalWindow *win
       if (screen == window->priv->active_term)
         gtk_check_menu_item_set_active (GTK_CHECK_MENU_ITEM (menu_item),
                                         TRUE);
-      
+
       g_object_set_data (G_OBJECT (menu_item),
                          "notebook-page",
                          GINT_TO_POINTER (i));
-      
+
       g_signal_connect (G_OBJECT (menu_item),
                         "activate",
                         G_CALLBACK (change_tab_callback),
-                        window);      
+                        window);
 
       window->priv->tab_menuitems =
         g_list_prepend (window->priv->tab_menuitems,
@@ -2216,7 +2225,7 @@ reset_tab_menuitems (TerminalWindow *win
 
       /* so we can keep the title updated */
       screen_set_menuitem (screen, menu_item);
-      
+
       ++i;
     }
 }
@@ -2228,7 +2237,7 @@ terminal_window_set_fullscreen (Terminal
   g_return_if_fail (GTK_WIDGET_REALIZED (window));
 
   window->priv->fullscreen = setting;
-  
+
   if (setting)
     gtk_window_fullscreen (GTK_WINDOW (window));
   else
@@ -2251,7 +2260,7 @@ new_window_callback (GtkWidget      *men
                      TerminalWindow *window)
 {
   TerminalProfile *profile;
-  
+
   profile = g_object_get_data (G_OBJECT (menuitem),
                                "profile");
 
@@ -2261,7 +2270,7 @@ new_window_callback (GtkWidget      *men
     {
       char *name;
       const char *dir;
-      
+
       name = gdk_screen_make_display_name (gtk_widget_get_screen (menuitem));
       dir = terminal_screen_get_working_dir (window->priv->active_term);
 
@@ -2281,7 +2290,7 @@ new_tab_callback (GtkWidget      *menuit
                   TerminalWindow *window)
 {
   TerminalProfile *profile;
-  
+
   profile = g_object_get_data (G_OBJECT (menuitem),
                                "profile");
 
@@ -2323,8 +2332,8 @@ confirm_close_window (TerminalWindow *wi
                                     "This window has %d tabs open. Closing the window will also close all its tabs.",
                                     n),
                           n);
-  msg = g_strdup_printf ("<span weight=\"bold\" size=\"larger\">%s</span>\n\n%s\n", 
-                         _("Close all tabs?"), 
+  msg = g_strdup_printf ("<span weight=\"bold\" size=\"larger\">%s</span>\n\n%s\n",
+                         _("Close all tabs?"),
                          msg1);
 
   dialog = gtk_message_dialog_new_with_markup (GTK_WINDOW (window),
@@ -2332,7 +2341,7 @@ confirm_close_window (TerminalWindow *wi
                                    GTK_MESSAGE_WARNING,
                                    GTK_BUTTONS_NONE,
                                    msg);
-  gtk_window_set_title (GTK_WINDOW(dialog), ""); 
+  gtk_window_set_title (GTK_WINDOW(dialog), "");
   g_free (msg);
   g_free (msg1);
 
@@ -2372,7 +2381,7 @@ copy_callback (GtkWidget      *menuitem,
   if (window->priv->active_term)
     {
       widget = terminal_screen_get_widget (window->priv->active_term);
-      
+
       terminal_widget_copy_clipboard (widget);
     }
 }
@@ -2388,7 +2397,7 @@ paste_callback (GtkWidget      *menuitem
       widget = terminal_screen_get_widget (window->priv->active_term);
 
       terminal_widget_paste_clipboard (widget);
-    }  
+    }
 }
 
 static void
@@ -2410,7 +2419,7 @@ change_configuration_callback (GtkWidget
 
   if (window->priv->active_term == NULL)
     return;
-  
+
   profile = g_object_get_data (G_OBJECT (menu_item),
                                "profile");
 
@@ -2465,7 +2474,7 @@ fullscreen_callback (GtkWidget      *men
 }
 
 static gboolean
-window_state_event_callback (GtkWidget            *widget, 
+window_state_event_callback (GtkWidget            *widget,
                              GdkEventWindowState  *event,
                              gpointer              user_data)
 {
@@ -2483,7 +2492,7 @@ window_state_event_callback (GtkWidget  
     window->priv->fullscreen = new_state;
     gtk_check_menu_item_set_active (menu_item, new_state);
     }
-  
+
   /* Call any other handlers there may be */
   return FALSE;
 }
@@ -2511,7 +2520,7 @@ find_larger_zoom_factor (double  current
                          double *found)
 {
   int i;
-  
+
   i = 0;
   while (i < (int) G_N_ELEMENTS (zoom_factors))
     {
@@ -2521,10 +2530,10 @@ find_larger_zoom_factor (double  current
           *found = zoom_factors[i];
           return TRUE;
         }
-      
+
       ++i;
     }
-  
+
   return FALSE;
 }
 
@@ -2533,7 +2542,7 @@ find_smaller_zoom_factor (double  curren
                           double *found)
 {
   int i;
-  
+
   i = (int) G_N_ELEMENTS (zoom_factors) - 1;
   while (i >= 0)
     {
@@ -2543,7 +2552,7 @@ find_smaller_zoom_factor (double  curren
           *found = zoom_factors[i];
           return TRUE;
         }
-      
+
       --i;
     }
 
@@ -2556,12 +2565,12 @@ zoom_in_callback (GtkWidget      *menuit
 {
   double current;
   TerminalScreen *screen;
-  
+
   screen = window->priv->active_term;
 
   if (screen == NULL)
     return;
-  
+
   current = terminal_screen_get_font_scale (screen);
 
   if (find_larger_zoom_factor (current, &current))
@@ -2577,12 +2586,12 @@ zoom_out_callback (GtkWidget      *menui
 {
   double current;
   TerminalScreen *screen;
-  
+
   screen = window->priv->active_term;
 
   if (screen == NULL)
     return;
-  
+
   current = terminal_screen_get_font_scale (screen);
 
   if (find_smaller_zoom_factor (current, &current))
@@ -2597,7 +2606,7 @@ zoom_normal_callback (GtkWidget      *me
                       TerminalWindow *window)
 {
   TerminalScreen *screen;
-  
+
   screen = window->priv->active_term;
 
   if (screen == NULL)
@@ -2623,7 +2632,7 @@ change_encoding_callback (GtkWidget     
 {
   const char *charset;
   GtkWidget *widget;
-  
+
   if (!gtk_check_menu_item_get_active (GTK_CHECK_MENU_ITEM (menu_item)))
     return;
 
@@ -2696,11 +2705,11 @@ change_tab_callback (GtkWidget      *men
   if (gtk_check_menu_item_get_active (GTK_CHECK_MENU_ITEM (menuitem)))
     {
       int page_num;
-      
+
       page_num = GPOINTER_TO_INT (g_object_get_data (G_OBJECT (menuitem),
                                                      "notebook-page"));
 
-  
+
       gtk_notebook_set_current_page (GTK_NOTEBOOK (window->priv->notebook),
                                      page_num);
     }
@@ -2734,7 +2743,7 @@ about_callback (GtkWidget      *menuitem
       gtk_window_present (GTK_WINDOW (about));
       return;
     }
-				     
+
   about = gtk_about_dialog_new ();
 
   gtk_about_dialog_set_name (GTK_ABOUT_DIALOG (about), _("GNOME Terminal"));
@@ -2748,7 +2757,7 @@ about_callback (GtkWidget      *menuitem
   gtk_window_set_destroy_with_parent (GTK_WINDOW (about), TRUE);
 
   terminal_util_set_unique_role (GTK_WINDOW (about), "gnome-terminal-about");
-  
+
   g_object_add_weak_pointer (G_OBJECT (about), (void**) &about);
 
   gtk_widget_show (about);
@@ -2769,7 +2778,7 @@ default_profile_changed (TerminalProfile
       TerminalWindow *window;
 
       window = TERMINAL_WINDOW (data);
-      
+
       /* When the default changes, we get a settings change
        * on the old default and the new. We only rebuild
        * the menu on the notify for the new default.
@@ -2785,7 +2794,7 @@ monitor_profiles_for_is_default_change (
 {
   GList *profiles;
   GList *tmp;
-  
+
   profiles = terminal_profile_get_list ();
 
   tmp = profiles;
@@ -2796,13 +2805,13 @@ monitor_profiles_for_is_default_change (
       g_signal_handlers_disconnect_by_func (G_OBJECT (profile),
                                             G_CALLBACK (default_profile_changed),
                                             window);
-      
+
       g_signal_connect_object (G_OBJECT (profile),
                                "changed",
                                G_CALLBACK (default_profile_changed),
                                G_OBJECT (window),
                                0);
-      
+
       tmp = tmp->next;
     }
 
@@ -2813,7 +2822,7 @@ void
 terminal_window_reread_profile_list (TerminalWindow *window)
 {
   monitor_profiles_for_is_default_change (window);
-  
+
   fill_in_config_picker_submenu (window);
   fill_in_new_term_submenus (window);
 }
diff -upr gnome-terminal-2.11.2/src/terminal-window.h gnome-terminal-2.11.2-maximized/src/terminal-window.h
--- gnome-terminal-2.11.2/src/terminal-window.h	2004-05-09 08:06:10.000000000 +0200
+++ gnome-terminal-2.11.2-maximized/src/terminal-window.h	2005-08-18 18:49:14.000000000 +0200
@@ -83,6 +83,9 @@ void terminal_window_update_geometry  (T
 void terminal_window_set_size         (TerminalWindow *window,
                                        TerminalScreen *screen,
                                        gboolean        even_if_mapped);
+void terminal_window_set_maximized    (TerminalWindow *window,
+                                       TerminalScreen *screen,
+                                       gboolean        maximize);
 void terminal_window_set_size_force_grid (TerminalWindow *window,
                                           TerminalScreen *screen,
                                           gboolean        even_if_mapped,
