Commit 92cd2b09 authored by claes's avatar claes

Bugfix in get_parent_widget

parent e4a0d42e
/** /**
* Proview $Id: co_msgwindow.h,v 1.5 2005-12-15 07:41:17 claes Exp $ * Proview $Id: co_msgwindow.h,v 1.6 2005-12-27 09:28:12 claes Exp $
* Copyright (C) 2005 SSAB Oxelsund AB. * Copyright (C) 2005 SSAB Oxelsund AB.
* *
* This program is free software; you can redistribute it and/or * This program is free software; you can redistribute it and/or
...@@ -93,7 +93,12 @@ class MsgWindow { ...@@ -93,7 +93,12 @@ class MsgWindow {
static void map_default() { if ( default_window) default_window->map();} static void map_default() { if ( default_window) default_window->map();}
static void dset_nodraw() { if ( default_window) default_window->set_nodraw();} static void dset_nodraw() { if ( default_window) default_window->set_nodraw();}
static void dreset_nodraw() { if ( default_window) default_window->reset_nodraw();} static void dreset_nodraw() { if ( default_window) default_window->reset_nodraw();}
static void get_parent_widget( Widget *w) { *w = default_window->parent_wid;} static void get_parent_widget( Widget *w) {
if ( default_window)
*w = default_window->parent_wid;
else
*w = 0;
}
static void hide_info_messages( int hide) { hide_info = hide;} static void hide_info_messages( int hide) { hide_info = hide;}
}; };
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment