/* rxvtwidget.c - terminal emulator widget Copyright (C) 1996-2000 Paul Sheer This program is free software; you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation; either version 2 of the License, or (at your option) any later version. This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details. You should have received a copy of the GNU General Public License along with this program; if not, write to the Free Software Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307, USA. */ #if 0 #include #include #include #include #include #include #include #include #include #include "lkeysym.h" #include "stringtools.h" #include "app_glob.c" #include "edit.h" #include "editcmddef.h" #include "coolwidget.h" #include "coollocal.h" #include "mousemark.h" #include "mad.h" CWidget *CDrawRxvt (const char *identifier, Window parent, int x, int y, char **argv) { char **a; int i; XWindowAttributes wattr; CWidget *wdt; wdt = CSetupWidget (identifier, parent, x, y, 10, 10, C_RXVT_WIDGET, INPUT_KEY, COLOR_FLAT, 1); a = (char **) rxvt_args (argv); for (i = 0; a[i]; i++); wdt->rxvt = (void *) rxvt_allocate (wdt->winid, i, a); XGetWindowAttributes (CDisplay, rxvt_get_main_window (wdt->rxvt), &wattr); wdt->width = wattr.width; wdt->height = wattr.height; XResizeWindow (CDisplay, wdt->winid, wattr.width, wattr.height); rxvtlib_main_loop (wdt->rxvt); rxvtlib_update_screen (wdt->rxvt); free (a); set_hint_pos (x + wattr.width + WIDGET_SPACING, y + wattr.height + WIDGET_SPACING); rxvt_resize_window (wdt->rxvt, wattr.width, wattr.height); return wdt; } #endif