Re: [Lazarus] Taskbar button for modal forms

2010-12-26 Thread cobines
I looked at some GTK2 programs and they usually create modal dialogs through gtk_dialog_new() which sets GDK_WINDOW_TYPE_HINT_DIALOG for the window, which in turn causes _NET_WM_WINDOW_TYPE_DIALOG X11 property to be set for such a window. This is causing the taskbar button not to appear. In

Re: [Lazarus] Taskbar button for modal forms

2010-12-24 Thread Graeme Geldenhuys
On 24 December 2010 09:34, zeljko zel...@holobit.net wrote: That's not LCL-gtk2, but gtk2 bug. You are wrong. I'm running Pan naw (a NNTP news reader), I open up the settings dialog which is a modal dialog. There is only one taskbar button. Changing desktops or application focus, and clicking

Re: [Lazarus] Taskbar button for modal forms

2010-12-24 Thread zeljko
On Friday 24 December 2010 10:16, Graeme Geldenhuys wrote: On 24 December 2010 09:34, zeljko zel...@holobit.net wrote: That's not LCL-gtk2, but gtk2 bug. You are wrong. I'm running Pan naw (a NNTP news reader), I open up the No, I'm not. My devel machine have gtk2-2.12, and here it works ok

Re: [Lazarus] Taskbar button for modal forms

2010-12-24 Thread Graeme Geldenhuys
On 24 December 2010 13:06, zeljko zel...@holobit.net wrote: No, I'm not. My devel machine have gtk2-2.12, and here it works ok (no need to hide modal forms from taskbar), but under gtk2-2.20 something's wrong and modal form is shown in taskbar. Try Pan with eg. ubuntu 10.04 or 10.10 My

Re: [Lazarus] Taskbar button for modal forms

2010-12-24 Thread cobines
2010/12/24 Graeme Geldenhuys graemeg.li...@gmail.com: @to the original poster of this thread What version of GTK2 are you using? I have GTK 2.23.2. I checked some GTK2 non-LCL applications, whenever modal form is shown no additional taskbar button is created. But could it be fixed in LCLGTK2,

[Lazarus] Taskbar button for modal forms

2010-12-23 Thread cobines
Hi everyone. I have a main form application that has a taskbar button. Whenever I show another form as modal form I don't want it to have a taskbar button, because switching back to previous form is pointless as it is disabled anyway. Is there a way to set this up for the whole application, or do

Re: [Lazarus] Taskbar button for modal forms

2010-12-23 Thread Graeme Geldenhuys
On 24 December 2010 00:33, cobines cobi...@gmail.com wrote: Also, I have noticed that in LCLQT (in Linux) a taskbar button is not shown for modal forms even with ShowInTaskbar=stAlways. However in LCLGTK2 (in Linux) it is shown for modal forms, unless I set ShowInTaskbar=stNever. Is there a

Re: [Lazarus] Taskbar button for modal forms

2010-12-23 Thread zeljko
On Friday 24 December 2010 00:13, Graeme Geldenhuys wrote: On 24 December 2010 00:33, cobines cobi...@gmail.com wrote: Also, I have noticed that in LCLQT (in Linux) a taskbar button is not shown for modal forms even with ShowInTaskbar=stAlways. However in LCLGTK2 (in Linux) it is shown for