aboutsummaryrefslogtreecommitdiffstats
path: root/vconsole.c
diff options
context:
space:
mode:
authorGerd Hoffmann <kraxel@redhat.com>2014-05-23 08:00:37 +0200
committerGerd Hoffmann <kraxel@redhat.com>2014-05-23 08:00:37 +0200
commit65df255453ce41fe15fda89787ba6b46e8b22464 (patch)
tree66d712f665cdfefb7f04f8cc0e94811b64956bf2 /vconsole.c
parent47a8d12fbf98a03c4cd07c31b88a6786f4d35a77 (diff)
downloadvconsole-65df255453ce41fe15fda89787ba6b46e8b22464.tar.gz
untabify
Diffstat (limited to 'vconsole.c')
-rw-r--r--vconsole.c15
1 files changed, 15 insertions, 0 deletions
diff --git a/vconsole.c b/vconsole.c
index 5cca880..2201cfe 100644
--- a/vconsole.c
+++ b/vconsole.c
@@ -324,6 +324,15 @@ static void run_virt_viewer(struct vconsole_domain *dom,
}
}
+static void menu_cb_untabify(GtkToggleAction *action, gpointer userdata)
+{
+ struct vconsole_window *win = userdata;
+ struct vconsole_domain *dom = find_guest(win);
+
+ if (dom)
+ domain_untabify(dom);
+}
+
static void menu_cb_vm_gfx(GtkAction *action, void *data)
{
struct vconsole_window *win = data;
@@ -514,6 +523,10 @@ static const GtkActionEntry entries[] = {
.label = "Terminal _background ...",
.callback = G_CALLBACK(menu_cb_config_bg),
},{
+ .name = "Untabify",
+ .label = "_Detach Tab",
+ .callback = G_CALLBACK(menu_cb_untabify),
+ },{
/* --- guest menu --- */
.name = "GuestGfx",
@@ -617,6 +630,8 @@ static char ui_xml[] =
" <menuitem action='TerminalBlink'/>\n"
" <separator/>\n"
" <menuitem action='FullScreen'/>\n"
+" <separator/>\n"
+" <menuitem action='Untabify'/>\n"
" </menu>\n"
" <menu action='GuestMenu'>\n"
" <menuitem action='GuestLogging'/>\n"