Commit Graph

576 Commits

Author SHA1 Message Date
Vadim Zeitlin
a03cac3f78 don't east 100% of CPU when showing popup menu (patch 762500)
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@21732 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2003-07-06 23:26:19 +00:00
Vadim Zeitlin
815ac4a7d9 init more (all?) member variables
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@21564 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2003-07-01 20:18:43 +00:00
Robert Roebling
7b14c561d9 Font crash and timer fix as per 2_4.
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@21248 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2003-06-19 19:06:06 +00:00
Stefan Neis
75625d796c Fixed Refresh to clip update rectangles to the visible area of a
(scrolled) window. If there are many invisible/partly visible
        rectangles in the update region GTK+-1.2.10 starts complaining
        about bad match errors and soon crashes.
Change corresponds to changes on WX_2_4_BRANCH from 1.408.2.21 to 1.408.2.24.


git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@21024 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2003-06-09 18:27:31 +00:00
Julian Smart
7408cf7f76 Applied patch [ 739063 ] window.cpp (gtk) - mouse event processing
x -> y


git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@20813 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2003-06-01 13:45:54 +00:00
Robin Dunn
7c5e6fc68e Changes allowing for proper KEY_DOWN and CHAR events for wxGTK2
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@20627 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2003-05-14 19:25:18 +00:00
Robert Roebling
7f5f144a81 Upported fix to mouse capture event handling.
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@20486 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2003-05-05 08:42:22 +00:00
Robert Roebling
50382578c1 Another attempt to fix the freeze while mouse capturing.
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@20332 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2003-04-24 17:41:10 +00:00
Robert Roebling
33688b28c3 Typo in mouse event code.
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@20315 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2003-04-23 06:37:05 +00:00
Robin Dunn
7de595519a Send the wxWindowDestroyEvent for all ports
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@19251 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2003-02-19 02:59:36 +00:00
Robert Roebling
f77cf4e68a Typo.
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@19034 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2003-01-31 14:55:28 +00:00
Robert Roebling
288059b2b9 Corrected GTK2 creation of default font.
Removed ugly SET_STYLE_FONT code.


git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@19031 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2003-01-31 10:31:05 +00:00
Robert Roebling
cfcc393212 Font work.
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@18938 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2003-01-26 12:40:45 +00:00
Ron Lee
b1d4dd7add Split this out from other changes to keep things sane..
wxDeprecated KeyCode.
wxDeprecated old wxList compat methods.
Replaced a large number of them in the gtk build already, but there are
still plenty more so feel free to help nuke them as you find them.
s/^I/    / and s/TRUE/true/ etc. a couple of these too.


git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@18707 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2003-01-13 05:17:41 +00:00
Robert Roebling
bbd006c0ce Removed usage of GetInternalFont() from GTK 2.0. This
also removes any usage of GdkFont. I left the actual
    deprecated method so that the change can be bckported
    without binary incompatible changes.


git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@18596 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2003-01-05 22:59:44 +00:00
Julian Smart
37d81cc2e2 Applied [ 654253 ] wxGTK: fix to wxGetMousePosition()
wxGetMousePosition() returns -999, -999 when the mouse
pointer is not over a GTK window. This is apparently
because it uses the current window as a handle to get
to the X display. This is not necessary, however;
GDK_DISPLAY() can be used. With
this patch wxGetMousePosition() works regardless of
where on the screen the mouse is.

Jay Berkenbilt (jay_berkenbilt) modified by JACS


git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@18250 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2002-12-16 09:44:35 +00:00
Robert Roebling
df135f2b4d Catching dclick event from a spinbutton or spin control
crashes GTK 1.2 sooner or later. Just disable this
    event for now. Should also be in 2.4, actually.


git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@18112 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2002-12-08 18:02:30 +00:00
Vadim Zeitlin
2b5f62a0b2 merged 2.4 branch into the trunk
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@18040 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2002-12-04 14:11:26 +00:00
Vadim Zeitlin
6ce16bdb55 don't send clicked event for wxID_CANCEL button when Esc is pressed unless such button really exists (and then send it to the right window!)
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@17044 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2002-09-07 14:25:03 +00:00
Vadim Zeitlin
a8bf182601 fixed some GTK2 compilation warnings
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@16717 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2002-08-23 19:01:47 +00:00
Robert Roebling
3fc6e5fa23 Added scrolling of widgets to GTK 2.0.
Removied obsolete ifdef from toolbar code.
  Updated readme.


git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@16628 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2002-08-20 15:48:14 +00:00
Robert Roebling
127328cdd3 Extra check for GTK2.
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@16600 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2002-08-19 17:00:06 +00:00
Robert Roebling
fb3ed106d1 Compile fixes for ANSI mode.
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@16569 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2002-08-17 17:03:01 +00:00
Robert Roebling
b15ed74753 New GTK 2.0 Update() code.
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@16491 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2002-08-13 20:59:05 +00:00
Robert Roebling
48d011c896 Implemented GetTextExtent() for GTK 2.0.
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@16485 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2002-08-13 17:23:20 +00:00
Robert Roebling
fab591c5cc Lots of updates for Unicode and GTK 2.0 support.
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@16373 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2002-08-05 17:59:20 +00:00
Robert Roebling
d44c23ceb6 Changed wxGTK's notion of SetSize() to never allow setting
the width and height to -1 even if the wxALLOW_MINUS_ONE
flag is set.


git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@16264 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2002-07-23 20:51:42 +00:00
Robert Roebling
62cb3cd8a1 Tried to fix update/refresh again. The code erronously
cleared the updated area if the area to be cleared
    was empty (such as after a call to Refresh(FALSE)).


git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@16157 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2002-07-12 20:27:44 +00:00
Robert Roebling
3013a903c1 Cosmetic change.
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@16065 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2002-07-06 14:36:39 +00:00
Ron Lee
ada7d2c0e7 arg type warning fixes.
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@15922 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2002-06-22 15:58:29 +00:00
Julian Smart
eb411b9eea Set the clear region to be the update region if the update
region is non-empty but the clear region is empty, because
otherwise we're going to clear more than we repaint


git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@15872 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2002-06-18 08:29:34 +00:00
Vadim Zeitlin
edc1d330a5 init the event id and timestamp fields for the mouse events
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@15865 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2002-06-17 13:09:36 +00:00
Vadim Zeitlin
63fd5f0b27 added missing semicolons after asserts (patch 567853)
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@15809 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2002-06-12 15:26:35 +00:00
Vadim Zeitlin
1a685a59a0 fixed a warning
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@15807 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2002-06-12 14:12:00 +00:00
Robert Roebling
1ec3a9848a Moved wxCharhookEvent so that it sends the same
keycode as wxCharEvent.
  Removed wxDestroyWindowEvent as it crashes all
   the time.
  Corrcted wxTreeCtrl's interception of wxCharEvents
   as it misinterpreted "F5" for "Z" e.g.


git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@15798 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2002-06-09 23:02:58 +00:00
Robert Roebling
af3653ddfa Another typo fixed.
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@15729 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2002-06-02 19:30:43 +00:00
Robert Roebling
7d4909b275 Probably fixed mouse event bug introduced recently.
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@15728 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2002-06-02 18:02:54 +00:00
Robert Roebling
2dde25b981 Implemented CharHook events.
Implemented Destroy events.
    (both as per SF patches).


git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@15726 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2002-06-02 14:17:39 +00:00
Vadim Zeitlin
03b444f6af removed unused wxWindowGTK::m_isFrame
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@15719 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2002-05-31 14:18:34 +00:00
Vadim Zeitlin
2b4f3c9f76 replaced m_isRadioButton with a virtual function
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@15718 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2002-05-31 14:17:23 +00:00
Vadim Zeitlin
d1f2ac459a replaced wxWindowGTK::m_isStaticBox with a virtual function and replaced 3 occurences of the code finding the window for the mouse events with one
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@15716 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2002-05-31 14:13:17 +00:00
Vadim Zeitlin
3ae4c570c4 replaced wxWindowGTK::m_isListBox with a virtual function
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@15715 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2002-05-31 14:00:01 +00:00
Vadim Zeitlin
6cad4f1b21 fixes for the focus handling: don't set back to back set/kill focus events
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@15714 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2002-05-31 13:51:43 +00:00
Julian Smart
d665f50b8c In an expose event, the m_clearRegion is also updated as well
as m_updateRegion because otherwise in a scroll or resize,
a custom OnEraseBackground method will draw over more window than
OnPaint will redraw -- clearly not what's wanted.


git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@15566 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2002-05-14 20:38:22 +00:00
Mattia Barbon
cc06fe74c4 Make Univ/GTK compile again
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@15247 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2002-04-23 20:16:40 +00:00
Ron Lee
6728fb611b buggy cast == buggy scrolling in Life!
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@15242 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2002-04-22 21:25:48 +00:00
Vadim Zeitlin
3e679f0190 reset g_delayedFocus when the window is deleted to avoid crashes when using it
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@15240 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2002-04-22 15:44:55 +00:00
Robert Roebling
f90566f5c3 Bunch of GTK theme changes.
Make wxStatusBar use themes.
  SetStatusText() now uses Refresh() since I don't
    know why it shouldn't.


git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@15228 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2002-04-21 16:43:15 +00:00
Vadim Zeitlin
6aeb6f2a58 fixed initial focus handling in the dialog and made SetFocus() send the focus
events as under wxMSW


git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@15218 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2002-04-20 13:53:11 +00:00
Robert Roebling
010afced51 Updated makefile for mobile sample.
Updated changes.txt.
  Moved contents of ::Update() to ::GtkUpdate()
  Moved internal idle functions in wxApp to
    its own function.
  Tried to fix themed background redraw problem
    (probably same bug in wxNotebook and in
     wxStatusBar and others).


git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@15204 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2002-04-19 17:39:49 +00:00