all repos — fluxbox @ b44cd198090dc5e3aec8a9f2b927f2b2ba80cf63

custom fork of the fluxbox windowmanager

not all compilers have __FUNCTION__ (mipspro)
akir akir
commit

b44cd198090dc5e3aec8a9f2b927f2b2ba80cf63

parent

bbb5259a8890cd59a94bdb3c360daa556f1c8855

2 files changed, 10 insertions(+), 10 deletions(-)

jump to
M src/SystemTray.ccsrc/SystemTray.cc

@@ -19,7 +19,7 @@ // LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING

// FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER // DEALINGS IN THE SOFTWARE. -// $Id: SystemTray.cc,v 1.15 2004/09/01 08:46:55 fluxgen Exp $ +// $Id: SystemTray.cc,v 1.16 2004/10/21 10:38:25 akir Exp $ #include "SystemTray.hh"

@@ -111,7 +111,7 @@ // just try to blend in... (better than defaulting to white)

m_window.setBackgroundPixmap(ParentRelative); // setup atom name to _NET_SYSTEM_TRAY_S<screen number> - char intbuff[16]; + char intbuff[16]; sprintf(intbuff, "%d", m_window.screenNumber()); std::string atom_name("_NET_SYSTEM_TRAY_S"); atom_name += intbuff; // append number

@@ -123,14 +123,14 @@ Atom tray_atom = XInternAtom(disp, atom_name.c_str(), False);

Window owner = XGetSelectionOwner(disp, tray_atom); if (owner != 0) { #ifdef DEBUG - cerr<<__FILE__<<"("<<__FUNCTION__<<"): can't set owner!"<<endl; + cerr<<__FILE__<<"(SystemTray(const FbTk::FbWindow)): can't set owner!"<<endl; #endif // DEBUG return; // the're can't be more than one owner } // ok, it was free. Lets set owner #ifdef DEBUG - cerr<<__FILE__<<"("<<__FUNCTION__<<"): SETTING OWNER!"<<endl; + cerr<<__FILE__<<"(SystemTray(const FbTk::FbWindow)): SETTING OWNER!"<<endl; #endif // DEBUG // set owner XSetSelectionOwner(disp, tray_atom, m_window.window(), CurrentTime);

@@ -222,7 +222,7 @@

int type = event.data.l[1]; if (type == SYSTEM_TRAY_REQUEST_DOCK) { #ifndef DEBUG - cerr<<"SystemTray::"<<__FUNCTION__<<": SYSTEM_TRAY_REQUEST_DOCK"<<endl; + cerr<<"SystemTray::clientMessage(const XClientMessageEvent): SYSTEM_TRAY_REQUEST_DOCK"<<endl; cerr<<"window = event.data.l[2] = "<<event.data.l[2]<<endl; #endif // DEBUG addClient(event.data.l[2]);

@@ -273,7 +273,7 @@

FbTk::FbWindow *traywin = new TrayWindow(win); #ifdef DEBUG - cerr<<"SystemTray::"<<__FUNCTION__<<": 0x"<<hex<<win<<dec<<endl; + cerr<<"SystemTray::addClient(Window): 0x"<<hex<<win<<dec<<endl; #endif // DEBUG if (m_clients.empty()) show();

@@ -298,7 +298,7 @@ if (tray_it == m_clients.end())

return; #ifdef DEBUG - cerr<<__FILE__<<"("<<__FUNCTION__<<"): 0x"<<hex<<win<<dec<<endl; + cerr<<__FILE__<<"(SystemTray::removeClient(Window)): 0x"<<hex<<win<<dec<<endl; #endif // DEBUG FbTk::FbWindow *traywin = *tray_it; m_clients.erase(tray_it);
M src/Window.ccsrc/Window.cc

@@ -22,7 +22,7 @@ // LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING

// FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER // DEALINGS IN THE SOFTWARE. -// $Id: Window.cc,v 1.303 2004/10/18 01:24:24 akir Exp $ +// $Id: Window.cc,v 1.304 2004/10/21 10:38:25 akir Exp $ #include "Window.hh"

@@ -347,7 +347,7 @@ delete m_client; // this also removes client from our list

m_client = 0; if (m_clientlist.size() > 1) { - cerr<<__FILE__<<"("<<__FUNCTION__<<") WARNING! clientlist > 1"<<endl; + cerr<<__FILE__<<"(~FluxboxWindow()) WARNING! clientlist > 1"<<endl; while (!m_clientlist.empty()) { detachClient(*m_clientlist.back()); }

@@ -2041,7 +2041,7 @@ /**

Determine if this is the lowest tab of them all */ bool FluxboxWindow::isLowerTab() const { - cerr<<__FILE__<<"("<<__FUNCTION__<<") TODO!"<<endl; + cerr<<__FILE__<<"(FluxboxWindow::isLowerTab()) TODO!"<<endl; return true; }