Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » Nebula » CalendarCombo on GTK
CalendarCombo on GTK [message #52497] Sat, 10 May 2008 10:05 Go to next message
Eclipse UserFriend
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 #52524 is a reply to message #52497] Sat, 10 May 2008 11:20 Go to previous messageGo to next message
Emil Crumhorn is currently offline Emil CrumhornFriend
Messages: 169
Registered: July 2009
Senior Member
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 #52551 is a reply to message #52524] Sat, 10 May 2008 13:35 Go to previous messageGo to next message
Eclipse UserFriend
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 #52578 is a reply to message #52551] Sat, 10 May 2008 19:11 Go to previous messageGo to next message
Emil Crumhorn is currently offline Emil CrumhornFriend
Messages: 169
Registered: July 2009
Senior Member
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 #52605 is a reply to message #52578] Sun, 11 May 2008 07:29 Go to previous messageGo to next message
Thomas Schindl is currently offline Thomas SchindlFriend
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 #52632 is a reply to message #52605] Sun, 11 May 2008 09:31 Go to previous messageGo to next message
Emil Crumhorn is currently offline Emil CrumhornFriend
Messages: 169
Registered: July 2009
Senior Member
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 #54252 is a reply to message #52551] Sun, 08 June 2008 10:53 Go to previous message
Emil Crumhorn is currently offline Emil CrumhornFriend
Messages: 169
Registered: July 2009
Senior Member
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 11:20 Go to previous message
Emil Crumhorn is currently offline Emil CrumhornFriend
Messages: 169
Registered: July 2009
Senior Member
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 13:35 Go to previous message
Eclipse UserFriend
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 19:11 Go to previous message
Emil Crumhorn is currently offline Emil CrumhornFriend
Messages: 169
Registered: July 2009
Senior Member
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 07:29 Go to previous message
Thomas Schindl is currently offline Thomas SchindlFriend
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 #589699 is a reply to message #52605] Sun, 11 May 2008 09:31 Go to previous message
Emil Crumhorn is currently offline Emil CrumhornFriend
Messages: 169
Registered: July 2009
Senior Member
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 10:53 Go to previous message
Emil Crumhorn is currently offline Emil CrumhornFriend
Messages: 169
Registered: July 2009
Senior Member
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
Previous Topic:The Missing Widget
Next Topic:The Missing Widget
Goto Forum:
  


Current Time: Fri Apr 19 21:03:08 GMT 2024

Powered by FUDForum. Page generated in 0.04509 seconds
.:: Contact :: Home ::.

Powered by: FUDforum 3.0.2.
Copyright ©2001-2010 FUDforum Bulletin Board Software

Back to the top