#include "bcsubwindow.h"
#include "bcsynchronous.h"
#include "bctimer.h"
-#include "bcwidgetgrid.h"
#include "bcwindowbase.h"
#include "bcwindowevents.h"
#include "bccmodels.h"
delete subwindows;
}
- if(widgetgrids) {
- while (widgetgrids->total) {
- delete widgetgrids->last();
- widgetgrids->remove();
- }
- delete widgetgrids;
- }
-
-
delete pixmap;
#ifdef HAVE_GL
XFreeFont(display, largefont);
XFreeFont(display, bigfont);
-#ifdef HAVE_XFT
+// bug in X causes XRenderExtensionInfo to be damaged if this is done here
+// left to be done in XCloseDisplay by Xlib.
+#if defined(HAVE_XFT) && 0
if(bigfont_xft)
XftFontClose (display, (XftFont*)bigfont_xft);
if(largefont_xft)
#ifndef SINGLE_THREAD
#ifdef HAVE_GL
if( (options & GLX_DISPLAY) != 0 && get_resources()->get_synchronous() ) {
- printf("BC_WindowBase::~BC_WindowBase window deleted but opengl deletion is not\n"
- "implemented for BC_Pixmap.\n");
+ printf(_("BC_WindowBase::~BC_WindowBase window deleted but opengl deletion is not\n"
+ "implemented for BC_Pixmap.\n"));
get_resources()->get_synchronous()->delete_display(this);
}
else
top_level = 0;
parent_window = 0;
subwindows = 0;
- widgetgrids = 0;
xinerama_info = 0;
xinerama_screens = 0;
xvideo_port_id = -1;
if(bg_pixmap) shared_bg_pixmap = 1;
subwindows = new BC_SubWindowList;
- widgetgrids = new BC_WidgetGridList;
if(window_type == MAIN_WINDOW)
{
printf("BC_WindowBase::init_display: cannot connect to X server %s\n",
display_name);
if(getenv("DISPLAY") == NULL) {
- printf("'DISPLAY' environment variable not set.\n");
+ printf(_("'DISPLAY' environment variable not set.\n"));
exit(1);
}
else {
return add_subwindow(subwindow);
}
-BC_WidgetGrid* BC_WindowBase::add_widgetgrid(BC_WidgetGrid *widgetgrid)
-{
- widgetgrids->append(widgetgrid);
- return widgetgrid;
-}
-
-
int BC_WindowBase::flash(int x, int y, int w, int h, int flush)
{
//printf("BC_WindowBase::flash %d %d %d %d %d\n", __LINE__, w, h, this->w, this->h);
return 0;
}
-int BC_WindowBase::reposition_widget(int x, int y, int w, int h)
-{
- return reposition_window(x, y, w, h);
-}
-
int BC_WindowBase::reposition_window(int x, int y)
{
reposition_window(x, y, -1, -1);