Commit Graph

138 Commits

Author SHA1 Message Date
zeljko
6e4efa1d2e Gtk2: fixes all problems with cursor under gtk2 >= 2.18. Patch by Ere Maijala. issue #20313
git-svn-id: trunk@34635 -
2012-01-07 09:59:16 +00:00
zeljko
91eda267c1 Gtk2: cleanup
git-svn-id: trunk@34519 -
2011-12-30 17:18:18 +00:00
paul
ecdc478798 gtk, gtk2: fix crash in SetSysColors
git-svn-id: trunk@34419 -
2011-12-26 06:59:11 +00:00
sekelsenmat
89dd7c918b Fixes bug #20195: Removes LCLIntf.Frame in favor of a cross-platform implementation for TCanvas.Frame
git-svn-id: trunk@34379 -
2011-12-24 10:52:33 +00:00
zeljko
649fbe7f16 Gtk2: Fixed ScrollWindowEx when region rect is equal clip rect.
Gtk2: TGtk2WidgetSet.ShowWindow(), changed behaviour so it's win32 and qt compatibile.Respect SW_SHOW and SW_HIDE if hand
le is PGtkWidget without window.

git-svn-id: trunk@34099 -
2011-12-11 13:58:46 +00:00
zeljko
5522c80015 Gtk2: fixed bug in TGtk2WidgetSet.DrawText() where gtk2 missed to draw text if DT_NOCLIP flag exists.
git-svn-id: trunk@34086 -
2011-12-10 15:50:29 +00:00
zeljko
8522c6ff0b Gtk2: check if window is GDKWindow before processing of updates
git-svn-id: trunk@33934 -
2011-12-04 10:41:55 +00:00
zeljko
06b32bf839 Gtk2: TGtk2WidgetSet.ScrollWindowEx() - implemented region moving when prcScroll <> nil.
git-svn-id: trunk@33932 -
2011-12-03 20:38:34 +00:00
sekelsenmat
51b8e33ac9 Removes the implementations of GetTextExtentExPoint from Qt and Gtk2 because they were wrong and because the default implementation is cross-platform and correct
git-svn-id: trunk@33506 -
2011-11-13 09:09:44 +00:00
zeljko
a00ac6dd4d Gtk2: added DebugLn when -dVerboseFocus in TGtk2WidgetSet.GetFocus
git-svn-id: trunk@33370 -
2011-11-06 13:53:41 +00:00
zeljko
7d2ebbe7a9 Gtk2: Fixed fonts leaking memory.Patch by Luca Olivetti. Issues #18727, #18707
git-svn-id: trunk@33026 -
2011-10-22 18:12:47 +00:00
sekelsenmat
1acfc93cd4 Fixes crashes related to GetForegroundWindow by rewrapping the X11 window into a GdkWindow
git-svn-id: trunk@32725 -
2011-10-07 07:11:49 +00:00
zeljko
5c685fc3d9 Qt,Gtk2: fixed drawing text with font orientation <> 0. issue #20336
git-svn-id: trunk@32491 -
2011-09-24 07:40:21 +00:00
sekelsenmat
ed98d767a0 Fixes gtk2 polygon crash
git-svn-id: trunk@31845 -
2011-08-01 09:17:05 +00:00
sekelsenmat
1805877800 Fixes region applying for Gtk2 for TForm, implements CreateEllipticRgn in gtk2 and gives better parameter names to this routine
git-svn-id: trunk@31817 -
2011-07-28 12:17:07 +00:00
sekelsenmat
4204c772ba Starts implementing CreateRoundRectRgn in gtk2
git-svn-id: trunk@31811 -
2011-07-27 15:24:43 +00:00
zeljko
e121294b60 LCL: Fixed TSaveDialog/TOpenDialog.Filter to change the file's extension when it's empty, now it's same like under Delphi. issue #7797 patch by Bart Broersma
git-svn-id: trunk@31597 -
2011-07-08 06:36:15 +00:00
paul
cb7061fa17 gtk2: when FillRect is called with a hatched/bitmap brush first fill the rect with a BkColor if BkMode = OPAQUE
git-svn-id: trunk@31472 -
2011-06-30 10:09:56 +00:00
sekelsenmat
17bfc6f175 Implements the most basic fullscreen support, for gtk2 only at the moment
git-svn-id: trunk@31470 -
2011-06-30 08:58:09 +00:00
sekelsenmat
35a781c607 Adds more TScreen properties, from patch from bug #19379 by wovan.bugger
git-svn-id: trunk@31339 -
2011-06-22 21:03:25 +00:00
mattias
44fa8c6766 LCL: made QueueAsyncCall and RemoveAsyncCalls thread safe
git-svn-id: trunk@31143 -
2011-06-09 11:00:09 +00:00
juha
4b57ac797b IDE & LCL: Move focus to editor after hitting breakpoint. Patch from August Klein, issue #15967
git-svn-id: trunk@31087 -
2011-06-05 06:22:54 +00:00
zeljko
b48287dbb8 Gtk2: fixed crashes inside TGtk2WidgetSet.ShowWindow() when form is reparented. issue #19108.
git-svn-id: trunk@30222 -
2011-04-06 15:53:27 +00:00
paul
c610a9a179 gtk2: check gtk2 code for correctness after Assert->DebugLn replacement, remove some commented DebugLn, fix caret painting error which was caused by the replacement
git-svn-id: trunk@29832 -
2011-03-14 03:22:53 +00:00
juha
4fe6258185 GTK2: fix compilation with DebugLns.
git-svn-id: trunk@29821 -
2011-03-13 19:14:13 +00:00
juha
01db3bb47c LCL (mostly), Replace Assert(False... with //DebugLn(... Now Assert can be used for its original purpose again.
git-svn-id: trunk@29820 -
2011-03-13 18:21:51 +00:00
paul
bab4aa9c08 gtk2: formatting
git-svn-id: trunk@29710 -
2011-03-03 07:32:07 +00:00
paul
7a9b188e2c lcl, win32, wince, qt, gtk2, carbon: implement OffsetRGN winapi compatible function
git-svn-id: trunk@29697 -
2011-03-01 07:37:42 +00:00
paul
94fa55e000 gtk2: fix TGtk2WidgetSet.SetWindowRgn with NULL region
git-svn-id: trunk@29644 -
2011-02-22 07:15:01 +00:00
zeljko
b8d5b4793d Gtk2: introduced TGtkDeviceContext.ClipRect, now gtk_paint_xxx() respects clipping rectangle. issue #14660
git-svn-id: trunk@29537 -
2011-02-13 20:26:48 +00:00
zeljko
af4efa5544 Gtk2: fixed font calculation when lfHeight < 0.
git-svn-id: trunk@28646 -
2010-12-08 07:44:59 +00:00
zeljko
d500a9f47b Gtk2: use pango_font_description_set_absolute_size() instead of pango_font_description_set_size().Now font sizes are same like in qt and gtk under linux.
git-svn-id: trunk@28446 -
2010-11-24 10:07:46 +00:00
zeljko
9815e521d3 Gtk2: reset LastWFPResult used by WindowFromPoint() in case when shown/hidden,enabled/disabled,moved,resized widget overlaps current cache.Fixes issue #17389
git-svn-id: trunk@28288 -
2010-11-17 08:59:09 +00:00
paul
019f77c33d gtk2: don't change the focus on GetCapture call. gtk_grab_add do all the required job
win32: improve the debugging

git-svn-id: trunk@28094 -
2010-11-05 10:56:38 +00:00
zeljko
65e922cbef Gtk2: gtk2lcl now uses gtk_main_context_* instead of deprecated gtk_main_*. In case someone want to use old gtk_main_* iterations there's USE_GTK_MAIN_OLD_ITERATION define.
git-svn-id: trunk@27896 -
2010-10-27 07:31:11 +00:00
zeljko
1c4a0cc726 Gtk2: changed the way how main event loop iterates BUT ONLY VIA -dUSE_GTK_MAIN_CONTEXT_ITERATION until it's stable enough.
Now PostMessage() work correct when messages arrives from other threads. fixes #17548 and probably more issues with gtk2 threads usage.

git-svn-id: trunk@27829 -
2010-10-24 11:57:49 +00:00
zeljko
afb190401d Gtk2: fixed setCapture(), now it uses new way of capturing, old can be used with -dGTK2_USE_OLD_CAPTURE.
fixed unwanted focus grab of THintWindow.
fixed bug when scrollbar button double clicked, we need 2 clicks to focus our client area. Fixed bugs #13878 #17596.

git-svn-id: trunk@27638 -
2010-10-10 15:26:45 +00:00
zeljko
f80a1aaa04 Gtk2: fixed result of TGtk2WidgetSet.EnableWindow()
git-svn-id: trunk@27547 -
2010-10-02 16:39:37 +00:00
zeljko
13bd9d7378 Qt,Gtk2: corrected return of Size.cx, simplified and fixed code in qt implementation about Size.cx returned values.
git-svn-id: trunk@27416 -
2010-09-20 06:54:25 +00:00
zeljko
f7c1c5ee34 Gtk2: implemented TGtk2WidgetSet.GetTextExtentExPoint(), pango_extents_to_pixels() is mimicked by theo's pango_extents_to_pixels_wa() from issue #16908.
git-svn-id: trunk@27412 -
2010-09-19 15:31:09 +00:00
zeljko
dfbf7ae956 Gtk2: implemented GetBkColor(). part of #14792.
git-svn-id: trunk@27391 -
2010-09-17 06:38:24 +00:00
zeljko
2940387350 Gtk2: fixed result from WindowFromPoint(). fixes first part of #17389, still to do cases of showing/hiding, enabling/disabling, moving/resizing under mouse when it's not moved.
git-svn-id: trunk@27311 -
2010-09-11 17:25:58 +00:00
mattias
dc78f11aef fixed typo cant
git-svn-id: trunk@27305 -
2010-09-11 14:06:32 +00:00
mattias
369aa3055c fixed typo dont
git-svn-id: trunk@27304 -
2010-09-11 14:05:21 +00:00
zeljko
5100ba4cda Gtk2: TGtk2WidgetSet.SetWindowPos() implemented SWP_NOMOVE & SWP_NOSIZE
git-svn-id: trunk@27280 -
2010-09-07 19:06:59 +00:00
mattias
81f8e13285 gtk2 intf: do not send LM_SETFOCUS to active form to prevent resetting ActiveControl
git-svn-id: trunk@26500 -
2010-07-07 12:18:20 +00:00
zeljko
9550000749 Gtk2: fixed gtk2winapi.inc %MainUnit name
git-svn-id: trunk@26372 -
2010-06-30 21:26:33 +00:00
mattias
d130d94e34 LCL: debugging
git-svn-id: trunk@26341 -
2010-06-30 06:53:15 +00:00
blikblum
3d4516b088 lcl: implement GetCurrentObject for Gtk, Gtk2, Qt, Carbon and WinCe. Part of 14792
git-svn-id: trunk@26265 -
2010-06-22 20:36:58 +00:00
marc
5047e33c0a gtk-splitup: cleanup compiler hints, removed unsued variables
git-svn-id: trunk@26013 -
2010-06-09 23:08:38 +00:00