Commit Graph

218 Commits

Author SHA1 Message Date
Paul Cornett
e88f9403f0 make sure ShowWithoutActivating only takes effect once
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@62520 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2009-10-31 16:29:19 +00:00
Paul Cornett
52802b0727 implement ShowWithoutActivating for GTK+
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@62510 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2009-10-30 07:39:58 +00:00
Julian Smart
426d19f139 Applied patch #9058 (add Hildon 2.0 support)
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@62071 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2009-09-24 12:36:34 +00:00
Paul Cornett
40fd70f109 small fix to last commit, only disable updating decor size if necessary
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@61770 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2009-08-27 07:08:12 +00:00
Paul Cornett
d2c5fe6e6e avoid deferred show with Fluxbox, its support for _NET_REQUEST_FRAME_EXTENTS is broken
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@61769 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2009-08-27 05:11:01 +00:00
Vadim Zeitlin
03647350fc No changes, just removed hard tabs and trailing white space.
This commit is huge but there are no non-white-space changes in it.

Some files containing third-party sources (src/msw/wince/time.cpp,
src/x11/pango*.cpp) were left unchanged.

git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@61724 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2009-08-21 10:41:26 +00:00
Vadim Zeitlin
9a83f86094 Globally replace _T() with wxT().
Standardize on using a single macro across all wxWidgets sources and solve the name clash with Sun CC standard headers (see #10660).

git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@61508 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2009-07-23 20:30:22 +00:00
Francesco Montorsi
92f9888cec avoid GDK warnings about invalid windows when creating wxTopLevel::Refresh too early
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@59520 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2009-03-13 23:07:53 +00:00
Robert Roebling
d02852036d wxBusyInfo now uses wxGenericStaticText under GTK+, more Refresh/Update updates
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@59394 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2009-03-06 23:30:54 +00:00
Paul Cornett
6089c4c8e8 fix deferred show when SetSize() is called after SetClientSize()
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@58956 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2009-02-17 03:32:40 +00:00
Francesco Montorsi
977a41ec3e use YieldFor() in wxTopLevelWindowGTK::RequestUserAttention; comment on the use of YieldFor() in wxProgressDialog; add some TODOs near wxYieldIfNeeded()/wxSafeYield() calls in wxListCtrl, wxDataViewCtrl, wxTreeCtrl (closes #10320)
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@58916 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2009-02-15 15:42:15 +00:00
Robert Roebling
55ca41b1ea Store pointer to owning wxWindow in wxPizza widget
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@58503 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2009-01-29 22:32:25 +00:00
Robert Roebling
992d6e1e2c Removed queuedResize code again as GTK+ does this internally already
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@58437 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2009-01-26 20:43:12 +00:00
Robert Roebling
d7ce433897 Postpone size event from wxTLW resizing to idle
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@58332 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2009-01-23 14:04:32 +00:00
Vadim Zeitlin
c6212a0cb7 set m_isBeingDeleted to true (only) in SendDestroyEvent(); call it as early as possible during the window destruction to ensure that destroy event handlers can still access the full window object
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@58246 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2009-01-20 18:33:33 +00:00
Vadim Zeitlin
d3b9f782ef don't use annoying and unneeded in C++ casts of NULL to "T *" in all other files neither
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@58227 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2009-01-19 13:55:27 +00:00
Paul Cornett
11d8dfd2fb fix saving/restoring size when WM supports _NET_FRAME_EXTENTS but not _NET_REQUEST_FRAME_EXTENTS
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@57525 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2008-12-24 07:51:15 +00:00
Paul Cornett
e955eee585 fix for shown TLW having m_isShown == false, #9909
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@56986 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2008-11-27 23:00:04 +00:00
Vadim Zeitlin
bb25a741c2 honour wx{CLOSE,MINIMIZE,MAXIMIZE}_BOX even for borderless windows; also always allow moving the windows as we don't have a special style to enable/disable this (#10029)
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@56037 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2008-10-02 23:44:51 +00:00
Paul Cornett
0d0b57acec get system colors directly from GTK styles, eliminating need for cached wxColor objects
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@55315 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2008-08-27 17:10:36 +00:00
Paul Cornett
9ff9d30c0a Hold a reference on m_widget for the life of the associated wxWindow object.
This allows removing some ugly hacks, and leaking of GtkWidgets by wxNotebook.


git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@55288 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2008-08-26 16:19:23 +00:00
Paul Cornett
f087f1d84a uncomment line accidentally left commented out in last commit
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@55275 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2008-08-26 05:28:53 +00:00
Paul Cornett
0617ba3e34 fix for GTK assertion `info->icon_pixmap == NULL' failed, #9905
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@55274 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2008-08-26 05:10:45 +00:00
Paul Cornett
166b4de727 put frame extents XGetWindowProperty code in one place
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@53661 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2008-05-20 03:27:12 +00:00
Paul Cornett
fce611e426 restore caching of WM frame extents
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@53322 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2008-04-23 17:05:47 +00:00
Paul Cornett
7d1d359a4c don't reset m_deferShow if Show() is called more than once, bug 1939534
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@53267 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2008-04-19 20:54:43 +00:00
Vadim Zeitlin
87e024f7d5 delay setting the window shape until it is realized (slightly modified patch 1935497)
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@53059 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2008-04-06 16:14:49 +00:00
Paul Cornett
aacd4b50d3 reorganize deferred show logic a bit, to reset m_deferShow properly and avoid realizing unnecessarily
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@52579 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2008-03-17 04:25:10 +00:00
Paul Cornett
390f44afb6 use a different method to prevent an early size_allocate,
removing child has undesirable size effects, such as unsetting the default widget

git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@52552 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2008-03-15 18:11:08 +00:00
Václav Slavík
bd2e08d065 simplified and cleaned up wxGTK's focus handling
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@52473 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2008-03-14 01:10:43 +00:00
Paul Cornett
b890136bc6 don't defer showing if _NET_FRAME_EXTENTS handler is not connected
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@52447 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2008-03-12 05:46:13 +00:00
Paul Cornett
593354ca47 revert updating GTK size hints when window decorations change, it messes up min size set by a sizer
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@52171 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2008-02-28 06:34:43 +00:00
Paul Cornett
81b0235f13 update GTK size hints when window decorations change
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@52100 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2008-02-26 06:14:32 +00:00
Václav Slavík
bbd92d1dbe moved win_gtk.h header to wx/gtk/private, it's for internal use only
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@51993 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2008-02-22 13:24:05 +00:00
Paul Cornett
e8769ed11c avoid GCC warnings about breaking strict aliasing rules
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@51508 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2008-02-02 21:52:26 +00:00
Paul Cornett
428f841bd0 prevent explicitly set client size from being changed when frame extents become known
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@51190 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2008-01-13 02:00:27 +00:00
Paul Cornett
9fcdcfbca2 fix deferred show when min size has been set
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@50477 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2007-12-05 04:47:56 +00:00
Paul Cornett
53e3cd047c Only account for WM frame extents in tlw size if WM supports _NET_FRAME_EXTENTS. Extents cache no longer needed.
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@50467 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2007-12-04 17:26:57 +00:00
Paul Cornett
d475dd2247 keep initial size from changing when frame extents become known
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@50436 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2007-12-02 20:16:37 +00:00
Václav Slavík
937013e0fd 1. added wxEvtHandler::SafelyProcessEvent() and wxWindow::HandleWindowEvent() to correctly handle exceptions in even handlers in wxGTK
2. use HandleWindowEvent() everywhere as more obvious and convenient shortcut for GetEventHandler()->ProcessEvent(); also for consistency with wxGTK where it's required

git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@50329 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2007-11-29 17:00:58 +00:00
Paul Cornett
0ab0d0e1dc store size of WM decorations separately for each TLW, so changes to one do not affect others
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@50165 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2007-11-22 17:07:27 +00:00
Vadim Zeitlin
1510ba2c68 only call hildon_program_remove_window() when destroying a real HildonWindow (we may also have an object of a derived dialog class using a different GTK widget)
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@50071 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2007-11-19 01:59:24 +00:00
Vadim Zeitlin
64c11164f0 rename g_openDialogs to wxOpenModalDialogsCount and define it in toplevel.cpp to fix wxUniv/GTK linking issues
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@50034 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2007-11-17 20:50:44 +00:00
Vadim Zeitlin
e2f3bc4110 some Hildon integration work: use HildonProgram (for integration with the OS), HildonWindow (which has native appearance) and more native-like menus
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@49841 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2007-11-12 00:25:09 +00:00
Paul Cornett
2a74bd2763 modified fix for empty client area, first one broke sizing of some children
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@49731 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2007-11-09 05:10:41 +00:00
Paul Cornett
27242d8503 fix for blank client area after restoring a "rolled up" tlw
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@49729 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2007-11-08 19:22:23 +00:00
Robert Roebling
952a3bd46d Upport hint window improvement using custom GTK+ code
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@49715 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2007-11-07 11:12:08 +00:00
Paul Cornett
08f53168ac New "pizza" widget implementation. Window border widths now match the GtkStyle they are drawn with.
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@49687 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2007-11-06 18:14:15 +00:00
Vadim Zeitlin
ff654490b7 removed all compile- and run-time checks for GTK+ < 2.4; don't include the generic files which are now never used in wxGTK in the build
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@49660 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2007-11-05 22:31:24 +00:00
Julian Smart
013151c744 Implementation of wxSysColourChangedEvent on wxGTK
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@49492 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2007-10-27 17:38:39 +00:00