Home » Eclipse Projects » Nebula » CalendarCombo on GTK
CalendarCombo on GTK [message #52497] |
Sat, 10 May 2008 06: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 #52605 is a reply to message #52578] |
Sun, 11 May 2008 03:29   |
Eclipse User |
|
|
|
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 #54252 is a reply to message #52551] |
Sun, 08 June 2008 06:53  |
Eclipse User |
|
|
|
Just an update,
I'm trying to resolve this bug on GTK (Ubuntu) and no matter what I do I
can't seem to capture the event that the combo should open (FocusIn doesn't
work the same way at all and MouseDown does not fire over the button). Every
event I've tried fires too late.
https://bugs.eclipse.org/bugs/show_bug.cgi?id=150691 would make my life so
much easier for all platforms, but there's zero votes for it so I don't see
that happening, plus it's 2 years old now..
I'll keep trying, but it doesn't look very promising at the moment.
Emil
"Micha
|
|
|
Re: CalendarCombo on GTK [message #589662 is a reply to message #52497] |
Sat, 10 May 2008 07:20  |
Eclipse User |
|
|
|
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 #589671 is a reply to message #52524] |
Sat, 10 May 2008 09: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 #589680 is a reply to message #52551] |
Sat, 10 May 2008 15:11  |
Eclipse User |
|
|
|
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
|
|
|
Re: CalendarCombo on GTK [message #589687 is a reply to message #52578] |
Sun, 11 May 2008 03:29  |
Eclipse User |
|
|
|
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 #589699 is a reply to message #52605] |
Sun, 11 May 2008 05:31  |
Eclipse User |
|
|
|
Thanks Tom, great idea, I'll check that out. Got OS X and Windows currently,
so only one missing =)
Emil
"Tom Schindl" <tom.schindl@bestsolution.at> wrote in message
news:g06791$ggd$1@build.eclipse.org...
> 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
|
|
|
Re: CalendarCombo on GTK [message #590344 is a reply to message #52551] |
Sun, 08 June 2008 06:53  |
Eclipse User |
|
|
|
Just an update,
I'm trying to resolve this bug on GTK (Ubuntu) and no matter what I do I
can't seem to capture the event that the combo should open (FocusIn doesn't
work the same way at all and MouseDown does not fire over the button). Every
event I've tried fires too late.
https://bugs.eclipse.org/bugs/show_bug.cgi?id=150691 would make my life so
much easier for all platforms, but there's zero votes for it so I don't see
that happening, plus it's 2 years old now..
I'll keep trying, but it doesn't look very promising at the moment.
Emil
"Micha
|
|
|
Goto Forum:
Current Time: Thu May 08 01:10:25 EDT 2025
Powered by FUDForum. Page generated in 0.07110 seconds
|