blikblum
d26811409a
gtk2: replace the deprecated gtk_object_get/set_data by g_object_get/set_data
...
git-svn-id: trunk@37751 -
2012-06-23 18:25:44 +00:00
mattias
ece462c2a0
gtk2: increased big icon size SM_CXICON,SM_CYICON to 128
...
git-svn-id: trunk@37691 -
2012-06-19 12:07:54 +00:00
juha
799d77f145
Revert "LCL: Fix font size when there is a number in name. Issue #21775 ". Broke font height calculation.
...
git-svn-id: trunk@37515 -
2012-06-04 16:19:58 +00:00
juha
bf78f3cde3
LCL: Fix font size when there is a number in name. Includes 2 patches from cobines. Issue #21775
...
git-svn-id: trunk@37469 -
2012-05-31 19:20:33 +00:00
mattias
3bcdf39bcb
gtk2 intf: fixed gtk2GrabNotify, added comment
...
git-svn-id: trunk@37290 -
2012-05-15 11:41:09 +00:00
juha
38afa2826c
Revert r37258 #dee0c332d7 because font bold style stopped working with GTK2.
...
git-svn-id: trunk@37279 -
2012-05-14 19:13:14 +00:00
juha
dee0c332d7
LCL: Fix wrong font size when there are numbers in name, issue #21775 , patch from cobines
...
git-svn-id: trunk@37258 -
2012-05-12 13:40:10 +00:00
mattias
2cd8c83f80
gtk2: debugging for liboverlay grab_add/current problem
...
git-svn-id: trunk@37243 -
2012-05-10 14:58:41 +00:00
mattias
1a21dd05cd
gtk2: verbosity for ubuntu liboverlay mouse capture bug
...
git-svn-id: trunk@37034 -
2012-04-26 13:58:47 +00:00
mattias
2a2ff5bd9d
gtk2 intf: cleaned up releasecapture
...
git-svn-id: trunk@37033 -
2012-04-26 12:48:50 +00:00
mattias
53e5a4ea10
gtk2 intf: clean up old mouse capture
...
git-svn-id: trunk@37032 -
2012-04-26 12:15:42 +00:00
zeljko
5c73765c8b
Gtk2: do not draw text background if colormap isn't assigned. Second part of issue #21863
...
git-svn-id: trunk@37031 -
2012-04-26 08:03:59 +00:00
zeljko
d9d4cafa40
Gtk2: fixed drawing of text with solid brush. issue #21863
...
git-svn-id: trunk@37029 -
2012-04-26 06:48:06 +00:00
zeljko
92224c7798
Gtk2: fixed retreiving font name from TGtk2WidgetSet.GetObject() when font is default. issue #21828
...
git-svn-id: trunk@36967 -
2012-04-22 08:11:43 +00:00
zeljko
ca6e3b563c
Gtk2: fixed text background drawing in TGtk2WidgetSet.ExtTextOut() when BkMode = OPAQUE.issue #19384
...
git-svn-id: trunk@36929 -
2012-04-20 13:45:52 +00:00
mattias
38c771eeb4
gtk2 intf: fixed TGtk2WSCustomTabControl.GetDefaultClientRect to check if gtknotebook has a page
...
git-svn-id: trunk@36905 -
2012-04-19 09:58:51 +00:00
mattias
eec588e537
gtk2: removed OldCreateStatusBarPanel
...
git-svn-id: trunk@36789 -
2012-04-15 11:08:57 +00:00
mattias
8e2c46f2b0
gtk2: fixed Gtk2WidgetSet.ClipboardGetData mem leak on stream write error
...
git-svn-id: trunk@36788 -
2012-04-15 11:05:31 +00:00
mattias
2fd5ebfb38
gtk2: clean up
...
git-svn-id: trunk@36787 -
2012-04-15 10:59:36 +00:00
mattias
0c274a2e41
gtk2: less hints
...
git-svn-id: trunk@36770 -
2012-04-14 11:18:45 +00:00
mattias
5b350609ab
gtk2: less hints
...
git-svn-id: trunk@36761 -
2012-04-14 10:27:10 +00:00
zeljko
3cd59126ec
Gtk2: allow changing state to maximized if we are iconified or fullscreen
...
git-svn-id: trunk@36410 -
2012-03-29 07:13:11 +00:00
zeljko
2c50b772e5
Gtk2: allow back from fullscreen to normal window
...
git-svn-id: trunk@36409 -
2012-03-29 07:10:38 +00:00
zeljko
5b126c909b
Qt, Gtk2: check if our Str:PChar param is nil, so do not any translation in GetTextExtentPoint() or GetTextExtentExPoint()
...
git-svn-id: trunk@36111 -
2012-03-17 11:33:26 +00:00
zeljko
32c73d9d34
Gtk2,Qt: fixed returning value of GetTextExtentPoint() when string is empty.
...
git-svn-id: trunk@36108 -
2012-03-17 11:19:29 +00:00
zeljko
3068129128
LCL: added SM_LCLMAXIMIZEDWIDTH and SM_LCLMAXIMIZEDHEIGHT to system metrics rules to get accurate size of maximized window until we fix difference between forms frame rect and client rect. issue #21119
...
git-svn-id: trunk@36106 -
2012-03-17 10:46:34 +00:00
zeljko
3ca38dadcd
Qt,Gtk2,Gtk: prepared winapi GetSystemMetrics to get accurate measures for maximized and fullscreen forms.part of #21119
...
git-svn-id: trunk@36103 -
2012-03-17 08:48:39 +00:00
zeljko
9652b47265
Gtk2: do not assert, check if we are GtkScrolledWindow inside TGtk2WidgetSet.InvalidateRect
...
git-svn-id: trunk@35883 -
2012-03-11 13:27:56 +00:00
zeljko
c19754b22d
Gtk2, Qt: InvalidateRect() should offset by scrollbars position, so it's compatibile with win32. issue #21364
...
git-svn-id: trunk@35881 -
2012-03-11 12:34:35 +00:00
zeljko
5405c2b6db
Gtk2: always increase SM_CYMENU by border size
...
git-svn-id: trunk@35705 -
2012-03-04 15:33:36 +00:00
zeljko
aaa6a65283
Gtk2: added missing result in gtk2trayicon, cleanup of unused variables, fixed compiler warnings
...
git-svn-id: trunk@35675 -
2012-03-03 16:13:08 +00:00
zeljko
ac502d8486
Gtk2: increase SM_CYMENU result by border shadows if compositing manager is running
...
git-svn-id: trunk@35626 -
2012-02-29 19:11:14 +00:00
zeljko
1c24c910b6
Gtk2: fixed crash in gtk2.GetWindowRect. issue #21382
...
git-svn-id: trunk@35606 -
2012-02-27 11:31:06 +00:00
zeljko
0eca80ca44
Gtk2: fixed TGtk2WidgetSet.GetWindowRect wrong result.
...
git-svn-id: trunk@35602 -
2012-02-26 20:08:39 +00:00
zeljko
a31497d03b
Gtk2: fixed wrong result from ScreenToClient for child controls. issue #21366
...
git-svn-id: trunk@35574 -
2012-02-24 09:39:05 +00:00
zeljko
f3ce22c442
Gtk2: removed stalled writeln()
...
git-svn-id: trunk@35524 -
2012-02-21 09:04:37 +00:00
zeljko
df39c84ef2
Qt,Gtk2: fixed result of LCLIntf.IsWindowEnabled, it should check if handle is visible too.
...
git-svn-id: trunk@35523 -
2012-02-21 07:48:50 +00:00
zeljko
1e4d20ff14
Gtk2: fixed bug in TGtk2WidgetSet.GetActiveWindow where it can return handle of invisible gdkwindow.
...
git-svn-id: trunk@35522 -
2012-02-21 07:39:57 +00:00
zeljko
1a8e151f60
Gtk2: TGtk2WidgetSet.InvalidateRect() do not update widget if we are already inside paint event.
...
git-svn-id: trunk@35402 -
2012-02-16 16:32:22 +00:00
zeljko
447396f4b7
Gtk2: rewritten TGtk2WidgetSet.EnumFontFamiliesEx to use pure pango font families.Old behaviour (raw X11 font naming) can be reached with -dGTK2OLDENUMFONTFAMILIES. part of issue #18795
...
git-svn-id: trunk@35400 -
2012-02-16 15:56:36 +00:00
zeljko
ec1b2bc680
Gtk2: removed wrong debugln
...
git-svn-id: trunk@35399 -
2012-02-16 10:57:13 +00:00
zeljko
785b59e3ec
Gtk2: implemented SM_CXBORDER and SM_CYBORDER system metrics
...
git-svn-id: trunk@35308 -
2012-02-11 17:49:56 +00:00
zeljko
38cd170673
Gtk2: implemented SM_CXMENUCHECK and SM_CYMENUCHECK system metrics.
...
git-svn-id: trunk@35304 -
2012-02-11 13:41:05 +00:00
zeljko
93bcdf9640
Gtk2: implemented SM_CXMENUSIZE and SM_CYMENUSIZE system metrics.
...
git-svn-id: trunk@35303 -
2012-02-11 13:36:30 +00:00
zeljko
7cf5618863
Gtk2: implemented SM_CYMENU system metric.
...
git-svn-id: trunk@35301 -
2012-02-11 12:51:00 +00:00
zeljko
045a3558a4
Gtk2: implemented SM_CYCAPTION system metrics.
...
git-svn-id: trunk@35300 -
2012-02-11 11:56:20 +00:00
mattias
fa6daa7243
gtk2 intf: clean up
...
git-svn-id: trunk@35032 -
2012-01-30 09:22:54 +00:00
martin
53db968eab
GTK2 ScrollWindowEx / flag and prcUpdate
...
git-svn-id: trunk@34889 -
2012-01-23 20:33:24 +00:00
martin
de7c2a8a60
GTK2 ScrollWindowEx / rewrite
...
git-svn-id: trunk@34878 -
2012-01-22 20:41:38 +00:00
mattias
6f4c4b5d3c
gtk2: clean up
...
git-svn-id: trunk@34876 -
2012-01-22 20:25:54 +00:00
martin
b46ea85bc3
GTK2 ScrollWindowEx
...
git-svn-id: trunk@34872 -
2012-01-22 18:12:29 +00:00
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