added GimpContext parameters and create the GimpView with that context.
2006-09-01 Michael Natterer <mitch@gimp.org> * app/widgets/gimpviewabledialog.[ch]: added GimpContext parameters and create the GimpView with that context. * app/widgets/gimpcolordialog.[ch] * app/dialogs/convert-dialog.[ch] * app/dialogs/desaturate-dialog.[ch] * app/dialogs/grid-dialog.[ch] * app/dialogs/image-properties-dialog.[ch] * app/dialogs/layer-add-mask-dialog.[ch] * app/dialogs/offset-dialog.[ch] * app/dialogs/print-size-dialog.[ch] * app/dialogs/resize-dialog.[ch] * app/dialogs/scale-dialog.[ch] * app/dialogs/stroke-dialog.[ch] * app/dialogs/template-options-dialog.[ch] * app/dialogs/vectors-options-dialog.[ch]: added GimpContext parameters here too and pass them to gimp_viewable_dialog_new(). * app/actions/colormap-editor-commands.c * app/actions/drawable-commands.c * app/actions/gradient-editor-commands.c * app/actions/image-commands.c * app/actions/layers-commands.c * app/actions/palette-editor-commands.c * app/actions/select-commands.c * app/actions/vectors-commands.c * app/actions/view-commands.c * app/dialogs/channel-options-dialog.c * app/dialogs/dialogs-constructors.c * app/dialogs/image-merge-layers-dialog.c * app/dialogs/image-scale-dialog.c * app/dialogs/layer-options-dialog.c * app/display/gimpdisplayshell-filter-dialog.c * app/display/gimpdisplayshell-scale.c * app/tools/gimpcolorpickertool.c * app/tools/gimpimagemaptool.c * app/tools/gimpmeasuretool.c * app/tools/gimptexttool.c * app/tools/gimptransformtool.c * app/tools/gimpvectortool.c * app/widgets/gimpcolorpanel.c * app/widgets/gimpcontrollereditor.c * app/widgets/gimpcontrollerlist.c * app/widgets/gimptoolbox-color-area.c: pass contexts to above dialog constructors.
This commit is contained in:
committed by
Michael Natterer
parent
0051a8599f
commit
a6dbb78dfa
@ -32,6 +32,7 @@
|
||||
#include "config/gimpcoreconfig.h"
|
||||
|
||||
#include "core/gimp.h"
|
||||
#include "core/gimpcontext.h"
|
||||
#include "core/gimpimage.h"
|
||||
#include "core/gimpimage-grid.h"
|
||||
#include "core/gimpimage-undo.h"
|
||||
@ -62,8 +63,9 @@ static void grid_dialog_response (GtkWidget *widget,
|
||||
|
||||
|
||||
GtkWidget *
|
||||
grid_dialog_new (GimpImage *image,
|
||||
GtkWidget *parent)
|
||||
grid_dialog_new (GimpImage *image,
|
||||
GimpContext *context,
|
||||
GtkWidget *parent)
|
||||
{
|
||||
GimpGrid *grid;
|
||||
GimpGrid *grid_backup;
|
||||
@ -71,12 +73,13 @@ grid_dialog_new (GimpImage *image,
|
||||
GtkWidget *editor;
|
||||
|
||||
g_return_val_if_fail (GIMP_IS_IMAGE (image), NULL);
|
||||
g_return_val_if_fail (context == NULL || GIMP_IS_CONTEXT (context), NULL);
|
||||
g_return_val_if_fail (parent == NULL || GTK_IS_WIDGET (parent), NULL);
|
||||
|
||||
grid = gimp_image_get_grid (GIMP_IMAGE (image));
|
||||
grid_backup = gimp_config_duplicate (GIMP_CONFIG (grid));
|
||||
|
||||
dialog = gimp_viewable_dialog_new (GIMP_VIEWABLE (image),
|
||||
dialog = gimp_viewable_dialog_new (GIMP_VIEWABLE (image), context,
|
||||
_("Configure Grid"), "gimp-grid-configure",
|
||||
GIMP_STOCK_GRID, _("Configure Image Grid"),
|
||||
parent,
|
||||
|
||||
Reference in New Issue
Block a user