Paul Cornett
016a506eee
add GtkWidgetPath wrapper class
2018-06-14 10:41:27 -07:00
Paul Cornett
102be6a3cc
Add GtkStyleContext helper class
...
Manages ownership of GtkStyleContext and GtkWidgetPath, provides functions
for creating and querying style contexts.
2018-06-05 09:21:25 -07:00
Paul Cornett
74904281e4
Free widget path, should have been part of 900752b152
2018-05-31 11:11:21 -07:00
Paul Cornett
900752b152
Implement wxSYS_VSCROLL_X/wxSYS_HSCROLL_Y metric for wxGTK
2018-05-31 10:08:20 -07:00
Vadim Zeitlin
c0b0562533
Avoid many -Wparentheses warnings from gtk/gtk.h with gcc8
...
Add wx/gtk/private/wrapgtk.h wrapping gtk/gtk.h in pragmas disabling
these warnings and include it everywhere instead of directly including
gtk/gtk.h.
Also include wx/gtk/private/gtk2-compat.h from this wrapper header as it
was included by 90% of the files including gtk/gtk.h itself and it seems
to be better and simpler to just always include it.
2018-05-21 12:34:04 +02:00
Paul Cornett
63634be74b
Build fixes for GTK+4
2017-12-16 11:29:57 -08:00
Paul Cornett
67a28b7968
Use better approximation for gradient caption colors
...
Caption color is a better choice than black
2017-12-10 10:00:05 -08:00
Vadim Zeitlin
302fc5190a
Merge branch 'gtk2-version-checks'
...
Simplify GTK+ 2 version checks with a helper function.
See https://github.com/wxWidgets/wxWidgets/pull/614
2017-11-25 22:18:31 +01:00
Paul Cornett
17de4e31fb
Avoid using NULL GtkSettings pointer
...
Seems to happen when running tests
2017-11-25 11:00:31 -08:00
Vadim Zeitlin
d6af0236c5
Simplify GTK+ 2 version checks with a helper function
...
Use wx_is_at_least_gtk2(minor) instead of gtk_check_version(2, minor)
because it is more clear and also works as expected (i.e. returns true)
when using GTK+ 3 instead of creating difficult to notice bugs in the
code by failing the version check in this case.
See #18004 .
2017-11-23 13:15:31 +01:00
Paul Cornett
d76e627341
More use of wxFALLTHROUGH
2017-11-02 08:56:29 -07:00
Vadim Zeitlin
79773dec34
Fix harmless unused parameter warning in wxGTK3
...
Artificially use "objectName" with GTK+ < 3.20.
2017-01-16 03:38:19 +01:00
Paul Cornett
30a71c39f5
Reset static widget pointers when widgets are destroyed
...
See #17751
2016-12-18 12:10:25 -08:00
Paul Cornett
e0bcae1257
Allow initializing wxWidgets multiple times against one instance of GTK+, episode 3
...
See #17751
2016-12-18 08:11:59 -08:00
Paul Cornett
4691926791
Dispose of GtkWidgets used by wxSystemSettings
2016-12-17 10:24:29 -08:00
Paul Cornett
fbbc2170a6
Revert db9858a9
and 7d193c60
, "Allow initializing wxWidgets multiple times"
...
See #17751
2016-12-16 23:37:48 -08:00
Paul Cornett
db9858a93c
Allow initializing wxWidgets multiple times against one instance of GTK+
...
See #17751
2016-12-15 19:37:12 -08:00
Paul Cornett
7cab4bbb20
Restore line unintentionally removed in 4b8c83cb
2016-12-04 11:55:36 -08:00
Paul Cornett
4b8c83cb09
Improve wxSystemSettings::GetColour() for GTK3
...
Previous implementation was inadequate, particularly for GTK+ >= 3.20
2016-12-04 11:32:50 -08:00
Vadim Zeitlin
ec8d0c6e78
Fix recent compilation breakage by not using INT32_MAX
...
Apparently stdint.h doesn't define it on all platforms, even in 2016, so just
hardcode 2147483647 instead.
See #17629 .
2016-08-20 00:12:06 +02:00
brawer
7f10d1fa8a
Add wxSYS_CARET_{ON,OFF,TIMEOUT}_MSEC system settings
...
Provide a way to retrieve the caret blink times from wxSystemSe and implement
it for wxOSX and wxGTK.
Closes #17629 .
2016-08-19 22:55:20 +02:00
Paul Cornett
69a13d973c
Avoid "Gtk-WARNING **: State doesn't match"
...
See https://github.com/wxWidgets/wxWidgets/pull/232
2016-02-24 20:57:48 -08:00
Paul Cornett
2fe6f9ea59
avoid gtk_style_context_get_*color(), deprecated in GTK+ 3.16
2016-02-07 17:25:38 -08:00
Paul Cornett
c13a63a26a
Fix wxSystemSettings::GetColour() returning transparent colors with GTK3, closes #16255
...
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@76564 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2014-05-17 17:34:36 +00:00
Paul Cornett
2203c7e436
avoid deprecated gtk_style_context_get_font(), closes #15697
...
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@75284 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2013-11-24 18:07:20 +00:00
Paul Cornett
dfb39a3727
fix wxSystemSettings::GetColour() for wxGTK3
...
closes #15519
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@74839 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2013-09-19 05:33:55 +00:00
Vadim Zeitlin
3f66f6a5b3
Remove all lines containing cvs/svn "$Id$" keyword.
...
This keyword is not expanded by Git which means it's not replaced with the
correct revision value in the releases made using git-based scripts and it's
confusing to have lines with unexpanded "$Id$" in the released files. As
expanding them with Git is not that simple (it could be done with git archive
and export-subst attribute) and there are not many benefits in having them in
the first place, just remove all these lines.
If nothing else, this will make an eventual transition to Git simpler.
Closes #14487 .
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@74602 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2013-07-26 16:02:46 +00:00
Paul Cornett
9dc44eff02
support for GTK3
...
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@71894 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2012-06-30 20:39:06 +00:00
Dimitri Schoolwerth
a1b806b982
Replaced Ok() occurrences with IsOk() throughout trunk.
...
Additionally renamed wxOSX' private wxNativePrinterDC::Ok() function to IsOk().
Didn't deprecate the various Ok() functions: given the amount of changes already introduced in 3.0 a trivial one like this seems more suitable for after 3.0.
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@67681 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2011-05-03 16:29:04 +00:00
Paul Cornett
385e8575dd
avoid deprecated functions and direct struct access
...
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@67326 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2011-03-28 06:27:49 +00:00
Václav Slavík
fc9ab22a76
Use accessor functions instead of deprecated GTK+ macros.
...
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@67312 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2011-03-26 15:49:57 +00:00
Julian Smart
887b919bde
Added wxSYS_COLOUR_LISTBOXHIGHLIGHTTEXT to fix tree and list control selection rendering.
...
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@67018 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2011-02-25 09:38:35 +00:00
Paul Cornett
081d8d96db
Move wxColourData and wxFontData into separate files.
...
This eliminates a linking dependency that would drag in the printing
code for any program that used wxColourDialog or wxFontDialog (which
is currently all of them, due to more link dependencies...)
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@66615 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2011-01-07 05:26:57 +00:00
Vadim Zeitlin
330b318983
Compilation fix for wxUSE_FONTENUM==0 case.
...
Fix another error in minimal wxGTK buildbot build.
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@64944 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2010-07-13 14:13:07 +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
e3527f7bc5
make sure that wxSystemSettings::GetFont/GetColour return values are always valid
...
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@59820 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2009-03-24 23:13:02 +00:00
Vadim Zeitlin
9f2968ad0b
make colours used by list and tree controls more consistent with the system theme settings; also use the correct colour for the status bar ( closes #10089 )
...
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@57542 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2008-12-25 13:03:24 +00:00
Paul Cornett
53357e241e
partial support for border metrics of non-TLW
...
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@56391 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2008-10-17 04:36:09 +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
241c8d223e
button text uses fg color, not text color
...
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@53690 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2008-05-21 16:18:49 +00:00
Paul Cornett
a130a96cd3
get wxSYS_COLOUR_HIGHLIGHTTEXT from GTK+, ticket 4733
...
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@53676 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2008-05-20 15:10:11 +00:00
Paul Cornett
d32be4d596
add missing break statement
...
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@53662 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2008-05-20 03:36:33 +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
Vadim Zeitlin
3ab6b7e64c
get wxSYS_COLOUR_MENU from a menu bar and not from a button (patch 1887197)
...
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@51621 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2008-02-09 23:35:16 +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
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
a51d7c4bda
wxSYS_COLOUR_WINDOW is no longer hard-wired in wxGTK
...
Added function to reset stored system colours
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@49489 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2007-10-27 17:00:40 +00:00
Vadim Zeitlin
5595181f48
add wxSYS_DCLICK_TIME system metric constant; use it for the generic list control rename timer interval (patch 1782472)
...
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@48622 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2007-09-09 22:57:12 +00:00
Paul Cornett
37cafc6af8
fix getting frame extents on 64-bit platforms, cleanup XGetWindowProperty code
...
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@48416 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2007-08-27 17:29:36 +00:00