renamed convert_to_indexed() to convert_dialog_new() and return the
2004-04-20 Michael Natterer <mitch@gimp.org> * app/gui/convert-dialog.[ch]: renamed convert_to_indexed() to convert_dialog_new() and return the dialog. Removed convert_to_rgb() and convert_to_grayscale(). * app/gui/offset-dialog.[ch]: renamed offset_dialog_create() to offset_dialog_new() and return the dialog. * app/Makefile.am * app/actions/drawable-commands.c * app/actions/image-commands.c: changed accordingly.
This commit is contained in:
committed by
Michael Natterer
parent
661f6ddeb8
commit
c8efb90364
@ -69,9 +69,9 @@ static void offset_halfheight_callback (GtkWidget *widget,
|
||||
|
||||
/* public functions */
|
||||
|
||||
void
|
||||
offset_dialog_create (GimpDrawable *drawable,
|
||||
GtkWidget *parent)
|
||||
GtkWidget *
|
||||
offset_dialog_new (GimpDrawable *drawable,
|
||||
GtkWidget *parent)
|
||||
{
|
||||
OffsetDialog *off_d;
|
||||
GtkWidget *check;
|
||||
@ -84,8 +84,8 @@ offset_dialog_create (GimpDrawable *drawable,
|
||||
GtkWidget *radio_button;
|
||||
const gchar *title = NULL;
|
||||
|
||||
g_return_if_fail (GIMP_IS_DRAWABLE (drawable));
|
||||
g_return_if_fail (GTK_IS_WIDGET (parent));
|
||||
g_return_val_if_fail (GIMP_IS_DRAWABLE (drawable), NULL);
|
||||
g_return_val_if_fail (GTK_IS_WIDGET (parent), NULL);
|
||||
|
||||
off_d = g_new0 (OffsetDialog, 1);
|
||||
|
||||
@ -223,7 +223,8 @@ offset_dialog_create (GimpDrawable *drawable,
|
||||
gtk_widget_set_sensitive (frame, ! off_d->wrap_around);
|
||||
|
||||
gtk_widget_show (vbox);
|
||||
gtk_widget_show (off_d->dlg);
|
||||
|
||||
return off_d->dlg;
|
||||
}
|
||||
|
||||
|
||||
|
||||
Reference in New Issue
Block a user