Commit Graph

706 Commits

Author SHA1 Message Date
Włodzimierz Skiba
3b3dc8019a Include wx/menu.h according to precompiled headers of wx/wx.h (with other minor cleaning).
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@39205 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2006-05-18 07:13:20 +00:00
Paul Cornett
de7bb80239 avoid GTK "assertion `min < max' failed"
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@39200 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2006-05-18 02:39:23 +00:00
Paul Cornett
add7cadd99 scrollbar handling simplification
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@39178 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2006-05-17 04:54:13 +00:00
Mart Raudsepp
3fe39b0ce3 Don't cast with G_OBJECT when passing a GObject to g_object_ref, g_object_unref and g_signal_connect.
They take a gpointer, not GObject*, and unnecessary casting not all that speedy with GObject types.


git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@39156 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2006-05-15 14:17:38 +00:00
Paul Cornett
2092774d8a allow size event for windows without scrollbars
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@39132 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2006-05-10 16:36:31 +00:00
Paul Cornett
76e4be8e18 simplify mouse wheel signal handler
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@39128 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2006-05-09 16:55:25 +00:00
Włodzimierz Skiba
ed4b0fdca6 Include wx/dcclient.h according to precompiled headers of wx/wx.h (with other minor cleaning).
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@39085 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2006-05-06 21:51:49 +00:00
Włodzimierz Skiba
76b49cf49b Include wx/frame.h according to precompiled headers of wx/wx.h (with other minor cleaning).
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@39045 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2006-05-05 08:10:55 +00:00
Włodzimierz Skiba
de6185e212 Include wx/utils.h according to precompiled headers of wx/wx.h (with other minor cleaning).
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@38972 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2006-05-02 10:39:23 +00:00
Włodzimierz Skiba
670f993563 Include wx/app.h according to precompiled headers of wx/wx.h (with other minor cleaning).
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@38945 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2006-04-28 12:44:37 +00:00
Robin Dunn
ccb9fa0dfb Reset the mouse event object and id in case FindWindowForMouseEvent
selected a new window to send the event to.


git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@38930 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2006-04-27 00:30:59 +00:00
Włodzimierz Skiba
e4db172a3b Include wx/log.h according to precompiled headers of wx/wx.h (with other minor cleaning).
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@38920 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2006-04-26 08:21:31 +00:00
Włodzimierz Skiba
88a7a4e10e Include wx/intl.h according to precompiled headers of wx/wx.h (with other minor cleaning).
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@38909 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2006-04-25 14:38:19 +00:00
Paul Cornett
09bf837807 extract 3 copies of scrollbar width code into one function
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@38877 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2006-04-22 05:46:54 +00:00
Vadim Zeitlin
6493aacaeb centralized the handling of border styles; added borders support for wxListBox and support of other kinds of borders (patch 1448088)
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@38771 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2006-04-16 23:38:26 +00:00
Vadim Zeitlin
f516d98637 create stock GDI objects on demand; use const with GDI objects appropriately (patch 1445355)
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@38765 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2006-04-16 22:18:29 +00:00
Vadim Zeitlin
a3669332df use wxGTK_CONV instead of directly using wxConvLocal (simplifies code avoiding needless #ifdefs and prepares for further wxGTK_CONV changes)
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@38646 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2006-04-10 01:39:38 +00:00
Mart Raudsepp
2454dc8a64 GDK_ROOT_PARENT -> gdk_get_default_root_window
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@38558 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2006-04-04 17:50:58 +00:00
Mart Raudsepp
791d7ea2d6 gdk_window_get_size -> gdk_drawable_get_size
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@38556 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2006-04-04 17:19:42 +00:00
David Surovell
ee32d4354f added missing paren
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@38553 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2006-04-04 16:40:38 +00:00
Mart Raudsepp
5e4bf05abd gdk_gc_unref -> g_object_unref
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@38549 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2006-04-04 14:26:57 +00:00
Włodzimierz Skiba
faa94f3ec8 Final and global PRIOR/NEXT change: keep consistency using only PAGE versions, deprecate old ids, remove rest of build problems with case statemets.
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@38380 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2006-03-27 12:25:17 +00:00
Vadim Zeitlin
2e1f50128a support mnemonics for wxStatic/RadioBox and made it easier to add support for more controls by virtualizing the mnemonics support logic (patch 1448178)
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@38027 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2006-03-12 14:21:19 +00:00
Vadim Zeitlin
848332140b moved wxapp_install_idle_handler and g_isIdle from many cpp files into gtk/private.h (patch 1435529)
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@37931 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2006-03-09 13:36:53 +00:00
Robin Dunn
61f0bec0cd Keep the key up/down event consistency without relying on toupper()
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@37917 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2006-03-09 02:20:39 +00:00
Robert Roebling
fe39b16a97 Apply patch which makes it possible to resize a
control in a toolbar.


git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@37772 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2006-03-01 22:43:57 +00:00
Mart Raudsepp
7f7beb1d3a Fix gtk callback return types and more in window.cpp
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@37712 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2006-02-24 16:37:06 +00:00
Robert Roebling
38f69be155 Emit wxSetCursorEvent before mouse move and
mouse enter.


git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@37673 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2006-02-22 23:36:32 +00:00
Mart Raudsepp
1efb5db896 Make everything compile with GTK_DISABLE_DEPRECATED declared.
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@37648 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2006-02-20 21:28:53 +00:00
Robert Roebling
4c20ee63f0 Use g_signal_connect_after for GTK+ native controls
and wxTopLevelWindow focus events and the normal
    _connect for custom controls.


git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@37620 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2006-02-16 09:00:45 +00:00
Mart Raudsepp
f1e57cb96f Revert. Crashes single-line wxTextCtrl.
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@37610 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2006-02-15 20:14:12 +00:00
Mart Raudsepp
4adf7c2be5 Connect focus_out_event handler before the default handler, as to suppress queue_draw when appropriate, that the
default one does.


git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@37609 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2006-02-15 20:09:10 +00:00
Mart Raudsepp
f7108f16cc Use correct type for storing return value. gboolean instead of bool.
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@37604 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2006-02-15 15:49:09 +00:00
Mart Raudsepp
f3a5f83a66 The return types for enter/leave-notify-event and focus-in/out-event handlers are gboolean, not gint
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@37599 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2006-02-15 14:01:20 +00:00
Robert Roebling
628bad7560 Alter focus handling to disable GTK+ standard
behaviour for custom controls (non native
    controls) so that window is not invalidated
    after focus in and out. Leave native control
    alone.


git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@37592 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2006-02-15 12:10:47 +00:00
Robert Roebling
cbab6fe5ff Reenable wxFULL_REPAINT_ON_RESIZE line.
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@37588 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2006-02-15 09:02:58 +00:00
Vadim Zeitlin
0c131a5ad2 implemented ScrollLines/Pages() for all classes in wxGTK, not just wxTextCtrl (patch 1281503)
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@37407 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2006-02-09 03:53:34 +00:00
Vadim Zeitlin
259858fc6a now we don't only show label mnemonics but they also work
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@37345 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2006-02-05 23:50:13 +00:00
Vadim Zeitlin
12848fda6f no changes; just some (very) minor cleanup
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@37344 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2006-02-05 23:39:37 +00:00
Robin Dunn
1dabdced0e For consistency with the docs and with wxMSW the keycode for
Ctrl-letter EVT_CHAR events should be in the range 1-26.  Also, make
the m_uniChar value match the keycode for KEY_UP/DOWN events for
letters.


git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@37339 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2006-02-05 22:10:13 +00:00
Mart Raudsepp
67b73b9aab GTK2: gtk_draw_* -> gtk_paint_*
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@37281 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2006-02-03 21:57:03 +00:00
Mart Raudsepp
afa7bd1eef Remove obsolete GTK1 compatibility macros. Patch #1413458 - Paul Cornett
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@37275 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2006-02-03 20:38:55 +00:00
Julian Smart
84dc821c24 Reverting patch 1325857
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@37222 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2006-01-30 20:04:58 +00:00
Mart Raudsepp
9fa72bd2a6 Use g_signal* instead of deprecated gtk_signal*. Use proper casts for the arguments.
Worth norting from the GTK+ docs: "For future usage, direct use of the GSignal API is recommended, this avoids
significant performance hits where GtkArg structures have to be converted into GValues."


git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@37061 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2006-01-22 23:28:58 +00:00
Mart Raudsepp
68567a967b Nuke GTK1 from src/gtk
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@37056 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2006-01-22 20:29:17 +00:00
Julian Smart
25f182c18b Applied patch [ 1325857 ] CJK input method doesn't work properly(GTK, CVS)
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@36976 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2006-01-18 16:51:09 +00:00
Mart Raudsepp
3d257b8db1 Remove stray whitespaces
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@36875 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2006-01-14 18:32:37 +00:00
Robin Dunn
7dd40b6f4b Added wxGetMouseState which returns the current state of the mouse.
Returns an instance of a wxMouseState object that contains the current
position of the mouse pointer in screen coordinants, as well as
boolean values indicating the up/down status of the mouse buttons and
the modifier keys.  Implemented for wxMSW, wxGTK and wxMac.


git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@36691 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2006-01-05 04:31:27 +00:00
Julian Smart
224016a800 Added wxAddGrab, wxRemoveGrab for use by popup window implementations
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@36663 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2006-01-03 16:37:32 +00:00
Vadim Zeitlin
defdd88800 GTK+ 1 compilation fixes
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@36559 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2005-12-24 02:20:15 +00:00