git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@4719 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
Robert Roebling 1999-11-28 11:47:36 +00:00
parent 3f26799e25
commit aed8ac3f89
6 changed files with 20 additions and 28 deletions

View File

@ -13,15 +13,8 @@
#include "wx/region.h"
#include "gdk/gdk.h"
#include "gtk/gtk.h"
#ifdef __WXDEBUG__
#ifdef NULL
#undef NULL
#endif
#define NULL ((void*)0L)
#endif
#include <gdk/gdk.h>
#include <gtk/gtk.h>
//-----------------------------------------------------------------------------
// wxRegion

View File

@ -17,10 +17,11 @@
#if wxUSE_SCROLLBAR
#include "wx/utils.h"
#include <math.h>
#include "gdk/gdk.h"
#include "gtk/gtk.h"
#include <gdk/gdk.h>
#include <gtk/gtk.h>
//-----------------------------------------------------------------------------
// idle system
@ -36,6 +37,8 @@ extern bool g_isIdle;
extern bool g_blockEventsOnDrag;
extern bool g_blockEventsOnScroll;
static const float sensitivity = 0.02;
//-----------------------------------------------------------------------------
// "value_changed"
//-----------------------------------------------------------------------------
@ -48,7 +51,7 @@ static void gtk_scrollbar_callback( GtkAdjustment *adjust, wxScrollBar *win )
if (g_blockEventsOnDrag) return;
float diff = adjust->value - win->m_oldPos;
if (fabs(diff) < 0.2) return;
if (fabs(diff) < sensitivity) return;
win->m_oldPos = adjust->value;

View File

@ -15,8 +15,8 @@
#include "wx/settings.h"
#include "wx/debug.h"
#include "gdk/gdk.h"
#include "gtk/gtk.h"
#include <gdk/gdk.h>
#include <gtk/gtk.h>
/*
#define wxSYS_COLOUR_SCROLLBAR 0

View File

@ -13,15 +13,8 @@
#include "wx/region.h"
#include "gdk/gdk.h"
#include "gtk/gtk.h"
#ifdef __WXDEBUG__
#ifdef NULL
#undef NULL
#endif
#define NULL ((void*)0L)
#endif
#include <gdk/gdk.h>
#include <gtk/gtk.h>
//-----------------------------------------------------------------------------
// wxRegion

View File

@ -17,10 +17,11 @@
#if wxUSE_SCROLLBAR
#include "wx/utils.h"
#include <math.h>
#include "gdk/gdk.h"
#include "gtk/gtk.h"
#include <gdk/gdk.h>
#include <gtk/gtk.h>
//-----------------------------------------------------------------------------
// idle system
@ -36,6 +37,8 @@ extern bool g_isIdle;
extern bool g_blockEventsOnDrag;
extern bool g_blockEventsOnScroll;
static const float sensitivity = 0.02;
//-----------------------------------------------------------------------------
// "value_changed"
//-----------------------------------------------------------------------------
@ -48,7 +51,7 @@ static void gtk_scrollbar_callback( GtkAdjustment *adjust, wxScrollBar *win )
if (g_blockEventsOnDrag) return;
float diff = adjust->value - win->m_oldPos;
if (fabs(diff) < 0.2) return;
if (fabs(diff) < sensitivity) return;
win->m_oldPos = adjust->value;

View File

@ -15,8 +15,8 @@
#include "wx/settings.h"
#include "wx/debug.h"
#include "gdk/gdk.h"
#include "gtk/gtk.h"
#include <gdk/gdk.h>
#include <gtk/gtk.h>
/*
#define wxSYS_COLOUR_SCROLLBAR 0