Commit Graph

218 Commits

Author SHA1 Message Date
Mart Raudsepp
3eecbda80c Don't check with CanSetTransparent from within SetTransparent if the former is supposed to be pessimistic and
latter optimistic about actual visual result.


git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@40214 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2006-07-21 01:49:18 +00:00
Mart Raudsepp
60169b7a51 [wxGTK] Be pessimistic about transparency being visually shown in CanSetTransparent. With current code
CanSetTransparent will only return TRUE if gtk+ version is at least 2.10 AND there is a running compositing
manager that implements the _NET_WM_CM_Sn EWMH spec addition proposal (at this point only metacity GL based
compositor, afaik). This is for wxAUI to be able to implement dock preview correctly. In general these behaviours
needs some discussion.


git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@40193 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2006-07-19 18:59:03 +00:00
Mart Raudsepp
07e497070e Initial wxTLW::(Can)SetTransparent support for wxGTK. The return value of SetTransparent is currently very
optimistic and doesn't use the EWMH composite manager spec update proposal (_NET_WM_CM_Sn) yet. This is on purpose
until the proposal appears in EWMH new version draft and it gets used by more composite managers.
See http://www.nabble.com/Interaction-between-applications-and-compositing-managers-t1389248.html and in the
future http://standards.freedesktop.org/wm-spec/latest/ for details.
Some code reordering is probably in order (helper function to utilsx11?) and testing on non-traditional X servers
appreciated.


git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@40192 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2006-07-19 17:18:12 +00:00
Mart Raudsepp
5503a51cac Do not set the wmclass for toplevels. This MUST be unique across the application, and GTK takes care of it for us
- don't screw it over.
Change it to set_role instead, but #if 0 out for now until some discussion about potential affect of this to
existing applications.
Toplevels that have a role set can be handled by the window manager, and store the positiong and size for them,
and restore it on later occasion. If apps do stupid things like don't have unique motif names set for different
toplevels, then this can cause problems with backwards compatibility. I am in favor of doing set_role, but it
needs a little discussion and testing.
Setting WM_CLASS is definately wrong, so just get rid of that till then.


git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@39571 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2006-06-05 17:57:37 +00:00
Paul Cornett
e7445ff8ee move some data definitions to more appropriate places
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@39348 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2006-05-26 16:12:31 +00:00
Włodzimierz Skiba
93fbbe0765 Include wx/control.h according to precompiled headers of wx/wx.h (with other minor cleaning).
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@39343 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2006-05-26 10:15:44 +00:00
Włodzimierz Skiba
9eddec696f Include wx/settings.h according to precompiled headers of wx/wx.h (with other minor cleaning).
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@39310 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2006-05-24 07:16:32 +00:00
Włodzimierz Skiba
c0badb709a Include wx/timer.h according to precompiled headers of wx/wx.h (with other minor cleaning).
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@39285 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2006-05-23 11:04:37 +00:00
Włodzimierz Skiba
fdf565feca Include wx/dialog.h according to precompiled headers of wx/wx.h (with other minor cleaning).
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@39273 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2006-05-22 20:54:04 +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
Paul Cornett
4362c7052b wxASSERT(false) --> wxFAIL
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@38992 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2006-05-03 04:12:48 +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
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
93763ad5ba wx/wxprec.h already includes wx/defs.h (with other minor cleaning).
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@38788 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2006-04-18 08:11:26 +00:00
Mart Raudsepp
2ec371fda2 wxGTK2: No need to check for __WXGTK20__ here
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@38600 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2006-04-06 12:01:04 +00:00
Włodzimierz Skiba
7e3edf927b wxTinderbox warning fix.
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@38105 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2006-03-15 10:37:24 +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
Mart Raudsepp
5d4c083326 Use correct return type for some of the signal callbacks
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@37680 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2006-02-23 10:57:17 +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
Robert Roebling
0050e023dc The focus handling change in wxTopLevelWindows broke
a few things.


git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@37597 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2006-02-15 13:26:28 +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
Mart Raudsepp
8e729eb44b GTK2: Revert one set_resizable back to set_policy for now, as we need allow_shring to be TRUE right now, due to doing
bad things(tm) to the size requests of child widgets inside the toplevel.


git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@37311 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2006-02-05 00:23:32 +00:00
Mart Raudsepp
92ed8becfc GTK2: gtk_timeout_add -> g_timeout_add; gtk_timeout_remove -> g_source_remove.
Fix gtk_frame_urgency_timer_callback return type (gint -> gboolean).


git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@37283 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2006-02-03 22:22:27 +00:00
Mart Raudsepp
43a52404ac GTK2: gtk_window_set_policy -> gtk_window_set_resizable. Slight change for resizable toplevel behaviour -
allow_shrink is now always FALSE - it being TRUE is told to be 99% of the times a bad idea, too. I think we aren't
the 1% case here


git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@37282 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2006-02-03 22:08:01 +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
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
Mart Raudsepp
8fb824187d [wxGTK] Support run-time changing of the wxFRAME_NO_TASKBAR style value
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@36117 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2005-11-07 23:06:34 +00:00
Mart Raudsepp
015dca24ca [wxGTK] Support changing the wxSTAY_ON_TOP style value run-time through wxWindow::SetWindowStyleFlag, support for
more styles to follow


git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@36116 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2005-11-07 20:00:50 +00:00
Włodzimierz Skiba
cb8cc2506b Get/SetTitle only for wxTopLevelWindow (wxGTK part).
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@36081 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2005-11-04 11:11:22 +00:00
Mart Raudsepp
8907154c1a Nuke #pragma implementation/interface's
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@35650 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2005-09-23 12:56:45 +00:00
Mart Raudsepp
ef1a9be407 [wxGTK] Remove wxTLW::RequestUserAttention related backwards compatibility hacks
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@35637 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2005-09-21 07:04:58 +00:00
Mart Raudsepp
ff33410699 [wxTLW-GTK] Don't connect to the configure_event twice. This caused double wxMoveEvents being emitted, and some other
stuff done on the same data twice.


git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@35422 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2005-09-04 10:52:11 +00:00
Mart Raudsepp
6925aa36f2 slight CPP logic fix in my wxTLW::RequestUserAttention code
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@34975 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2005-07-29 00:13:34 +00:00
Mart Raudsepp
dca92ddfbf wxGTK: Implemented wxTLW::RequestUserAttention()
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@34973 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2005-07-28 23:32:42 +00:00
Vadim Zeitlin
3b2931fbf5 ShowFullScreen() shows the window if it was still hidden (modified patch 1231514)
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@34964 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2005-07-28 22:03:40 +00:00
Włodzimierz Skiba
0a164d4c4e [1231183] 'cleanup: mismatched indentation' and other cleanings.
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@34917 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2005-07-22 18:01:46 +00:00
Václav Slavík
924b84ab94 changed exceptions handling to work under wxGTK
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@34717 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2005-06-20 08:20:50 +00:00
Mart Raudsepp
cc35003aa4 Add some missing runtime gtk+ version checks. There is more to spot.
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@34647 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2005-06-14 13:00:42 +00:00
Kevin Hock
caf3e97f15 May as well add the GTK version runtime checks for the other window styles too
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@34222 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2005-05-21 16:19:29 +00:00
Robert Roebling
81a3313aa0 Add runtime 2.4.0 check.
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@34221 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2005-05-21 16:06:35 +00:00
Kevin Hock
2fca39c9aa Add wxSTAY_ON_TOP support [Patch 1206023]
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@34207 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2005-05-21 04:15:22 +00:00
Vadim Zeitlin
865bb3251e GTK+ callbacks must have C linkage (patch 1157384)
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@32974 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2005-03-21 23:42:26 +00:00
Robert Roebling
a2ac55f54d Make wxTLW::Raise() actually bring the window to the top
and give it the WM's focus (if supported).


git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@31948 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2005-02-11 23:00:31 +00:00
Kevin Hock
1147523508 For consistency between WMs and with MSW, TOOL_WINDOW explicitly includes NO_TASKBAR
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@31574 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2005-01-24 05:07:50 +00:00
Vadim Zeitlin
8a8997c3be fixed broken logic in ShowFullScreen() (some compiler warnings are helpful)
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@30960 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2004-12-12 17:58:33 +00:00
Václav Slavík
feb1c9fb0c fixed ShowFullScreen after somebody broke it by naively using gtk_show_fullscreen without checking if the WM supports it
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@30881 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2004-12-06 22:44:39 +00:00
Kevin Hock
44ac608d14 gtk_window_[un]fullscreen only available with GTK >= 2.2
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@30818 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2004-11-30 18:13:39 +00:00
Robert Roebling
32f2ebbf2f Use GTK+ calls for fullscreen mode.
Fix bug with wrong tlw position after
    a sequence of hide/show.


git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@30664 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2004-11-20 00:00:49 +00:00
Václav Slavík
606ce80cc8 compilation fix for GTK+ 2.0
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@30279 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2004-11-04 23:57:19 +00:00