Changeset db7338733205016856ef3f34ff3991c2dfd07aa8

Show
Ignore:
Timestamp:
07/29/2008 05:53:46 AM (4 months ago)
Author:
Dave Foster <daf@minuslab.net>
git-committer:
Dave Foster <daf@minuslab.net> 1217336026 -0400
git-parent:

[680127076a15d34b15e89a7d6ad8cb77840b04cf]

git-author:
Dave Foster <daf@minuslab.net> 1217336026 -0400
Message:

Removed excess program_log (used for debugging.)

Files:

Legend:

Unmodified
Added
Removed
Modified
Copied
Moved
  • src/SetBG.cc

    r7053717 rdb73387  
    233233        window->get_geometry(winx,winy,winw,winh,wind); 
    234234 
    235     program_log("got xin root window %x", GDK_WINDOW_XWINDOW(window->gobj())); 
    236  
    237235        // determine our target dimensions 
    238236        gint tarx, tary, tarw, tarh; 
     
    249247        } 
    250248 
    251     program_log("determined xinerama x/y w/h to be %d, %d and %d x %d", tarx, tary, tarw, tarh); 
    252  
    253249        Display *xdisp = GDK_DISPLAY_XDISPLAY(_display->gobj()); 
    254250        XSetCloseDownMode(xdisp, RetainPermanent); 
     
    271267                                if (type == XA_PIXMAP && *((Pixmap *) data_root) == *((Pixmap *) data_esetroot)) { 
    272268                                        xoldpm = (Pixmap*)data_root; 
    273                     program_log("previously set xin pixmap is %x", *((Pixmap*) data_root)); 
    274269                                } 
    275270                } 
     
    289284                pixmap->get_size(width, height); 
    290285 
    291         program_log("xin old pixmap (%x) is %d x %d", *xoldpm, width, height); 
    292  
    293286                if ((width != winw) || (height != winh) || (pixmap->get_depth() != window->get_depth()) ) { 
    294             program_log("xin killing too small pixmap (%d x %d)", width, height); 
    295287                        XKillClient(xdisp, *((Pixmap *) data_root)); 
    296288                        xoldpm = NULL; 
     
    303295        int width, height; 
    304296        pixmap->get_size(width, height); 
    305         program_log("created new xin pixmap %x (%d x %d)", GDK_PIXMAP_XID(pixmap->gobj()), width, height); 
    306297        } 
    307298 
    308299        // set the colormap  
    309300        pixmap->set_colormap(colormap); 
    310     program_log("xin set colormap of pixmap"); 
    311301 
    312302        // get our pixbuf from the file 
     
    318308        } 
    319309 
    320     program_log("xin loaded pixbuf from file %s", file.c_str()); 
    321          
    322310        // apply the bg color to pixbuf here, because every make_ method would 
    323311        // have to do it anyway. 
     
    353341        }; 
    354342 
    355     program_log("xin made pixmap into appropriate size"); 
    356  
    357343        // render it to the pixmap 
    358344        pixmap->draw_pixbuf(gc_, outpixbuf, 0,0, tarx, tary, tarw, tarh, Gdk::RGB_DITHER_NONE,0,0); 
    359  
    360     program_log("xin rendered pixbuf (%d x %d) onto pixmap (%d, %d and %d x %d)",  
    361                  outpixbuf->get_width(), outpixbuf->get_height(), tarx, tary, tarw, tarh); 
    362345 
    363346        Pixmap xpm = GDK_PIXMAP_XID(pixmap->gobj()); 
     
    374357        XChangeProperty(xdisp, xwin, prop_esetroot, XA_PIXMAP, 32, PropModeReplace, (unsigned char *) &xpm, 1); 
    375358 
    376     program_log("set _XROOTPMAP_ID and ESETROOT_PMAP_ID atoms to %x", xpm); 
    377  
    378359        // set it gtk style 
    379360        window->set_back_pixmap(pixmap, false); 
    380361        window->clear(); 
    381  
    382     program_log("set background pixmap of xin window %x", GDK_WINDOW_XWINDOW(window->gobj())); 
    383362 
    384363    _display->close();