This is an automated email from the git hooks/post-receive script.

f2404 pushed a 
commit to branch 
master
in repository apps/xfce4-terminal.

commit 574500481d56344b07bbcdb778abc666ad8193f7
Author: Igor <f2...@yandex.ru>
Date:   Mon Mar 12 14:58:28 2018 -0400

    Revert "Refine previous commit"
    
    This reverts commit 059feeb976208c31365e5937d29f88411f3e45f8.
---
 terminal/terminal-screen.c | 24 +++++++++++++-----------
 1 file changed, 13 insertions(+), 11 deletions(-)

diff --git a/terminal/terminal-screen.c b/terminal/terminal-screen.c
index ce8e2b1..c7be97e 100644
--- a/terminal/terminal-screen.c
+++ b/terminal/terminal-screen.c
@@ -157,10 +157,6 @@ static void       terminal_screen_urgent_bell              
     (TerminalWidget
                                                                  
TerminalScreen        *screen);
 static void       terminal_screen_set_custom_command            
(TerminalScreen        *screen,
                                                                  gchar         
       **command);
-static void       terminal_screen_child_error                   (VteTerminal   
        *terminal,
-                                                                 GPid          
         pid,
-                                                                 GError        
        *error,
-                                                                 gpointer      
         user_data);
 
 
 
@@ -1681,11 +1677,12 @@ terminal_screen_set_custom_command (TerminalScreen 
*screen,
 
 
 
+#if VTE_CHECK_VERSION (0, 48, 0)
 static void
-terminal_screen_child_error (VteTerminal *terminal,
-                             GPid         pid,
-                             GError      *error,
-                             gpointer     user_data)
+terminal_screen_spawn_async_cb (VteTerminal *terminal,
+                                GPid         pid,
+                                GError      *error,
+                                gpointer     user_data)
 {
   TerminalScreen *screen = TERMINAL_SCREEN (user_data);
 
@@ -1699,6 +1696,7 @@ terminal_screen_child_error (VteTerminal *terminal,
       g_error_free (error);
     }
 }
+#endif
 
 
 
@@ -1765,7 +1763,9 @@ terminal_screen_launch_child (TerminalScreen *screen)
   if (!terminal_screen_get_child_command (screen, &command, &argv, &error))
     {
       /* tell the user that we were unable to execute the command */
-      terminal_screen_child_error (VTE_TERMINAL (screen->terminal), -1, error, 
screen);
+      xfce_dialog_show_error (GTK_WINDOW (gtk_widget_get_toplevel (GTK_WIDGET 
(screen))),
+                              error, _("Failed to execute child"));
+      g_error_free (error);
     }
   else
     {
@@ -1790,7 +1790,7 @@ terminal_screen_launch_child (TerminalScreen *screen)
                                 NULL, NULL,
                                 NULL, SPAWN_TIMEOUT,
                                 NULL,
-                                terminal_screen_child_error,
+                                terminal_screen_spawn_async_cb,
                                 screen);
 #else
       if (!vte_terminal_spawn_sync (VTE_TERMINAL (screen->terminal),
@@ -1800,7 +1800,9 @@ terminal_screen_launch_child (TerminalScreen *screen)
                                     NULL, NULL,
                                     &screen->pid, NULL, &error))
         {
-          terminal_screen_child_error (VTE_TERMINAL (screen->terminal), -1, 
error, screen);
+          xfce_dialog_show_error (GTK_WINDOW (gtk_widget_get_toplevel 
(GTK_WIDGET (screen))),
+                                  error, _("Failed to execute child"));
+          g_error_free (error);
         }
 #endif
 

-- 
To stop receiving notification emails like this one, please contact
the administrator of this repository.
_______________________________________________
Xfce4-commits mailing list
Xfce4-commits@xfce.org
https://mail.xfce.org/mailman/listinfo/xfce4-commits

Reply via email to