Commit b5d8536f authored by Michael Natterer's avatar Michael Natterer 😴 Committed by Michael Natterer

gimprc.in user_install user_install.bat app/gimprc.[ch] removed the

2001-02-13  Michael Natterer  <mitch@gimp.org>

	* gimprc.in
	* user_install
	* user_install.bat
	* app/gimprc.[ch]
	* app/preferences_dialog.c: removed the "brush_vbr_path" variable,
	because all data types will be editable and saveable soon.

	* app/Makefile.am
	* app/apptypes.h
	* app/gimpdatafactory.[ch]: new object which holds a data list and
	knows how to create, edit, duplicate etc. the items in it. Will
	completely replace the brushes.[ch], patterns.[ch], ... files soon.

	* po/POTFILES.in
	* app/gimpdatacontainerview.[ch]: removed.
	* app/gimpdatafactoryview.[ch]: added.

	A view on the GimpDataFactory with a GUI for creating, editing,
	deleting etc. items (mostly unimplemented).

	* app/context_manager.[ch]: replaced the global data lists by global
	data factories.

	* app/brush_select.c
	* app/brushes.[ch]
	* app/commands.c
	* app/convert.c
	* app/devices.c
	* app/gimpbrush.[ch]
	* app/gimpbrushgenerated.c
	* app/gimpcontext.c
	* app/gimpdata.[ch]
	* app/gimpdatalist.[ch]
	* app/gimpdnd.c
	* app/gimpgradient.[ch]
	* app/gimppalette.[ch]
	* app/gimppattern.[ch]
	* app/gradient_editor.c
	* app/gradient_select.c
	* app/gradients.[ch]
	* app/indicator_area.c
	* app/palette.c
	* app/palette_import.c
	* app/palette_select.c
	* app/palettes.[ch]
	* app/pattern_select.c
	* app/patterns.[ch]
	* app/pdb/brush_select_cmds.c
	* app/pdb/brushes_cmds.c
	* app/pdb/convert_cmds.c
	* app/pdb/gradient_select_cmds.c
	* app/pdb/gradients_cmds.c
	* app/pdb/pattern_select_cmds.c
	* app/pdb/patterns_cmds.c
	* tools/pdbgen/pdb/brush_select.pdb
	* tools/pdbgen/pdb/brushes.pdb
	* tools/pdbgen/pdb/convert.pdb
	* tools/pdbgen/pdb/gradient_select.pdb
	* tools/pdbgen/pdb/gradients.pdb
	* tools/pdbgen/pdb/pattern_select.pdb
	* tools/pdbgen/pdb/patterns.pdb: changed accordingly.
parent 1501e3cf
2001-02-13 Michael Natterer <mitch@gimp.org>
* gimprc.in
* user_install
* user_install.bat
* app/gimprc.[ch]
* app/preferences_dialog.c: removed the "brush_vbr_path" variable,
because all data types will be editable and saveable soon.
* app/Makefile.am
* app/apptypes.h
* app/gimpdatafactory.[ch]: new object which holds a data list and
knows how to create, edit, duplicate etc. the items in it. Will
completely replace the brushes.[ch], patterns.[ch], ... files soon.
* po/POTFILES.in
* app/gimpdatacontainerview.[ch]: removed.
* app/gimpdatafactoryview.[ch]: added.
A view on the GimpDataFactory with a GUI for creating, editing,
deleting etc. items (mostly unimplemented).
* app/context_manager.[ch]: replaced the global data lists by global
data factories.
* app/brush_select.c
* app/brushes.[ch]
* app/commands.c
* app/convert.c
* app/devices.c
* app/gimpbrush.[ch]
* app/gimpbrushgenerated.c
* app/gimpcontext.c
* app/gimpdata.[ch]
* app/gimpdatalist.[ch]
* app/gimpdnd.c
* app/gimpgradient.[ch]
* app/gimppalette.[ch]
* app/gimppattern.[ch]
* app/gradient_editor.c
* app/gradient_select.c
* app/gradients.[ch]
* app/indicator_area.c
* app/palette.c
* app/palette_import.c
* app/palette_select.c
* app/palettes.[ch]
* app/pattern_select.c
* app/patterns.[ch]
* app/pdb/brush_select_cmds.c
* app/pdb/brushes_cmds.c
* app/pdb/convert_cmds.c
* app/pdb/gradient_select_cmds.c
* app/pdb/gradients_cmds.c
* app/pdb/pattern_select_cmds.c
* app/pdb/patterns_cmds.c
* tools/pdbgen/pdb/brush_select.pdb
* tools/pdbgen/pdb/brushes.pdb
* tools/pdbgen/pdb/convert.pdb
* tools/pdbgen/pdb/gradient_select.pdb
* tools/pdbgen/pdb/gradients.pdb
* tools/pdbgen/pdb/pattern_select.pdb
* tools/pdbgen/pdb/patterns.pdb: changed accordingly.
2001-02-13 Michael Natterer <mitch@gimp.org>
* app/Makefile.am
......
......@@ -116,6 +116,8 @@ gimp_SOURCES = \
gimpcontext.h \
gimpdata.c \
gimpdata.h \
gimpdatafactory.c \
gimpdatafactory.h \
gimpdatalist.c \
gimpdatalist.h \
gimpdnd.c \
......@@ -295,8 +297,8 @@ gimp_SOURCES = \
gimpcontainerlistview.c \
gimpcontainerview.h \
gimpcontainerview.c \
gimpdatacontainerview.h \
gimpdatacontainerview.c \
gimpdatafactoryview.h \
gimpdatafactoryview.c \
gimpdrawablepreview.c \
gimpdrawablepreview.h \
gimpgradientpreview.h \
......
......@@ -84,7 +84,8 @@
#include "gimpcontainer.h"
#include "gimpcontainerlistview.h"
#include "gimpcontainergridview.h"
#include "gimpdatacontainerview.h"
#include "gimpdatafactory.h"
#include "gimpdatafactoryview.h"
#include "gimpdnd.h"
#include "gimppreview.h"
......@@ -1356,7 +1357,7 @@ brushes_callback (GtkWidget *widget,
gimp_dnd_viewable_dest_unset (GTK_WIDGET (view),
view->container->children_type);
gimp_container_view_set_container (view, global_brush_list);
gimp_container_view_set_container (view, global_brush_factory->container);
gimp_gtk_drag_dest_set_by_type (GTK_WIDGET (view),
GTK_DEST_DEFAULT_ALL,
......@@ -1376,7 +1377,7 @@ patterns_callback (GtkWidget *widget,
gimp_dnd_viewable_dest_unset (GTK_WIDGET (view),
view->container->children_type);
gimp_container_view_set_container (view, global_pattern_list);
gimp_container_view_set_container (view, global_pattern_factory->container);
gimp_gtk_drag_dest_set_by_type (GTK_WIDGET (view),
GTK_DEST_DEFAULT_ALL,
......@@ -1396,7 +1397,7 @@ gradients_callback (GtkWidget *widget,
gimp_dnd_viewable_dest_unset (GTK_WIDGET (view),
view->container->children_type);
gimp_container_view_set_container (view, global_gradient_list);
gimp_container_view_set_container (view, global_gradient_factory->container);
gimp_gtk_drag_dest_set_by_type (GTK_WIDGET (view),
GTK_DEST_DEFAULT_ALL,
......@@ -1416,7 +1417,7 @@ palettes_callback (GtkWidget *widget,
gimp_dnd_viewable_dest_unset (GTK_WIDGET (view),
view->container->children_type);
gimp_container_view_set_container (view, global_palette_list);
gimp_container_view_set_container (view, global_palette_factory->container);
gimp_gtk_drag_dest_set_by_type (GTK_WIDGET (view),
GTK_DEST_DEFAULT_ALL,
......@@ -1508,11 +1509,11 @@ container_view_new (gboolean list,
}
static void
data_container_view_new (GimpViewType view_type,
gchar *title,
GimpContainer *container,
GimpContext *context,
gint preview_size)
data_factory_view_new (GimpViewType view_type,
gchar *title,
GimpDataFactory *factory,
GimpContext *context,
gint preview_size)
{
GtkWidget *dialog;
GtkWidget *view;
......@@ -1532,11 +1533,11 @@ data_container_view_new (GimpViewType view_type,
gtk_widget_hide (GTK_DIALOG (dialog)->action_area);
view = gimp_data_container_view_new (view_type,
container,
context,
preview_size,
5, 5);
view = gimp_data_factory_view_new (view_type,
factory,
context,
preview_size,
5, 5);
gtk_container_add (GTK_CONTAINER (GTK_DIALOG (dialog)->vbox), view);
gtk_widget_show (view);
......@@ -1549,7 +1550,7 @@ data_container_view_new (GimpViewType view_type,
gtk_signal_connect (GTK_OBJECT (adjustment), "value_changed",
GTK_SIGNAL_FUNC (container_view_scale_callback),
GIMP_DATA_CONTAINER_VIEW (view)->view);
GIMP_DATA_FACTORY_VIEW (view)->view);
gtk_widget_show (dialog);
}
......@@ -1742,88 +1743,88 @@ void
dialogs_test_brush_container_list_view_cmd_callback (GtkWidget *widget,
gpointer client_data)
{
data_container_view_new (GIMP_VIEW_TYPE_LIST,
"Brush List",
global_brush_list,
gimp_context_get_user (),
24);
data_factory_view_new (GIMP_VIEW_TYPE_LIST,
"Brush List",
global_brush_factory,
gimp_context_get_user (),
24);
}
void
dialogs_test_pattern_container_list_view_cmd_callback (GtkWidget *widget,
gpointer client_data)
{
data_container_view_new (GIMP_VIEW_TYPE_LIST,
"Pattern List",
global_pattern_list,
gimp_context_get_user (),
24);
data_factory_view_new (GIMP_VIEW_TYPE_LIST,
"Pattern List",
global_pattern_factory,
gimp_context_get_user (),
24);
}
void
dialogs_test_gradient_container_list_view_cmd_callback (GtkWidget *widget,
gpointer client_data)
{
data_container_view_new (GIMP_VIEW_TYPE_LIST,
"Gradient List",
global_gradient_list,
gimp_context_get_user (),
24);
data_factory_view_new (GIMP_VIEW_TYPE_LIST,
"Gradient List",
global_gradient_factory,
gimp_context_get_user (),
24);
}
void
dialogs_test_palette_container_list_view_cmd_callback (GtkWidget *widget,
gpointer client_data)
{
data_container_view_new (GIMP_VIEW_TYPE_LIST,
"Palette List",
global_palette_list,
gimp_context_get_user (),
24);
data_factory_view_new (GIMP_VIEW_TYPE_LIST,
"Palette List",
global_palette_factory,
gimp_context_get_user (),
24);
}
void
dialogs_test_brush_container_grid_view_cmd_callback (GtkWidget *widget,
gpointer client_data)
{
data_container_view_new (GIMP_VIEW_TYPE_GRID,
"Brush Grid",
global_brush_list,
gimp_context_get_user (),
32);
data_factory_view_new (GIMP_VIEW_TYPE_GRID,
"Brush Grid",
global_brush_factory,
gimp_context_get_user (),
32);
}
void
dialogs_test_pattern_container_grid_view_cmd_callback (GtkWidget *widget,
gpointer client_data)
{
data_container_view_new (GIMP_VIEW_TYPE_GRID,
"Pattern Grid",
global_pattern_list,
gimp_context_get_user (),
24);
data_factory_view_new (GIMP_VIEW_TYPE_GRID,
"Pattern Grid",
global_pattern_factory,
gimp_context_get_user (),
24);
}
void
dialogs_test_gradient_container_grid_view_cmd_callback (GtkWidget *widget,
gpointer client_data)
{
data_container_view_new (GIMP_VIEW_TYPE_GRID,
"Gradient Grid",
global_gradient_list,
gimp_context_get_user (),
24);
data_factory_view_new (GIMP_VIEW_TYPE_GRID,
"Gradient Grid",
global_gradient_factory,
gimp_context_get_user (),
24);
}
void
dialogs_test_palette_container_grid_view_cmd_callback (GtkWidget *widget,
gpointer client_data)
{
data_container_view_new (GIMP_VIEW_TYPE_GRID,
"Palette Grid",
global_palette_list,
gimp_context_get_user (),
24);
data_factory_view_new (GIMP_VIEW_TYPE_GRID,
"Palette Grid",
global_palette_factory,
gimp_context_get_user (),
24);
}
void
......@@ -1831,7 +1832,7 @@ dialogs_test_multi_container_list_view_cmd_callback (GtkWidget *widget,
gpointer client_data)
{
container_multi_view_new (TRUE, "Multi List",
global_brush_list,
global_brush_factory->container,
gimp_context_get_user (),
24);
}
......@@ -1841,7 +1842,7 @@ dialogs_test_multi_container_grid_view_cmd_callback (GtkWidget *widget,
gpointer client_data)
{
container_multi_view_new (FALSE, "Multi Grid",
global_brush_list,
global_brush_factory->container,
gimp_context_get_user (),
32);
}
......
......@@ -38,6 +38,8 @@ typedef struct _GimpContainer GimpContainer;
typedef struct _GimpList GimpList;
typedef struct _GimpDataList GimpDataList;
typedef struct _GimpDataFactory GimpDataFactory;
typedef struct _GimpContext GimpContext;
typedef struct _GimpViewable GimpViewable;
......
......@@ -37,6 +37,7 @@
#include "gimpcontainergridview.h"
#include "gimpcontext.h"
#include "gimpdata.h"
#include "gimpdatafactory.h"
#include "gimpdnd.h"
#include "gimprc.h"
#include "session.h"
......@@ -205,7 +206,7 @@ brush_select_new (gchar *title,
if (title && init_name && strlen (init_name))
{
active = (GimpBrush *)
gimp_container_get_child_by_name (GIMP_CONTAINER (global_brush_list),
gimp_container_get_child_by_name (global_brush_factory->container,
init_name);
}
else
......@@ -242,7 +243,7 @@ brush_select_new (gchar *title,
gtk_container_add (GTK_CONTAINER (bsp->left_box), bsp->brush_selection_box);
/* The Brush Grid */
bsp->view = gimp_container_grid_view_new (global_brush_list,
bsp->view = gimp_container_grid_view_new (global_brush_factory->container,
bsp->context,
MIN_CELL_SIZE,
STD_BRUSH_COLUMNS,
......@@ -386,7 +387,7 @@ brush_select_new (gchar *title,
/* add callbacks to keep the display area current */
bsp->name_changed_handler_id =
gimp_container_add_handler
(GIMP_CONTAINER (global_brush_list), "name_changed",
(global_brush_factory->container, "name_changed",
GTK_SIGNAL_FUNC (brush_select_brush_renamed_callback),
bsp);
......@@ -435,7 +436,7 @@ brush_select_free (BrushSelect *bsp)
gtk_object_unref (GTK_OBJECT (bsp->context));
}
gimp_container_remove_handler (GIMP_CONTAINER (global_brush_list),
gimp_container_remove_handler (global_brush_factory->container,
bsp->name_changed_handler_id);
g_free (bsp);
......@@ -623,7 +624,8 @@ static void
brush_select_select (BrushSelect *bsp,
GimpBrush *brush)
{
if (! gimp_container_have (global_brush_list, GIMP_OBJECT (brush)));
if (! gimp_container_have (global_brush_factory->container,
GIMP_OBJECT (brush)));
if (GIMP_IS_BRUSH_GENERATED (brush))
{
......@@ -758,7 +760,7 @@ brush_select_new_brush_callback (GtkWidget *widget,
brush = gimp_brush_generated_new (10, .5, 0.0, 1.0);
gimp_container_add (GIMP_CONTAINER (global_brush_list),
gimp_container_add (global_brush_factory->container,
GIMP_OBJECT (brush));
gimp_context_set_brush (bsp->context, brush);
......@@ -817,7 +819,8 @@ brush_select_delete_brush_callback (GtkWidget *widget,
if (GIMP_DATA (brush)->filename)
gimp_data_delete_from_disk (GIMP_DATA (brush));
gimp_container_remove (global_brush_list, GIMP_OBJECT (brush));
gimp_container_remove (global_brush_factory->container,
GIMP_OBJECT (brush));
}
else
{
......
......@@ -27,6 +27,7 @@
#include "gimpbrush.h"
#include "gimpbrushgenerated.h"
#include "gimpbrushpipe.h"
#include "gimpdatafactory.h"
#include "gimpdatalist.h"
#include "gimprc.h"
......@@ -40,15 +41,8 @@ brushes_init (gboolean no_data)
if (brush_path != NULL && !no_data)
{
gchar *common_brush_path;
common_brush_path = g_strconcat (brush_path,
G_SEARCHPATH_SEPARATOR_S,
brush_vbr_path,
NULL);
gimp_data_list_load (GIMP_DATA_LIST (global_brush_list),
common_brush_path,
gimp_data_list_load (GIMP_DATA_LIST (global_brush_factory->container),
brush_path,
(GimpDataObjectLoaderFunc) gimp_brush_load,
GIMP_BRUSH_FILE_EXTENSION,
......@@ -63,39 +57,16 @@ brushes_init (gboolean no_data)
GIMP_BRUSH_PIPE_FILE_EXTENSION,
NULL);
g_free (common_brush_path);
}
}
void
brushes_free (void)
{
if (gimp_container_num_children (global_brush_list) == 0)
if (gimp_container_num_children (global_brush_factory->container) == 0)
return;
gimp_data_list_save_and_clear (GIMP_DATA_LIST (global_brush_list),
brush_vbr_path,
GIMP_BRUSH_GENERATED_FILE_EXTENSION);
}
GimpBrush *
brushes_get_standard_brush (void)
{
static GimpBrush *standard_brush = NULL;
if (! standard_brush)
{
standard_brush =
GIMP_BRUSH (gimp_brush_generated_new (5.0, 0.5, 0.0, 1.0));
gimp_object_set_name (GIMP_OBJECT (standard_brush), "Standard");
/* set ref_count to 2 --> never swap the standard brush */
gtk_object_ref (GTK_OBJECT (standard_brush));
gtk_object_ref (GTK_OBJECT (standard_brush));
gtk_object_sink (GTK_OBJECT (standard_brush));
}
return standard_brush;
gimp_data_list_save_and_clear
(GIMP_DATA_LIST (global_brush_factory->container),
brush_path);
}
......@@ -23,7 +23,5 @@
void brushes_init (gboolean no_data);
void brushes_free (void);
GimpBrush * brushes_get_standard_brush (void);
#endif /* __BRUSHES_H__ */
......@@ -84,7 +84,8 @@
#include "gimpcontainer.h"
#include "gimpcontainerlistview.h"
#include "gimpcontainergridview.h"
#include "gimpdatacontainerview.h"
#include "gimpdatafactory.h"
#include "gimpdatafactoryview.h"
#include "gimpdnd.h"
#include "gimppreview.h"
......@@ -1356,7 +1357,7 @@ brushes_callback (GtkWidget *widget,
gimp_dnd_viewable_dest_unset (GTK_WIDGET (view),
view->container->children_type);
gimp_container_view_set_container (view, global_brush_list);
gimp_container_view_set_container (view, global_brush_factory->container);
gimp_gtk_drag_dest_set_by_type (GTK_WIDGET (view),
GTK_DEST_DEFAULT_ALL,
......@@ -1376,7 +1377,7 @@ patterns_callback (GtkWidget *widget,
gimp_dnd_viewable_dest_unset (GTK_WIDGET (view),
view->container->children_type);
gimp_container_view_set_container (view, global_pattern_list);
gimp_container_view_set_container (view, global_pattern_factory->container);
gimp_gtk_drag_dest_set_by_type (GTK_WIDGET (view),
GTK_DEST_DEFAULT_ALL,
......@@ -1396,7 +1397,7 @@ gradients_callback (GtkWidget *widget,
gimp_dnd_viewable_dest_unset (GTK_WIDGET (view),
view->container->children_type);
gimp_container_view_set_container (view, global_gradient_list);
gimp_container_view_set_container (view, global_gradient_factory->container);
gimp_gtk_drag_dest_set_by_type (GTK_WIDGET (view),
GTK_DEST_DEFAULT_ALL,
......@@ -1416,7 +1417,7 @@ palettes_callback (GtkWidget *widget,
gimp_dnd_viewable_dest_unset (GTK_WIDGET (view),
view->container->children_type);
gimp_container_view_set_container (view, global_palette_list);
gimp_container_view_set_container (view, global_palette_factory->container);
gimp_gtk_drag_dest_set_by_type (GTK_WIDGET (view),
GTK_DEST_DEFAULT_ALL,
......@@ -1508,11 +1509,11 @@ container_view_new (gboolean list,
}
static void
data_container_view_new (GimpViewType view_type,
gchar *title,
GimpContainer *container,
GimpContext *context,
gint preview_size)
data_factory_view_new (GimpViewType view_type,
gchar *title,
GimpDataFactory *factory,
GimpContext *context,
gint preview_size)
{
GtkWidget *dialog;
GtkWidget *view;
......@@ -1532,11 +1533,11 @@ data_container_view_new (GimpViewType view_type,
gtk_widget_hide (GTK_DIALOG (dialog)->action_area);
view = gimp_data_container_view_new (view_type,
container,
context,
preview_size,
5, 5);
view = gimp_data_factory_view_new (view_type,
factory,
context,
preview_size,
5, 5);
gtk_container_add (GTK_CONTAINER (GTK_DIALOG (dialog)->vbox), view);
gtk_widget_show (view);
......@@ -1549,7 +1550,7 @@ data_container_view_new (GimpViewType view_type,
gtk_signal_connect (GTK_OBJECT (adjustment), "value_changed",
GTK_SIGNAL_FUNC (container_view_scale_callback),
GIMP_DATA_CONTAINER_VIEW (view)->view);
GIMP_DATA_FACTORY_VIEW (view)->view);
gtk_widget_show (dialog);
}
......@@ -1742,88 +1743,88 @@ void
dialogs_test_brush_container_list_view_cmd_callback (GtkWidget *widget,
gpointer client_data)
{
data_container_view_new (GIMP_VIEW_TYPE_LIST,
"Brush List",
global_brush_list,
gimp_context_get_user (),
24);
data_factory_view_new (GIMP_VIEW_TYPE_LIST,
"Brush List",
global_brush_factory,
gimp_context_get_user (),
24);
}
void
dialogs_test_pattern_container_list_view_cmd_callback (GtkWidget *widget,
gpointer client_data)
{
data_container_view_new (GIMP_VIEW_TYPE_LIST,
"Pattern List",
global_pattern_list,
gimp_context_get_user (),
24);
data_factory_view_new (GIMP_VIEW_TYPE_LIST,
"Pattern List",
global_pattern_factory,
gimp_context_get_user (),
24);
}
void
dialogs_test_gradient_container_list_view_cmd_callback (GtkWidget *widget,
gpointer client_data)
{
data_container_view_new (GIMP_VIEW_TYPE_LIST,
"Gradient List",
global_gradient_list,
gimp_context_get_user (),
24);
data_factory_view_new (GIMP_VIEW_TYPE_LIST,
"Gradient List",
global_gradient_factory,
gimp_context_get_user (),
24);
}
void
dialogs_test_palette_container_list_view_cmd_callback (GtkWidget *widget,
gpointer client_data)
{
data_container_view_new (GIMP_VIEW_TYPE_LIST,
"Palette List",
global_palette_list,
gimp_context_get_user (),
24);
data_factory_view_new (GIMP_VIEW_TYPE_LIST,
"Palette List",
global_palette_factory,
gimp_context_get_user (),
24);
}
void
dialogs_test_brush_container_grid_view_cmd_callback (GtkWidget *widget,
gpointer client_data)
{
data_container_view_new (GIMP_VIEW_TYPE_GRID,
"Brush Grid",
global_brush_list,
gimp_context_get_user (),
32);
data_factory_view_new (GIMP_VIEW_TYPE_GRID,
"Brush Grid",
global_brush_factory,
gimp_context_get_user (),
32);
}
void
dialogs_test_pattern_container_grid_view_cmd_callback (GtkWidget *widget,
gpointer client_data)
{
data_container_view_new (GIMP_VIEW_TYPE_GRID,
"Pattern Grid",
global_pattern_list,
gimp_context_get_user (),
24);
data_factory_view_new (GIMP_VIEW_TYPE_GRID,
"Pattern Grid",
global_pattern_factory,
gimp_context_get_user (),
24);
}
void
dialogs_test_gradient_container_grid_view_cmd_callback (GtkWidget *widget,
gpointer client_data)
{
data_container_view_new (GIMP_VIEW_TYPE_GRID,
"Gradient Grid",
global_gradient_list,
gimp_context_get_user (),
24);
data_factory_view_new (GIMP_VIEW_TYPE_GRID,
"Gradient Grid",
global_gradient_factory,
gimp_context_get_user (),
24);
}
void
dialogs_test_palette_container_grid_view_cmd_callback (GtkWidget *widget,
gpointer client_data)
{
data_container_view_new (GIMP_VIEW_TYPE_GRID,
"Palette Grid",
global_palette_list,
gimp_context_get_user (),
24);
data_factory_view_new (GIMP_VIEW_TYPE_GRID,
"Palette Grid",
global_palette_factory,
gimp_context_get_user (),
24);
}
void
......@@ -1831,7 +1832,7 @@ dialogs_test_multi_container_list_view_cmd_callback (GtkWidget *widget,
gpointer client_data)
{
container_multi_view_new (TRUE, "Multi List",
global_brush_list,
global_brush_factory->container,
gimp_context_get_user (),
24);
}
......@@ -1841,7 +1842,7 @@ dialogs_test_multi_container_grid_view_cmd_callback (GtkWidget *widget,
gpointer client_data)
{
container_multi_view_new (FALSE, "Multi Grid",
global_brush_list,
global_brush_factory->container,
gimp_context_get_user (),
32);
}
......
......@@ -29,6 +29,7 @@
#include "gimpbrush.h"
#include "gimpcontainer.h"
#include "gimpcontext.h"
#include "gimpdatafactory.h"
#incl