-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathBaseGtkWindow.cc
36 lines (29 loc) · 957 Bytes
/
BaseGtkWindow.cc
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
// Adapted from BaseGabberWindow.cc (now called BaseGtkWindow)
#include "BaseGtkWindow.hh"
BaseGtkWindow::BaseGtkWindow(const char* gladefilename, const char* widgetname) :
filename_(gladefilename),widget_name_(widgetname)
{
_thisGH = glade_xml_new(gladefilename, widgetname);
_thisWindow = getWidgetPtr<Gtk::Window>(_thisGH, widgetname);
reference(); // Hmmm...maybe this is the ref count for _thisWindow ?
}
void BaseGtkWindow::set_dynamic()
{
SigC::Object::set_dynamic();
set_sink(); // adjusts the floating property of the SigC Object
}
void BaseGtkWindow::close()
{
unreference();
}
BaseGtkWindow::~BaseGtkWindow()
{
_thisWindow->destroy();
gtk_object_unref(GTK_OBJECT(_thisGH));
}
/*
$Header: /home/ckuklewicz/cvsroot/gminehunter/BaseGtkWindow.cc,v 2.0 2000/07/22 17:21:14 ckuklewicz Exp $
$Log: BaseGtkWindow.cc,v $
Revision 2.0 2000/07/22 17:21:14 ckuklewicz
Synchonizing release numbers
*/