]> git.saurik.com Git - wxWidgets.git/blame - src/gtk/listbox.cpp
Fixed problem with CaptureMouse if cursor is null.
[wxWidgets.git] / src / gtk / listbox.cpp
CommitLineData
c801d85f
KB
1/////////////////////////////////////////////////////////////////////////////
2// Name: listbox.cpp
3// Purpose:
4// Author: Robert Roebling
f96aa4d9
RR
5// Id: $Id$
6// Copyright: (c) 1998 Robert Roebling
a3622daa 7// Licence: wxWindows licence
c801d85f
KB
8/////////////////////////////////////////////////////////////////////////////
9
10
11#ifdef __GNUG__
12#pragma implementation "listbox.h"
13#endif
14
27df579a
JJ
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
c801d85f 21#include "wx/listbox.h"
dcf924a3
RR
22
23#if wxUSE_LISTBOX
24
25#include "wx/dynarray.h"
09cf7c58 26#include "wx/utils.h"
caaa4cfd
RR
27#include "wx/intl.h"
28#include "wx/checklst.h"
72a16063 29#include "wx/settings.h"
291a8f20
RR
30
31#if wxUSE_TOOLTIPS
b1170810 32#include "wx/tooltip.h"
291a8f20 33#endif
c801d85f 34
3fa056ab 35# include <gdk/gdk.h>
16c1f79c
RR
36#include <gtk/gtk.h>
37#include <gdk/gdkkeysyms.h>
83624f79 38
acfd422a
RR
39//-----------------------------------------------------------------------------
40// idle system
41//-----------------------------------------------------------------------------
42
43extern void wxapp_install_idle_handler();
44extern bool g_isIdle;
45
38c7b3d3
RR
46//-------------------------------------------------------------------------
47// conditional compilation
48//-------------------------------------------------------------------------
49
d345e841 50#if (GTK_MINOR_VERSION > 0)
88ac883a 51 #define NEW_GTK_SCROLL_CODE
38c7b3d3
RR
52#endif
53
bb0ca8df
VZ
54//-----------------------------------------------------------------------------
55// private functions
56//-----------------------------------------------------------------------------
57
88ac883a
VZ
58#if wxUSE_CHECKLISTBOX
59
bb0ca8df
VZ
60#define CHECKBOX_STRING "[-] "
61
62