[Xfce4-commits] <xfce-utils:xfce-4.8> Do not enable the terminal checkbox for manpages (bug #7702).
Nick Schermer
noreply at xfce.org
Fri Jun 17 23:28:06 CEST 2011
Updating branch refs/heads/xfce-4.8
to 5340db70c42e5a9c577c2f54fda9b9d6ff2c9697 (commit)
from 02909d40387dad95f368311056c3573f0ea46bdb (commit)
commit 5340db70c42e5a9c577c2f54fda9b9d6ff2c9697
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).
(cherry picked from commit 59777e36f47eeaac0e5a524425bb25bd10d58d5f)
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