Home » Eclipse Projects » Nebula » CalendarCombo on GTK
CalendarCombo on GTK [message #52497] |
Sat, 10 May 2008 10:05 |
Eclipse User |
|
|
|
Originally posted by: mehow.infogenia.pl
Hi,
Is CalendarCombo widget supposed to work on GTK? When I try it (code
from HEAD) all I get is an empty combo and no calendar. It looks like
the MouseDown event on a button is not reported at all (listener code
inside CalendarCombo class is not called).
Thanks,
Michal
|
|
| |
Re: CalendarCombo on GTK [message #52551 is a reply to message #52524] |
Sat, 10 May 2008 13:35 |
Eclipse User |
|
|
|
Originally posted by: mehow.infogenia.pl
This is a multi-part message in MIME format.
--------------050100070407080605060404
Content-Type: text/plain; charset=ISO-8859-2; format=flowed
Content-Transfer-Encoding: 8bit
Hello Emil,
My code is very simple:
Display display = new Display ();
Shell shell = new Shell (display);
shell.setSize(200, 400);
shell.setLayout(new GridLayout());
CalendarCombo combo = new CalendarCombo(shell, SWT.READ_ONLY);
//combo.setDate(new Date());
shell.open();
while (!shell.isDisposed())
if (!display.readAndDispatch())
display.sleep();
display.dispose();
The problem seems to be related to the fact that MouseDown listener
attached to combo in init method is never called, no matter if I click
on a button or on a text field.
Maybe it's a known SWT limitation on GTK?.
Searching...
Ok, I found it:
https://bugs.eclipse.org/bugs/show_bug.cgi?id=206682
I've been running it on an older version of SWT. It started to work when
I switched to a newer version.
Unfortunately there seems to be another small problem, which is probably
related to the fact that
mCombo.setVisibleItemCount(0);
is being ignored:
https://bugs.eclipse.org/bugs/show_bug.cgi?id=71262
Together with small cell sizes / big fonts (which I suppose can be
adjusted using ISettings?) it makes the widget... well... ugly :(
(see attached screenshots)
Michal
Emil Crumhorn wrote:
> It has not been tested recently on GTK (after some major changes), and
> unfortunately I currently have no way of testing it either as I don't have a
> Linux box available. If you are willing and able and find the error please
> send me any info and I'll implement whatever fix is necessary. Otherwise I
> will just have to get to it when I can test it on GTK.
>
> Could you please post the code you use for creating the CalendarCombo so I
> can see what flags etc you are using?
>
> Thanks,
> Emil
>
> "Micha
|
|
| |
Re: CalendarCombo on GTK [message #52605 is a reply to message #52578] |
Sun, 11 May 2008 07:29 |
Thomas Schindl Messages: 6651 Registered: July 2009 |
Senior Member |
|
|
Hi,
You could use a Virtual Machine like Virtual Box which is free. I'm
using this on OS-X together with the latest Ubuntu and it works great.
Tom
Emil Crumhorn schrieb:
> Thanks for the screenshots and code.
>
> I agree, that looks absolutely awful. Hopefully I can get GTK running on
> perhaps a live cd and see if I can fix it, as that's definitely nothing I
> could fix "blindly". I'll make an update when I get it fixed.
>
> Regards,
> Emil
>
> "Micha³ Tkacz" <mehow@infogenia.pl> wrote in message
> news:g048an$v5d$1@build.eclipse.org...
>> Hello Emil,
>>
>> My code is very simple:
>>
>> Display display = new Display ();
>> Shell shell = new Shell (display);
>> shell.setSize(200, 400);
>>
>> shell.setLayout(new GridLayout());
>> CalendarCombo combo = new CalendarCombo(shell, SWT.READ_ONLY);
>> //combo.setDate(new Date());
>> shell.open();
>>
>> while (!shell.isDisposed())
>> if (!display.readAndDispatch())
>> display.sleep();
>>
>> display.dispose();
>>
>> The problem seems to be related to the fact that MouseDown listener
>> attached to combo in init method is never called, no matter if I click
>> on a button or on a text field.
>>
>> Maybe it's a known SWT limitation on GTK?.
>> Searching...
>>
>> Ok, I found it:
>> https://bugs.eclipse.org/bugs/show_bug.cgi?id=206682
>>
>> I've been running it on an older version of SWT. It started to work when
>> I switched to a newer version.
>>
>> Unfortunately there seems to be another small problem, which is probably
>> related to the fact that
>>
>> mCombo.setVisibleItemCount(0);
>>
>> is being ignored:
>> https://bugs.eclipse.org/bugs/show_bug.cgi?id=71262
>>
>> Together with small cell sizes / big fonts (which I suppose can be
>> adjusted using ISettings?) it makes the widget... well... ugly :(
>> (see attached screenshots)
>>
>> Michal
>>
>> Emil Crumhorn wrote:
>>> It has not been tested recently on GTK (after some major changes), and
>>> unfortunately I currently have no way of testing it either as I don't
>>> have a
>>> Linux box available. If you are willing and able and find the error
>>> please
>>> send me any info and I'll implement whatever fix is necessary. Otherwise
>>> I
>>> will just have to get to it when I can test it on GTK.
>>>
>>> Could you please post the code you use for creating the CalendarCombo so
>>> I
>>> can see what flags etc you are using?
>>>
>>> Thanks,
>>> Emil
>>>
>>> "Micha³ Tkacz" <mehow@infogenia.pl> wrote in message
>>> news:g03s0n$tlc$1@build.eclipse.org...
>>>> Hi,
>>>>
>>>> Is CalendarCombo widget supposed to work on GTK? When I try it (code
>>>> from
>>>> HEAD) all I get is an empty combo and no calendar. It looks like the
>>>> MouseDown event on a button is not reported at all (listener code inside
>>>> CalendarCombo class is not called).
>>>>
>>>> Thanks,
>>>>
>>>> Michal
>>>
>>
>
>
--
B e s t S o l u t i o n . at
------------------------------------------------------------ --------
Tom Schindl JFace-Committer
------------------------------------------------------------ --------
|
|
| | | |
Re: CalendarCombo on GTK [message #589671 is a reply to message #52524] |
Sat, 10 May 2008 13:35 |
Eclipse User |
|
|
|
Originally posted by: mehow.infogenia.pl
This is a multi-part message in MIME format.
--------------050100070407080605060404
Content-Type: text/plain; charset=ISO-8859-2; format=flowed
Content-Transfer-Encoding: 8bit
Hello Emil,
My code is very simple:
Display display = new Display ();
Shell shell = new Shell (display);
shell.setSize(200, 400);
shell.setLayout(new GridLayout());
CalendarCombo combo = new CalendarCombo(shell, SWT.READ_ONLY);
//combo.setDate(new Date());
shell.open();
while (!shell.isDisposed())
if (!display.readAndDispatch())
display.sleep();
display.dispose();
The problem seems to be related to the fact that MouseDown listener
attached to combo in init method is never called, no matter if I click
on a button or on a text field.
Maybe it's a known SWT limitation on GTK?.
Searching...
Ok, I found it:
https://bugs.eclipse.org/bugs/show_bug.cgi?id=206682
I've been running it on an older version of SWT. It started to work when
I switched to a newer version.
Unfortunately there seems to be another small problem, which is probably
related to the fact that
mCombo.setVisibleItemCount(0);
is being ignored:
https://bugs.eclipse.org/bugs/show_bug.cgi?id=71262
Together with small cell sizes / big fonts (which I suppose can be
adjusted using ISettings?) it makes the widget... well... ugly :(
(see attached screenshots)
Michal
Emil Crumhorn wrote:
> It has not been tested recently on GTK (after some major changes), and
> unfortunately I currently have no way of testing it either as I don't have a
> Linux box available. If you are willing and able and find the error please
> send me any info and I'll implement whatever fix is necessary. Otherwise I
> will just have to get to it when I can test it on GTK.
>
> Could you please post the code you use for creating the CalendarCombo so I
> can see what flags etc you are using?
>
> Thanks,
> Emil
>
> "Micha
|
|
| |
Re: CalendarCombo on GTK [message #589687 is a reply to message #52578] |
Sun, 11 May 2008 07:29 |
Thomas Schindl Messages: 6651 Registered: July 2009 |
Senior Member |
|
|
Hi,
You could use a Virtual Machine like Virtual Box which is free. I'm
using this on OS-X together with the latest Ubuntu and it works great.
Tom
Emil Crumhorn schrieb:
> Thanks for the screenshots and code.
>
> I agree, that looks absolutely awful. Hopefully I can get GTK running on
> perhaps a live cd and see if I can fix it, as that's definitely nothing I
> could fix "blindly". I'll make an update when I get it fixed.
>
> Regards,
> Emil
>
> "Micha³ Tkacz" <mehow@infogenia.pl> wrote in message
> news:g048an$v5d$1@build.eclipse.org...
>> Hello Emil,
>>
>> My code is very simple:
>>
>> Display display = new Display ();
>> Shell shell = new Shell (display);
>> shell.setSize(200, 400);
>>
>> shell.setLayout(new GridLayout());
>> CalendarCombo combo = new CalendarCombo(shell, SWT.READ_ONLY);
>> //combo.setDate(new Date());
>> shell.open();
>>
>> while (!shell.isDisposed())
>> if (!display.readAndDispatch())
>> display.sleep();
>>
>> display.dispose();
>>
>> The problem seems to be related to the fact that MouseDown listener
>> attached to combo in init method is never called, no matter if I click
>> on a button or on a text field.
>>
>> Maybe it's a known SWT limitation on GTK?.
>> Searching...
>>
>> Ok, I found it:
>> https://bugs.eclipse.org/bugs/show_bug.cgi?id=206682
>>
>> I've been running it on an older version of SWT. It started to work when
>> I switched to a newer version.
>>
>> Unfortunately there seems to be another small problem, which is probably
>> related to the fact that
>>
>> mCombo.setVisibleItemCount(0);
>>
>> is being ignored:
>> https://bugs.eclipse.org/bugs/show_bug.cgi?id=71262
>>
>> Together with small cell sizes / big fonts (which I suppose can be
>> adjusted using ISettings?) it makes the widget... well... ugly :(
>> (see attached screenshots)
>>
>> Michal
>>
>> Emil Crumhorn wrote:
>>> It has not been tested recently on GTK (after some major changes), and
>>> unfortunately I currently have no way of testing it either as I don't
>>> have a
>>> Linux box available. If you are willing and able and find the error
>>> please
>>> send me any info and I'll implement whatever fix is necessary. Otherwise
>>> I
>>> will just have to get to it when I can test it on GTK.
>>>
>>> Could you please post the code you use for creating the CalendarCombo so
>>> I
>>> can see what flags etc you are using?
>>>
>>> Thanks,
>>> Emil
>>>
>>> "Micha³ Tkacz" <mehow@infogenia.pl> wrote in message
>>> news:g03s0n$tlc$1@build.eclipse.org...
>>>> Hi,
>>>>
>>>> Is CalendarCombo widget supposed to work on GTK? When I try it (code
>>>> from
>>>> HEAD) all I get is an empty combo and no calendar. It looks like the
>>>> MouseDown event on a button is not reported at all (listener code inside
>>>> CalendarCombo class is not called).
>>>>
>>>> Thanks,
>>>>
>>>> Michal
>>>
>>
>
>
--
B e s t S o l u t i o n . at
------------------------------------------------------------ --------
Tom Schindl JFace-Committer
------------------------------------------------------------ --------
|
|
| | |
Goto Forum:
Current Time: Thu Apr 25 17:33:08 GMT 2024
Powered by FUDForum. Page generated in 0.03945 seconds
|