Commit Graph

106 Commits

Author SHA1 Message Date
blikblum
30af23279d gtk2: don't call FreeAllStyles in AppTerminate. It's called on Destroy
git-svn-id: trunk@30248 -
2011-04-09 14:58:51 +00:00
juha
b2fbbd9b34 LCL: Fix the rest of Assert to DebugLn conversion.
git-svn-id: trunk@29837 -
2011-03-14 11:54:38 +00:00
paul
f0bce37226 interfaces: remove AssignSelf method
git-svn-id: trunk@29827 -
2011-03-14 02:17:55 +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
zeljko
a5cebb65d2 Gtk2: renamed Gtk1Create & Gtk1Destroy to Gtk2 counterparts.
git-svn-id: trunk@29536 -
2011-02-13 19:16:43 +00:00
paul
c2aca4cd85 lcl: replace TWidgetSet.AppHandle function with a readwrite property
git-svn-id: trunk@29278 -
2011-02-01 04:10:57 +00:00
zeljko
cdeb7f8f68 Gtk2: improved gtk2 performance in case of pointer motions by using GDK_POINTER_MOTION_HINT_MASK.Patch by Henry Vermaak. Fixes issue #14936
git-svn-id: trunk@28107 -
2010-11-06 13:10:17 +00:00
paul
d5c63f7aad gtk2: move focus-in after handler to focus-in handler. This cause interface to handle focus switches inside the focus events properly (fixes bug #17801)
git-svn-id: trunk@28104 -
2010-11-06 04:18:42 +00:00
paul
b385553fb5 qt, gtk, carbon: send LM_MOUSEENTER(LEAVE) instead of CM_MOUSEENTER(LEAVE). CM_ messages must be sent by LCL, not a widgetset
git-svn-id: trunk@27934 -
2010-10-29 04:50:26 +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
400281ddea Gtk2: fixed another misusage of IntersectRect
git-svn-id: trunk@27880 -
2010-10-26 12:00:12 +00:00
zeljko
21a209e959 Gtk2: fixed crash because of misusage/fpc bug in IntersectRect.
git-svn-id: trunk@27879 -
2010-10-26 11:53:32 +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
9368dd2ccb Gtk2: fixed compilation with -dRawimageConsistencyCheks and -dVerboseStretchCopyArea
git-svn-id: trunk@27651 -
2010-10-11 09:21:28 +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
mattias
369aa3055c fixed typo dont
git-svn-id: trunk@27304 -
2010-09-11 14:05:21 +00:00
zeljko
67fa623ccb Gtk2: check if form is designing when using gtk_window_set_keep_above()
git-svn-id: trunk@26765 -
2010-07-21 20:11:48 +00:00
paul
a3dac0b6df lcl: redo context menu message handling:
- when called by keyboard pass -1, -1 coords
  - remove child->parent loop from LCL to widgetsets (win32 and wince do this automatically, qt do it too if mouse propagation is on)
  - don't show parent context menu if child has own standard menu (like TEdit)
qt: redo mouse handling, turn on mouse propagation and mouse tracking for most of widgets, stop propagation in event filters
gtk2: implement context menu loop
widgetsets: remove LM_PRESSED, LM_RELEASED messages (LCL does not use them and they are not needed for any compatbility reasons)

git-svn-id: trunk@26637 -
2010-07-14 08:47:02 +00:00
zeljko
db22564763 Gtk2: fixed mouse capture locks. fixes #15271
git-svn-id: trunk@26430 -
2010-07-02 21:19:26 +00:00
mattias
d130d94e34 LCL: debugging
git-svn-id: trunk@26341 -
2010-06-30 06:53:15 +00:00
marc
46ebaabc7a gtk-splitup: merged gtk source into gtk2, removed gtk1 ifdefs
git-svn-id: trunk@26012 -
2010-06-09 23:01:52 +00:00
zeljko
891890b3ab Gtk2: implemented AppRemoveStayOnTop, AppRestoreStayOnTop also normalize stayOnTop in appactivate & appdeactivate.
git-svn-id: trunk@25540 -
2010-05-20 11:42:56 +00:00
zeljko
127ef52c41 Gtk2: changed AppBringToFront to do same job as with win32 and qt.
git-svn-id: trunk@25538 -
2010-05-20 11:16:21 +00:00
zeljko
a5e15bfc90 Gtk2: fixed infinite loops with windowstate change events.WindowState callback is handled by GDK_WINDOW_STATE event instead of signal.
Added new member (TGdkEventWindowState) into TWidgetInfo to track real changes of window state. fixes #16505.
Prevented recursion by AppMinimize by checking current window state in TWidgetInfo.FormWindowState.

git-svn-id: trunk@25509 -
2010-05-19 09:00:39 +00:00
zeljko
7bb68e7dfa Gtk,Gtk2: reworked app activate / app deactivate, now it works fine, added AppBringToFront. fixes #15859
LCL: removed workaround in TApplication.Deactivate which was there only because of gtk & gtk2.

git-svn-id: trunk@25478 -
2010-05-17 10:59:41 +00:00
zeljko
efdcd83830 Gtk2: minimize & restore designer forms in AppMinimize & AppRestore
git-svn-id: trunk@25448 -
2010-05-15 20:31:05 +00:00
zeljko
2773d06487 Qt,Gtk2: added minimize/restore ability to get consistent behaviour on all platforms. Patch by Flavio Etrusco modified by me for qt. fixes #13919
git-svn-id: trunk@25407 -
2010-05-14 19:12:02 +00:00
paul
eef0d16e78 lcl: fix LM_CONTEXTMENU handling - use another message structure (windows compatible). also hopefully fixes 64bit compilation (issue #0016000)
git-svn-id: trunk@24011 -
2010-03-15 14:23:02 +00:00
mattias
510d76765c gtk2 intf: set ExceptionMask exZeroDivide,exInvalidOp, bug #15840
git-svn-id: trunk@23804 -
2010-02-28 21:38:40 +00:00
paul
93bdc30f72 gtk2: handle 'show-help' widget signal for WhatsThis (shift+F1) help type (currently only Application.OnHelp event is executed)
git-svn-id: trunk@20832 -
2009-07-11 10:30:58 +00:00
paul
8ed7281c00 gtk: use more generic code to set menuitem shortcuts and caption, redo SetLabelCaption for gtk2
git-svn-id: trunk@20027 -
2009-05-18 13:04:06 +00:00
paul
86563b35e6 gtk2: use same position calculation for LM_CONTEXTMENU as in other widgetsets
git-svn-id: trunk@20021 -
2009-05-18 03:02:54 +00:00
paul
d154466c76 gtk2: handle LM_CONTEXTMENU message triggered by "menu key" press
git-svn-id: trunk@20020 -
2009-05-18 02:56:42 +00:00
paul
c92f6641d1 lcl: replace TWidgetSet.LoadStockPixmap by ThemeServices.GetStockImage
git-svn-id: trunk@19769 -
2009-05-02 15:36:56 +00:00
paul
49a493794c gtk, gtk2: initial support for native alpha bitmaps (using pixbuf as storage) tested on windows only
git-svn-id: trunk@19503 -
2009-04-19 09:46:08 +00:00
paul
2ac96eaa20 gtk2: use more stock icons in TGtk2WidgetSet.LoadStockPixmap
git-svn-id: trunk@19456 -
2009-04-16 14:11:36 +00:00
paul
a6dfeecb17 gtk2: use better match stock images for bitbtns
git-svn-id: trunk@19450 -
2009-04-16 07:58:10 +00:00
mattias
26b2693ef7 gtk1+2 intf: key handling: fixed handling result of DeliverMessage, bug #9638
git-svn-id: trunk@18577 -
2009-02-05 10:30:42 +00:00
paul
7714255166 gtk2: use Set8087CW on windows since it crashes on setting an icon and exception mask method from math unit does not mask this one error
git-svn-id: trunk@15973 -
2008-08-06 15:37:48 +00:00
mattias
e03b7c5869 codetools: identifier completion: do not add semicolon twice
git-svn-id: trunk@15846 -
2008-07-23 11:59:52 +00:00
mattias
2996a3c332 rename COPYING.modifiedLGPL to COPYING.modifiedLGPL.txt
git-svn-id: trunk@15834 -
2008-07-22 09:48:15 +00:00
mattias
1207c0e3f4 gtk2 intf: replaced exception mask with functions from math unit
git-svn-id: trunk@15785 -
2008-07-15 17:47:30 +00:00
mattias
976269a47b gtk2 intf: use Set8087CW in AppInit to avoid crash on ubuntu human theme
git-svn-id: trunk@15753 -
2008-07-11 17:19:30 +00:00
paul
a97246aad9 gtk2: set fpu control word globally for gtk2-win32, or it will crash on setting form or application icon. remove old places where I did that.
git-svn-id: trunk@15750 -
2008-07-11 15:46:00 +00:00
sekelsenmat
95ed4902e7 Just fixes variable initialization and improves identation.
git-svn-id: trunk@14852 -
2008-04-17 00:58:24 +00:00
paul
11de6af8b9 decapitalize all procedure and function keywords to make all looks the same
git-svn-id: trunk@14375 -
2008-03-03 08:06:26 +00:00
sekelsenmat
2c82246914 Separates CheckBox on gtk2 and further removes clistbox.
git-svn-id: trunk@14179 -
2008-02-18 08:02:43 +00:00
mattias
14fe68ea0b gtk intf: moved FinishCreateHandle to gtk1 - it is usable for gtk1+2
git-svn-id: trunk@13642 -
2008-01-05 22:51:53 +00:00
mattias
ace1f24e16 gtk intf: added TGtkWidgetSet.FinishCreateHandle with some standard setups for non LCL gtk controls
git-svn-id: trunk@13641 -
2008-01-05 22:49:14 +00:00
paul
c8d52d15d6 gtk:
- remove FinishComponentCreate: code moved to appropriate ws classes
- remove HookSignals (same reason)

git-svn-id: trunk@13537 -
2007-12-30 18:15:53 +00:00
paul
9d15123d91 - gtk: move dialogs related stuff to gtkwsdialogs and gtk2wsdialogs
- gtk complete moving CreateComponent code to appropriate classes
- lcl remove CreateComponent method since there is no more need in it

git-svn-id: trunk@13478 -
2007-12-27 09:51:27 +00:00
paul
2611c3b386 lcl: reduce amount of hints and warnings from fpc
git-svn-id: trunk@13335 -
2007-12-15 06:39:19 +00:00
marc
28578c3a91 * Started with object based GDI
* More splitup of gtk1/gtk2 code
* Fixed restore of GC after linedrawing
* Enabled desktop grabbing for gtk1

git-svn-id: trunk@12975 -
2007-11-23 00:07:45 +00:00
paul
7309af00e9 gtk2: playing around transparent GtkFixed (no window + eventbox)
git-svn-id: trunk@12933 -
2007-11-20 03:21:36 +00:00
marc
da0fae1075 * Splitup somg gtk1/2 component creation code
git-svn-id: trunk@12886 -
2007-11-16 00:49:10 +00:00
marc
13910703cb = Renamed gtkobject includes to gtkwidgetset (that's the name of the class anyway)
+ added gtk1widgetset to make it possible to move ifdefed implementations

git-svn-id: trunk@12885 -
2007-11-15 23:15:11 +00:00