Commit Graph

576 Commits

Author SHA1 Message Date
Vadim Zeitlin
1b965a9cfb call gdk_flush() in Update() (see discussion of patch 1047642)
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@32275 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2005-02-21 01:24:22 +00:00
Robert Roebling
4adb6d28f7 Commited fix for wrong background colour in TLWs. I don't
know if this will play well with themes. Alternatively,
   one could change one of the few lines below to parent == this;


git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@32267 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2005-02-20 19:35:40 +00:00
Robert Roebling
024e9a4cea Better resizing code fro wxComboBox.
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@32090 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2005-02-15 23:19:32 +00:00
Robin Dunn
50b58dec17 Check accelerators before sending EVT_CHAR
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@31862 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2005-02-08 17:02:57 +00:00
Robin Dunn
4d3ab2a036 Allow EVT_CHAR events in a wxGTK2 build for F-keys, and other
non-alphanumeric keys.


git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@31861 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2005-02-08 16:23:27 +00:00
Robert Roebling
f127216013 Reorganized char and keydown event code, hoping
that Input Method handling is still not broken.


git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@31769 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2005-02-05 15:25:32 +00:00
Robert Roebling
ad975781eb Fixed missing key down events (probably introduced
by IM patch.)


git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@31725 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2005-02-03 13:33:36 +00:00
Robert Roebling
fdfb84751f Committed Raise()Lower() fix.
Committed second part for Input Methode character fix.


git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@31723 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2005-02-03 12:52:38 +00:00
Robert Roebling
001a26f974 I changed something, but I forgot what.
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@31650 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2005-01-30 13:04:05 +00:00
Robert Roebling
f6fca1f80e Applied IM patch.
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@31648 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2005-01-30 12:47:14 +00:00
Robert Roebling
4ecd9342fd One more place where we need to use connect_after
in order not to confuse GTK+. This fixes the
    wxTreeCtrl crash.


git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@31641 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2005-01-29 12:02:35 +00:00
Robert Roebling
0bd3b8eca1 Enable UpdateUI events in wxTaskBarIcon.
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@31572 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2005-01-23 22:39:03 +00:00
Kevin Hock
687706f5e7 Use event modifiers and accessors rather than m_ variables directly, which are now protected rather than public with 2.4 compatibility disabled
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@31454 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2005-01-18 15:08:15 +00:00
Robert Roebling
ac103441d1 Applied patch which solved conflicts between wxWidgets
and GTK+'s context menu code.


git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@31393 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2005-01-16 15:27:15 +00:00
Robin Dunn
cfa8c7d6cc Set the window id for key events
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@31249 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2005-01-05 21:33:11 +00:00
Włodzimierz Skiba
463c4d7193 wx/math.h integration
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@31012 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2004-12-14 21:10:15 +00:00
Kevin Hock
822cf31c27 Prevent GDK assertions when a window has a hidden (never shown) parent -- do not use wxRegionIterator over the parent if the parent is not mapped
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@30867 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2004-12-05 19:40:01 +00:00
Robert Roebling
0b18767089 Applied patch to correct EVT-CHAR
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@30830 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2004-12-01 18:29:13 +00:00
Václav Slavík
c4d25c01ae fixed wxTextCtrl::EmulateKeyPress to work in Unicode build of wxGTK2
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@30141 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2004-10-28 11:19:39 +00:00
Robert Roebling
12ff822199 Forgot to commit.
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@29943 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2004-10-17 14:47:27 +00:00
Vadim Zeitlin
a752b8c4e0 always let GTK process focus_out events itself
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@29852 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2004-10-14 23:46:08 +00:00
Robert Roebling
576f712776 Fixed missing focus problem.
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@29662 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2004-10-05 16:17:21 +00:00
Robert Roebling
06fda9e808 Reworked TLW and app activation event code, also
moved it to toplevel.cpp where it belongs.


git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@29623 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2004-10-03 14:13:48 +00:00
Václav Slavík
0fe0275981 changes to make wxWindow::FindFocus work as expected with composite controls
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@29540 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2004-09-29 14:34:28 +00:00
Robert Roebling
59060b8cfa GTK1 compilo.
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@29417 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2004-09-26 17:22:44 +00:00
Robert Roebling
eccd56020f Small fix for tabbing into wxListBox.
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@29263 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2004-09-22 20:57:09 +00:00
Václav Slavík
5bfaca1b32 MBCS and IM fixes (patch 1016292)
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@29019 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2004-09-03 21:20:59 +00:00
Julian Smart
de434621d8 Don't draw flat box unless background style is system
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@28955 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2004-08-29 13:55:13 +00:00
Julian Smart
c7382f913c SetBackgroundStyle(wxBG_STYLE_CUSTOM) can now be used to optimize
background erase on wxGTK (no-op on other platforms)


git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@28954 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2004-08-29 13:32:45 +00:00
Václav Slavík
098937b044 fixed handlers registration in DoPopupMenu (patch 1009949)
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@28816 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2004-08-16 13:13:30 +00:00
Václav Slavík
6dd18972d5 invalidate best size cache when GTK style changes
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@28788 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2004-08-15 11:49:42 +00:00
Václav Slavík
61721d057e reverted accidentally committed changes in previous revision
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@28786 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2004-08-14 22:54:11 +00:00
Václav Slavík
40bab631d2 attributes inheritance fix; apply style to both m_wxwindow and m_widget (patch 984858)
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@28785 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2004-08-14 22:42:23 +00:00
Vadim Zeitlin
fe51e08c27 generate EVT_CONTEXT_MENU when right mouse button is pressed, not released
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@28444 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2004-07-23 22:13:04 +00:00
Robin Dunn
6077391138 Set m_wheelDelta for wheel events
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@28361 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2004-07-21 19:06:56 +00:00
Václav Slavík
fd43b1b3ea unified Pango GetTextExtent implementations
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@28220 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2004-07-13 11:33:01 +00:00
Václav Slavík
a589495eeb implemented tab order in wxGTK2
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@28151 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2004-07-03 11:16:03 +00:00
Václav Slavík
f69e200970 set descent in GetTextExtend; use PANGO_PIXELS instead of dividing by PANGO_SCALE
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@28127 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2004-07-01 08:56:25 +00:00
Václav Slavík
ae864b86cb warning fix
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@28042 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2004-06-27 13:42:23 +00:00
Václav Slavík
a3c15d892d more fixes to keypress handling in wxGTK:
1. don't eat unprocessed events originating from child widgets
2. tell IM context about focus changes
3. set wxKeyEvent modifiers information from last GdkEventKey leading to IM's commit signal


git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@28033 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2004-06-26 15:25:39 +00:00
Václav Slavík
4b1ae1539c inform the IM context about focus changes
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@28015 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2004-06-24 20:52:25 +00:00
Václav Slavík
36025bcc55 GtkIMContext must be the first to process keypress events, otherwise you won't be able to enter all characters with some IMs; this is same thing as what GtkEntry and GtkTextView do
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@28014 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2004-06-24 20:27:49 +00:00
Václav Slavík
cf82b73a0a fixed keypresses handling to correctly translate Unicode characters to current locale's charset in GTK2+ANSI build
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@28009 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2004-06-24 19:51:39 +00:00
Václav Slavík
93d23d8faf fixed memory leak and removed duplicated code
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@28008 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2004-06-24 18:11:29 +00:00
Václav Slavík
da21012040 use GtkIMContext variable, not GtkIMMulticontext, we don't use functions that take the latter as their argument
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@28007 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2004-06-24 17:54:08 +00:00
Václav Slavík
127304e9c4 gtk_widget_get_display is documented to be GTK >= 2.2 thing -- fixes report about compilation failure
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@27969 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2004-06-23 15:33:22 +00:00
Václav Slavík
984e8d0b6b interpret m_has..Col, m_hasFont correctly
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@27903 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2004-06-19 18:59:43 +00:00
Václav Slavík
7074ce3577 moved DoApplyWidgetStyle to wxWindowGTK
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@27899 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2004-06-19 17:49:26 +00:00
Robin Dunn
fe161a2685 Controls will readjust their size and minsize when SetLabel or SetFont
are called.  Fixed up wxStaticText to blend the wxST_NO_AUTOSIZE with
this new functionality.  Made SetBestSize public under the
SetBestFittingSize name.


git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@27890 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2004-06-19 01:35:10 +00:00
Robin Dunn
f8e045e24b Give wxWindowGTK::ApplyWidgetStyle an implementation too so
non-control windows can also change colours, etc.


git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@27885 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2004-06-18 17:30:32 +00:00