projects
/
wxWidgets.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
pusing a dummy event, to make sure the stop: succeeds in immediate runloop terminatio...
[wxWidgets.git]
/
src
/
gtk
/
renderer.cpp
diff --git
a/src/gtk/renderer.cpp
b/src/gtk/renderer.cpp
index 8fff4abf1deea95834c47a811729cd1277e09639..70315318dd1e73a29ec7f11868273b9088f2c4e6 100644
(file)
--- a/
src/gtk/renderer.cpp
+++ b/
src/gtk/renderer.cpp
@@
-6,7
+6,7
@@
// Created: 20.07.2003
// RCS-ID: $Id$
// Copyright: (c) 2003 Vadim Zeitlin <vadim@wxwindows.org>
// Created: 20.07.2003
// RCS-ID: $Id$
// Copyright: (c) 2003 Vadim Zeitlin <vadim@wxwindows.org>
-// Licen
s
e: wxWindows licence
+// Licen
c
e: wxWindows licence
///////////////////////////////////////////////////////////////////////////////
// ============================================================================
///////////////////////////////////////////////////////////////////////////////
// ============================================================================
@@
-56,6
+56,8
@@
public:
virtual int GetHeaderButtonHeight(wxWindow *win);
virtual int GetHeaderButtonHeight(wxWindow *win);
+ virtual int GetHeaderButtonMargin(wxWindow *win);
+
// draw the expanded/collapsed icon for a tree control item
virtual void DrawTreeItemButton(wxWindow *win,
// draw the expanded/collapsed icon for a tree control item
virtual void DrawTreeItemButton(wxWindow *win,
@@
-226,6
+228,12
@@
int wxRendererGTK::GetHeaderButtonHeight(wxWindow *WXUNUSED(win))
return req.height;
}
return req.height;
}
+int wxRendererGTK::GetHeaderButtonMargin(wxWindow *WXUNUSED(win))
+{
+ wxFAIL_MSG( "GetHeaderButtonMargin() not implemented" );
+ return -1;
+}
+
// draw a ">" or "v" button
void
// draw a ">" or "v" button
void
@@
-469,12
+477,21
@@
wxRendererGTK::DrawCheckBox(wxWindow* win,
else
state = GTK_STATE_NORMAL;
else
state = GTK_STATE_NORMAL;
+ GtkShadowType shadow_type;
+
+ if ( flags & wxCONTROL_UNDETERMINED )
+ shadow_type = GTK_SHADOW_ETCHED_IN;
+ else if ( flags & wxCONTROL_CHECKED )
+ shadow_type = GTK_SHADOW_IN;
+ else
+ shadow_type = GTK_SHADOW_OUT;
+
gtk_paint_check
(
button->style,
gdk_window,
state,
gtk_paint_check
(
button->style,
gdk_window,
state,
-
flags & wxCONTROL_CHECKED ? GTK_SHADOW_IN : GTK_SHADOW_OUT
,
+
shadow_type
,
NULL,
button,
"cellcheck",
NULL,
button,
"cellcheck",