[Gimp-developer] Re: GimpDialog API change

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



On Tue, Nov 04, 2003 at 12:28:09PM +0100, Michael Natterer wrote:
> Hi,
> 
> As you may know, GimpDialog from libgimpwidgets badly needs an
> API change for GIMP 2.0.
> 
> The relevant bugzilla entry:
> http://bugzilla.gnome.org/show_bug.cgi?id=125143
> 
> The plan is to just remove our own action_area API and use GtkDialog's
> one, which involves making use of the dialog's "response" signal
> instead of connecting to each button's "clicked".
> 
> The old API is just way too complicated and does things nobody
> really needs. The new stuff boils down to one function:
> 
> /**
>  * gimp_dialog_new:
>  * @title:        The dialog's title which will be set with
>  *                gtk_window_set_title().
>  * @role:         The dialog's @role which will be set with
>  *                gtk_window_set_role().
>  * @parent:       The @parent widget of this dialog.
>  * @flags:        The @flags (see the #GtkDialog documentation).
>  * @help_func:    The function which will be called if the user presses "F1".
>  * @help_id:      The help_id which will be passed to @help_func.
>  * @...:          A %NULL-terminated @va_list destribing the
>  *                action_area buttons.
>  *
>  * Creates a new @GimpDialog widget.
>  *
>  * This function simply packs the action_area arguments passed in "..."
>  * into a @va_list variable and passes everything to gimp_dialog_new_valist().
>  *
>  * For a description of the format of the @va_list describing the
>  * action_area buttons see gtk_dialog_new_with_buttons().
>  *
>  * Returns: A #GimpDialog.
>  **/
> GtkWidget *
> gimp_dialog_new (const gchar    *title,
>                  const gchar    *role,
>                  GtkWidget      *parent,
>                  GtkDialogFlags  flags,
>                  GimpHelpFunc    help_func,
>                  const gchar    *help_id,
>                  ...);
> 
> 
> Of course there will be a _valist() variant.
> 
> I'll start hacking this today but would like to get some ACKs or EEKs
> before I start porting the plug-ins (which have many many GimpDialogs).
> 
  You have my bless on this. As I've said I can help you converting some
of the plug-ins.

            DindinX

-- 
david@xxxxxxxxxxx
#include <ctype.h>
b;main(c,v)char**v;{for(c=0;v[1][c];c++){**v=v[1][c];putchar(islower(**v)?
97+(**v-97*2+v[2][(c-b)%strlen(v[2])])%26:(b++,**v));}putchar(10);}

[Index of Archives]     [Video For Linux]     [Photo]     [Yosemite News]     [gtk]     [GIMP for Windows]     [KDE]     [GEGL]     [Gimp's Home]     [Gimp on GUI]     [Gimp on Windows]     [Steve's Art]

  Powered by Linux