]> git.saurik.com Git - wxWidgets.git/blame_incremental - src/gtk1/listbox.cpp
Make this compile with gtk+ 1.3.1... not sure what the "casting"
[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#ifdef __VMS
16#define gtk_scrolled_window_add_with_viewport gtk_scrolled_window_add_with_vi
17#define gtk_container_set_focus_vadjustment gtk_container_set_focus_vadjust
18#define gtk_scrolled_window_get_vadjustment gtk_scrolled_window_get_vadjust
19#endif
20
21#include "wx/listbox.h"
22
23#if wxUSE_LISTBOX
24
25#include "wx/dynarray.h"
26#include "wx/utils.h"
27#include "wx/intl.h"
28#include "wx/checklst.h"
29#include "wx/settings.h"
30
31#if wxUSE_TOOLTIPS
32#include "wx/tooltip.h"
33#endif
34
35# include <gdk/gdk.h>
36#include <gtk/gtk.h>
37#include <gdk/gdkkeysyms.h>
38
39//-----------------------------------------------------------------------------
40// idle system
41//-----------------------------------------------------------------------------
42
43extern void wxapp_install_idle_handler();
44extern bool g_isIdle;
45
46//-------------------------------------------------------------------------
47// conditional compilation
48//-------------------------------------------------------------------------
49
50#if (GTK_MINOR_VERSION > 0)
51 #define NEW_GTK_SCROLL_CODE
52#endif
53
54//-----------------------------------------------------------------------------
55// private functions
56//-----------------------------------------------------------------------------
57
58#if wxUSE_CHECKLISTBOX
59
60#define CHECKBOX_STRING "[-] "
61
62