gnome-terminal r3113 - trunk/src



Author: chpe
Date: Wed Oct  1 16:35:29 2008
New Revision: 3113
URL: http://svn.gnome.org/viewvc/gnome-terminal?rev=3113&view=rev

Log:
Bug 554485 â regression: open new tab using keyboard shortcut does not open new tab with profile of parent window
Patch by Alexander Sack.

Modified:
   trunk/src/terminal-window.c

Modified: trunk/src/terminal-window.c
==============================================================================
--- trunk/src/terminal-window.c	(original)
+++ trunk/src/terminal-window.c	Wed Oct  1 16:35:29 2008
@@ -2564,6 +2564,8 @@
 
   profile = g_object_get_data (G_OBJECT (action), PROFILE_DATA_KEY);
   if (!profile)
+    profile = terminal_screen_get_profile (priv->active_screen);
+  if (!profile)
     profile = terminal_app_get_profile_for_new_term (app);
   if (!profile)
     return;
@@ -2593,6 +2595,8 @@
   app = terminal_app_get ();
   profile = g_object_get_data (G_OBJECT (action), PROFILE_DATA_KEY);
   if (!profile)
+    profile = terminal_screen_get_profile (priv->active_screen);
+  if (!profile)
     profile = terminal_app_get_profile_for_new_term (app);
   if (!profile)
     return;



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