static void popupmenu_activate(gchar *label) { if(!strcmp(label, "New Tab")) { mainwindow_create_tab(); } else if(!strcmp(label, "Close Tab")) { mainwindow_close_tab(NULL); } else if(!strcmp(label, "Copy")) { vte_terminal_copy_clipboard(VTE_TERMINAL(mainwindow_get_terminal_at(activetab))); } else if(!strcmp(label, "Paste")) { vte_terminal_paste_clipboard(VTE_TERMINAL(mainwindow_get_terminal_at(activetab))); } else if(!strcmp(label, "Toggle Fullscreen")) { mainwindow_toggle_fullscreen(); } else if(!strcmp(label, "Quit")) { gtk_widget_destroy(GTK_WIDGET(mainwindow)); } popupmenu_shown = FALSE; }
void mainwindow_toggle_full(void) { mainwindow_toggle_fullscreen(NULL, NULL); }