]> git.saurik.com Git - wxWidgets.git/blame_incremental - src/gtk1/listbox.cpp
*** empty log message ***
[wxWidgets.git] / src / gtk1 / listbox.cpp
... / ...
CommitLineData
1/////////////////////////////////////////////////////////////////////////////
2// Name: listbox.cpp
3// Purpose:
4// Author: Robert Roebling
5// Id: $Id$
6// Copyright: (c) 1998 Robert Roebling
7// Licence: wxWindows licence
8/////////////////////////////////////////////////////////////////////////////
9
10
11#ifdef __GNUG__
12#pragma implementation "listbox.h"
13#endif
14
15#include "wx/listbox.h"
16
17#if wxUSE_LISTBOX
18
19#include "wx/dynarray.h"
20#include "wx/utils.h"
21#include "wx/intl.h"
22#include "wx/checklst.h"
23#include "wx/settings.h"
24
25#if wxUSE_TOOLTIPS
26#include "wx/tooltip.h"
27#endif
28
29#ifdef __VMS__
30#define gtk_scrolled_window_add_with_viewport gtk_scrolled_window_add_with_vi
31#define gtk_container_set_focus_vadjustment gtk_container_set_focus_vadjust
32#define gtk_scrolled_window_get_vadjustment gtk_scrolled_window_get_vadjust
33#endif
34# include <gdk/gdk.h>
35#include <gtk/gtk.h>
36#include <gdk/gdkkeysyms.h>
37
38//-----------------------------------------------------------------------------
39// idle system
40//-----------------------------------------------------------------------------
41
42extern void wxapp_install_idle_handler();
43extern bool g_isIdle;
44
45//-------------------------------------------------------------------------
46// conditional compilation
47//-------------------------------------------------------------------------
48
49#if (GTK_MINOR_VERSION > 0)
50 #define NEW_GTK_SCROLL_CODE
51#endif
52
53//-----------------------------------------------------------------------------
54// private functions
55//-----------------------------------------------------------------------------
56
57#if wxUSE_CHECKLISTBOX
58
59#define CHECKBOX_STRING "[-] "
60
61