anjuta_util_builder_new

View: New views
2 Messages — Rating Filter:   Alert me  

anjuta_util_builder_new

by Sébastien Granjoux :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

Hi all,

I have created new function anjuta_util_builder_new that is creating a
new GtkBuilder object, load a file in it and check for errors.

Do you think I should change all plugins ?

When there is an error, I'm displaying a warning if the GError **
parameter is not NULL (and the caller can do more) or a error box if the
GError argument is NULL. Do you think I should display the error box ?

Currently most plugins display only a warning even if they are probably
not working at all.

Regards,

Sébastien

------------------------------------------------------------------------------
_______________________________________________
Anjuta-devel mailing list
Anjuta-devel@...
https://lists.sourceforge.net/lists/listinfo/anjuta-devel

Re: anjuta_util_builder_new

by Johannes Schmid-4 :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

Hi!

Hmm, I think it's ok to show a warning message only if GError* is NULL
because actually these errors can only appear when you completely broke
your installation (or change gtkbuilder files inappropriately as a
developer). I guess a dialog box is just overkill in this case but you
can keep it if you want.

Thanks for adding this util and I think it could be handy to update all
plugins.

Regards,
Johannes

Am Donnerstag, den 02.07.2009, 23:08 +0200 schrieb Sébastien Granjoux:

> Hi all,
>
> I have created new function anjuta_util_builder_new that is creating a
> new GtkBuilder object, load a file in it and check for errors.
>
> Do you think I should change all plugins ?
>
> When there is an error, I'm displaying a warning if the GError **
> parameter is not NULL (and the caller can do more) or a error box if the
> GError argument is NULL. Do you think I should display the error box ?
>
> Currently most plugins display only a warning even if they are probably
> not working at all.
>
> Regards,
>
> Sébastien
>
> ------------------------------------------------------------------------------
> _______________________________________________
> Anjuta-devel mailing list
> Anjuta-devel@...
> https://lists.sourceforge.net/lists/listinfo/anjuta-devel


------------------------------------------------------------------------------

_______________________________________________
Anjuta-devel mailing list
Anjuta-devel@...
https://lists.sourceforge.net/lists/listinfo/anjuta-devel

signature.asc (204 bytes) Download Attachment