Changeset 119


Ignore:
Timestamp:
Mar 17, 2008, 3:08:53 AM (10 years ago)
Author:
Sam Hocevar
Message:
  • The small jwindow constructor can now take a name argument.
Location:
abuse/trunk/src
Files:
3 edited

Legend:

Unmodified
Added
Removed
  • abuse/trunk/src/imlib/jwindow.cpp

    r117 r119  
    377377}
    378378
    379 jwindow::jwindow()
     379jwindow::jwindow(char const *name)
    380380{
    381381    _x1 = left_border();
     
    392392    screen = NULL;
    393393    next = NULL;
     394
    394395    _name = NULL;
     396    if(name)
     397        _name = strcpy((char *)jmalloc(strlen(name) + 1,
     398                                       "jwindow::window name"), name);
    395399    wm->add_window(this);
    396400}
  • abuse/trunk/src/imlib/jwindow.hpp

    r117 r119  
    105105    void *local_info;  // pointer to info block for local system (may support windows)
    106106
    107     jwindow();
     107    jwindow(char const *name = NULL);
    108108    jwindow(int X, int Y, int L, int H, ifield *f, char const *name = NULL);
    109109    ~jwindow();
  • abuse/trunk/src/ui/volumewindow.cpp

    r118 r119  
    1414#include "gui.hpp"          // ico_button
    1515
    16 VolumeWindow::VolumeWindow()
     16VolumeWindow::VolumeWindow() : jwindow("Volume")
    1717{
    1818    char const *ff = "art/frame.spe";
Note: See TracChangeset for help on using the changeset viewer.