]> git.saurik.com Git - wxWidgets.git/blame - src/gtk1/statline.cpp
Attempt to add primary selection support, but doesn't work.
[wxWidgets.git] / src / gtk1 / statline.cpp
CommitLineData
b0351fc9
RR
1/////////////////////////////////////////////////////////////////////////////
2// Name: statline.cpp
3// Purpose:
4// Author: Robert Roebling
5// Id: $Id$
6// Copyright: (c) 1998 Robert Roebling
f03fc89f 7// Licence: wxWindows licence
b0351fc9
RR
8/////////////////////////////////////////////////////////////////////////////
9
10#ifdef __GNUG__
11#pragma implementation "statline.h"
12#endif
13
14#include "wx/statline.h"
15
16#include "gdk/gdk.h"
17#include "gtk/gtk.h"
18
19//-----------------------------------------------------------------------------
20// wxStaticLine
21//-----------------------------------------------------------------------------
22
23IMPLEMENT_DYNAMIC_CLASS(wxStaticLine,wxControl)
24
25wxStaticLine::wxStaticLine(void)
26{
27}
28
29wxStaticLine::wxStaticLine( wxWindow *parent, wxWindowID id,
30 const wxPoint &pos, const wxSize &size,
31 long style, const wxString &name )
32{
33 Create( parent, id, pos, size, style, name );
34}
35
36bool wxStaticLine::Create( wxWindow *parent, wxWindowID id,
37 const wxPoint &pos, const wxSize &size,
38 long style, const wxString &name )
39{
40 m_needParent = TRUE;
41
42 PreCreation( parent, id, pos, size, style, name );
43
44 if (style & wxVERTICAL)
45 m_widget = gtk_vseparator_new();
46 else
47 m_widget = gtk_hseparator_new();
48
f03fc89f 49 m_parent->DoAddChild( this );
b0351fc9
RR
50
51 PostCreation();
52
53 Show( TRUE );
54
55 return TRUE;
56}
57