Re: [Evolution-hackers] Error dialogs in evolution data server plugin

2007-06-28 Thread Tobias Mueller
-BEGIN PGP SIGNED MESSAGE-
Hash: SHA1

Hi :)

On 20.06.2007 06:53, Srinivasa Ragavan wrote:
> I don't think you can do a error display from EDS. Just see how the
> e-cal errors/failures work. They return a code to the clients
> (Evolution) and Evolution displays a error using e-error.
>

This is, how things actually /should/ work, I guess.

But look at libedataserverui/e-passwords.c, there the e-d-s displays
password entry dialogs.

That raises a question in my mind: Is that (e-d-s is the user interface)
desired behaviour, or should we care to move this kind of functionality
off the e-d-s into the clients, say, Evo?

Regards,
  Tobi
-BEGIN PGP SIGNATURE-
Version: GnuPG v1.4.6 (GNU/Linux)
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org

iD8DBQFGg/RIPuBX/6ogjZ4RAtxHAKCSSKdCeRbMp3ZNCYD6cinKRxaRRQCeKLFB
Prs4IsYv2HeX/9iVtdMx4yE=
=UVmg
-END PGP SIGNATURE-

___
Evolution-hackers mailing list
Evolution-hackers@gnome.org
http://mail.gnome.org/mailman/listinfo/evolution-hackers


Re: [Evolution-hackers] Error dialogs in evolution data server plugin

2007-06-21 Thread Jules Colding
On Wed, 2007-06-20 at 14:10 -0700, Scott Herscher wrote:
> Thanks Jules!  Appreciate the help.

No problem ;-) 

Please just look at my source before you spend any time on coding your
own helper. I've made it identical to the official Evolution password
dialog so that it should fit into the overall design.

Best regards,
  jules


> Scott
> 
> On Jun 20, 2007, at 12:29 AM, Jules Colding wrote:
> 
> > On Tue, 2007-06-19 at 16:59 -0700, Scott Herscher wrote:
> >> Okay, hopefully this will be my last question of the day. I'd like to
> >> throw up a dialog box in my Zimbra Connector for Evolution when a
> >> server's SSL certificate is bad. I was going down the path of using
> >> gtk_message_dialog_new(...), but it doesn't seem to be working.
> >>
> >> So I have two questions:
> >>
> >> 1) Is there a better way of notifying the user of SSL certificate
> >> problems than using gtk_message_dialog_new?
> >
> > I've had the same problem in e-b when trying to get input (passwords)
> > from the user. I ended up coding a separate helper application that
> > displayed the dialog.
> >
> > No other way to do it I'm afraid...
> >
> > HTH,
> >   jules
> >
> >

___
Evolution-hackers mailing list
Evolution-hackers@gnome.org
http://mail.gnome.org/mailman/listinfo/evolution-hackers


Re: [Evolution-hackers] Error dialogs in evolution data server plugin

2007-06-21 Thread P Chenthill
To add to what jules has said. If you want to popup error dialogs from
the calendar backends, e_cal_backend_notify_error can be used. I could
not find a similar API in addressbook though.

For prompting the authentication from the backend the API,
e_cal_backend_notify_auth_required can be used.

- Chenthill.
On Wed, 2007-06-20 at 14:10 -0700, Scott Herscher wrote:
> Thanks Jules!  Appreciate the help.
> 
> Scott
> 
> On Jun 20, 2007, at 12:29 AM, Jules Colding wrote:
> 
> > On Tue, 2007-06-19 at 16:59 -0700, Scott Herscher wrote:
> >> Okay, hopefully this will be my last question of the day. I'd like to
> >> throw up a dialog box in my Zimbra Connector for Evolution when a
> >> server's SSL certificate is bad. I was going down the path of using
> >> gtk_message_dialog_new(...), but it doesn't seem to be working.
> >>
> >> So I have two questions:
> >>
> >> 1) Is there a better way of notifying the user of SSL certificate
> >> problems than using gtk_message_dialog_new?
> >
> > I've had the same problem in e-b when trying to get input (passwords)
> > from the user. I ended up coding a separate helper application that
> > displayed the dialog.
> >
> > No other way to do it I'm afraid...
> >
> > HTH,
> >   jules
> >
> >
> 
> ___
> Evolution-hackers mailing list
> Evolution-hackers@gnome.org
> http://mail.gnome.org/mailman/listinfo/evolution-hackers

 Novell, Inc. 
Software for the Open Enterpriseā„¢
http://www.novell.com
___
Evolution-hackers mailing list
Evolution-hackers@gnome.org
http://mail.gnome.org/mailman/listinfo/evolution-hackers


Re: [Evolution-hackers] Error dialogs in evolution data server plugin

2007-06-20 Thread Scott Herscher
Thanks Jules!  Appreciate the help.

Scott

On Jun 20, 2007, at 12:29 AM, Jules Colding wrote:

> On Tue, 2007-06-19 at 16:59 -0700, Scott Herscher wrote:
>> Okay, hopefully this will be my last question of the day. I'd like to
>> throw up a dialog box in my Zimbra Connector for Evolution when a
>> server's SSL certificate is bad. I was going down the path of using
>> gtk_message_dialog_new(...), but it doesn't seem to be working.
>>
>> So I have two questions:
>>
>> 1) Is there a better way of notifying the user of SSL certificate
>> problems than using gtk_message_dialog_new?
>
> I've had the same problem in e-b when trying to get input (passwords)
> from the user. I ended up coding a separate helper application that
> displayed the dialog.
>
> No other way to do it I'm afraid...
>
> HTH,
>   jules
>
>

___
Evolution-hackers mailing list
Evolution-hackers@gnome.org
http://mail.gnome.org/mailman/listinfo/evolution-hackers


Re: [Evolution-hackers] Error dialogs in evolution data server plugin

2007-06-20 Thread Jules Colding
On Tue, 2007-06-19 at 16:59 -0700, Scott Herscher wrote:
> Okay, hopefully this will be my last question of the day. I'd like to
> throw up a dialog box in my Zimbra Connector for Evolution when a
> server's SSL certificate is bad. I was going down the path of using
> gtk_message_dialog_new(...), but it doesn't seem to be working.
> 
> So I have two questions:
> 
> 1) Is there a better way of notifying the user of SSL certificate
> problems than using gtk_message_dialog_new?

I've had the same problem in e-b when trying to get input (passwords)
from the user. I ended up coding a separate helper application that
displayed the dialog.

No other way to do it I'm afraid...

HTH,
  jules


___
Evolution-hackers mailing list
Evolution-hackers@gnome.org
http://mail.gnome.org/mailman/listinfo/evolution-hackers


Re: [Evolution-hackers] Error dialogs in evolution data server plugin

2007-06-19 Thread Srinivasa Ragavan
Scott,

IMAP/Camel runs in the address space of Evolution and it would be
different in this case, as EDS is a different process altogether and the
clients speak Bonobo or DBUS to EDS. May be another API... donno? I
really need to see the code to suggest something. Chenthill may have
some thought/ideas here.

-Srini.

 
On Tue, 2007-06-19 at 23:22 -0700, Scott Herscher wrote:
> Thanks for the reply!  I'm still a little confused though. How would I do 
> something like prompt the user to see if they want to accept a self-signed 
> certificate for example? I'm not sure I get how I could do that in the 
> context of a eds plugin. Is it possible? Somewhere there's code that does 
> that...because an IMAP account that is talking to a server that doesn't have 
> a proper certificate will cause Evo to display a dialog box that allows the 
> user to choose whether they want to accept that certificate. I would like to 
> do the same thing, but I just cannot figure out how.
> 
> Thanks for the help,
> 
> Scott
> 
> - Original Message -
> From: "Srinivasa Ragavan" <[EMAIL PROTECTED]>
> To: "Scott Herscher" <[EMAIL PROTECTED]>
> Cc: evolution-hackers@gnome.org
> Sent: Tuesday, June 19, 2007 9:53:02 PM (GMT-0800) America/Los_Angeles
> Subject: Re: [Evolution-hackers] Error dialogs in evolution data server plugin
> 
> I don't think you can do a error display from EDS. Just see how the
> e-cal errors/failures work. They return a code to the clients
> (Evolution) and Evolution displays a error using e-error. 
> 
> -Srini.
> 
> On Tue, 2007-06-19 at 16:59 -0700, Scott Herscher wrote:
> > Okay, hopefully this will be my last question of the day. I'd like to throw 
> > up a dialog box in my Zimbra Connector for Evolution when a server's SSL 
> > certificate is bad. I was going down the path of using 
> > gtk_message_dialog_new(...), but it doesn't seem to be working.
> > 
> > So I have two questions:
> > 
> > 1) Is there a better way of notifying the user of SSL certificate problems 
> > than using gtk_message_dialog_new?
> > 2) If not, how do I make gtk_message_dialog_new() work?
> > 
> > This is how I was using it in my test code:
> > 
> > 
> >   dialog = gtk_message_dialog_new ( NULL,
> >   GTK_DIALOG_DESTROY_WITH_PARENT,
> >   GTK_MESSAGE_ERROR,
> >   GTK_BUTTONS_YES_NO,
> >   "Blah Blah Blah" );
> > 
> > returnVal = gtk_dialog_run (GTK_DIALOG (dialog));
> > 
> > 
> > Any help would be greatly appreciated.
> > 
> > Thanks,
> > 
> > Scott
> > 
> > ___
> > Evolution-hackers mailing list
> > Evolution-hackers@gnome.org
> > http://mail.gnome.org/mailman/listinfo/evolution-hackers
> 
> 

___
Evolution-hackers mailing list
Evolution-hackers@gnome.org
http://mail.gnome.org/mailman/listinfo/evolution-hackers


Re: [Evolution-hackers] Error dialogs in evolution data server plugin

2007-06-19 Thread Scott Herscher
Thanks for the reply!  I'm still a little confused though. How would I do 
something like prompt the user to see if they want to accept a self-signed 
certificate for example? I'm not sure I get how I could do that in the context 
of a eds plugin. Is it possible? Somewhere there's code that does 
that...because an IMAP account that is talking to a server that doesn't have a 
proper certificate will cause Evo to display a dialog box that allows the user 
to choose whether they want to accept that certificate. I would like to do the 
same thing, but I just cannot figure out how.

Thanks for the help,

Scott

- Original Message -
From: "Srinivasa Ragavan" <[EMAIL PROTECTED]>
To: "Scott Herscher" <[EMAIL PROTECTED]>
Cc: evolution-hackers@gnome.org
Sent: Tuesday, June 19, 2007 9:53:02 PM (GMT-0800) America/Los_Angeles
Subject: Re: [Evolution-hackers] Error dialogs in evolution data server plugin

I don't think you can do a error display from EDS. Just see how the
e-cal errors/failures work. They return a code to the clients
(Evolution) and Evolution displays a error using e-error. 

-Srini.

On Tue, 2007-06-19 at 16:59 -0700, Scott Herscher wrote:
> Okay, hopefully this will be my last question of the day. I'd like to throw 
> up a dialog box in my Zimbra Connector for Evolution when a server's SSL 
> certificate is bad. I was going down the path of using 
> gtk_message_dialog_new(...), but it doesn't seem to be working.
> 
> So I have two questions:
> 
> 1) Is there a better way of notifying the user of SSL certificate problems 
> than using gtk_message_dialog_new?
> 2) If not, how do I make gtk_message_dialog_new() work?
> 
> This is how I was using it in my test code:
> 
> 
>   dialog = gtk_message_dialog_new ( NULL,
>   GTK_DIALOG_DESTROY_WITH_PARENT,
>   GTK_MESSAGE_ERROR,
>   GTK_BUTTONS_YES_NO,
>   "Blah Blah Blah" );
> 
> returnVal = gtk_dialog_run (GTK_DIALOG (dialog));
> 
> 
> Any help would be greatly appreciated.
> 
> Thanks,
> 
> Scott
> 
> ___
> Evolution-hackers mailing list
> Evolution-hackers@gnome.org
> http://mail.gnome.org/mailman/listinfo/evolution-hackers


___
Evolution-hackers mailing list
Evolution-hackers@gnome.org
http://mail.gnome.org/mailman/listinfo/evolution-hackers


Re: [Evolution-hackers] Error dialogs in evolution data server plugin

2007-06-19 Thread Srinivasa Ragavan
I don't think you can do a error display from EDS. Just see how the
e-cal errors/failures work. They return a code to the clients
(Evolution) and Evolution displays a error using e-error. 

-Srini.

On Tue, 2007-06-19 at 16:59 -0700, Scott Herscher wrote:
> Okay, hopefully this will be my last question of the day. I'd like to throw 
> up a dialog box in my Zimbra Connector for Evolution when a server's SSL 
> certificate is bad. I was going down the path of using 
> gtk_message_dialog_new(...), but it doesn't seem to be working.
> 
> So I have two questions:
> 
> 1) Is there a better way of notifying the user of SSL certificate problems 
> than using gtk_message_dialog_new?
> 2) If not, how do I make gtk_message_dialog_new() work?
> 
> This is how I was using it in my test code:
> 
> 
>   dialog = gtk_message_dialog_new ( NULL,
>   GTK_DIALOG_DESTROY_WITH_PARENT,
>   GTK_MESSAGE_ERROR,
>   GTK_BUTTONS_YES_NO,
>   "Blah Blah Blah" );
> 
> returnVal = gtk_dialog_run (GTK_DIALOG (dialog));
> 
> 
> Any help would be greatly appreciated.
> 
> Thanks,
> 
> Scott
> 
> ___
> Evolution-hackers mailing list
> Evolution-hackers@gnome.org
> http://mail.gnome.org/mailman/listinfo/evolution-hackers

___
Evolution-hackers mailing list
Evolution-hackers@gnome.org
http://mail.gnome.org/mailman/listinfo/evolution-hackers