[Xfce4-commits] <xfce-utils:master> Do not enable the terminal checkbox for manpages (bug #7702).

Nick Schermer noreply at xfce.org
Fri Jun 17 20:26:01 CEST 2011


Updating branch refs/heads/master
         to 59777e36f47eeaac0e5a524425bb25bd10d58d5f (commit)
       from 5ab6cdaa32b5d1f1d5127e33cbac4722a2a4f17a (commit)

commit 59777e36f47eeaac0e5a524425bb25bd10d58d5f
Author: Nick Schermer <nick at xfce.org>
Date:   Fri Jun 17 19:48:10 2011 +0200

    Do not enable the terminal checkbox for manpages (bug #7702).

 xfrun/xfrun-dialog.c |    4 +++-
 1 files changed, 3 insertions(+), 1 deletions(-)

diff --git a/xfrun/xfrun-dialog.c b/xfrun/xfrun-dialog.c
index 5e2f334..cb14011 100644
--- a/xfrun/xfrun-dialog.c
+++ b/xfrun/xfrun-dialog.c
@@ -492,6 +492,7 @@ xfrun_run_clicked(GtkWidget *widget,
     gchar        *original_cmdline;
     gchar        *new_cmdline;
     gint          argc;
+    gboolean      manpage = FALSE;
 
     cmdline = gtk_editable_get_chars(GTK_EDITABLE(dialog->priv->entry), 0, -1);
     original_cmdline = g_strdup(cmdline);
@@ -511,6 +512,7 @@ xfrun_run_clicked(GtkWidget *widget,
         cmdline = new_cmdline;
         /* Make sure this is opened in a terminal */
         in_terminal = TRUE;
+        manpage = TRUE;
       }
 
     if(in_terminal) {
@@ -534,7 +536,7 @@ xfrun_run_clicked(GtkWidget *widget,
 
     if(result)
     {
-        xfrun_add_to_history(original_cmdline, in_terminal);
+        xfrun_add_to_history(original_cmdline, manpage ? FALSE : in_terminal);
         xfrun_dialog_delete_event(GTK_WIDGET(dialog), NULL);
     } else {
         gchar    *primary;



More information about the Xfce4-commits mailing list