Commit e91187ae authored by David Odin's avatar David Odin

app/widgets/gimppreview-popup.c renamed these files...

* app/widgets/gimppreview-popup.c
* app/widgets/gimppreview-popup.h: renamed these files...

* app/widgets/gimpview-popup.c
* app/widgets/gimpview-popup.h: .. to these files, and changed the
  GimpPreviewPopup type to GimpViewPopup.

* app/widgets/gimppreviewrenderer.c
* app/widgets/gimppreviewrenderer.h: renamed these files...

* app/widgets/gimpviewrenderer.c
* app/widgets/gimpviewrenderer.h: .. to these files, and changed
  GimpPreviewRenderer to GimpViewRenderer.

This is the second step of the great Preview->View renaming process.

* app/display/gimpdisplayshell-layer-select.c
* app/display/gimpnavigationeditor.c

* app/widgets/Makefile.am
* app/widgets/gimpbrushfactoryview.c
* app/widgets/gimpbufferview.c
* app/widgets/gimpcellrendererviewable.c
* app/widgets/gimpcellrendererviewable.h
* app/widgets/gimpcomponenteditor.c
* app/widgets/gimpcontainerbox.c
* app/widgets/gimpcontainercombobox.c
* app/widgets/gimpcontainereditor.c
* app/widgets/gimpcontainerentry.c
* app/widgets/gimpcontainergridview.c
* app/widgets/gimpcontainerpopup.c
* app/widgets/gimpcontainertreeview-dnd.c
* app/widgets/gimpcontainertreeview.c
* app/widgets/gimpcontainerview.c
* app/widgets/gimpdatafactoryview.c
* app/widgets/gimpitemtreeview.c
* app/widgets/gimplayertreeview.c
* app/widgets/gimpnavigationpreview.c
* app/widgets/gimppatternfactoryview.c
* app/widgets/gimppreviewrenderer-utils.c
* app/widgets/gimppreviewrendererbrush.c
* app/widgets/gimppreviewrendererbrush.h
* app/widgets/gimppreviewrendererdrawable.c
* app/widgets/gimppreviewrendererdrawable.h
* app/widgets/gimppreviewrenderergradient.c
* app/widgets/gimppreviewrenderergradient.h
* app/widgets/gimppreviewrendererimage.c
* app/widgets/gimppreviewrendererimage.h
* app/widgets/gimppreviewrendererimagefile.c
* app/widgets/gimppreviewrendererimagefile.h
* app/widgets/gimppreviewrendererlayer.c
* app/widgets/gimppreviewrenderervectors.c
* app/widgets/gimpselectioneditor.c
* app/widgets/gimptemplateview.c
* app/widgets/gimptooloptionseditor.c
* app/widgets/gimptoolview.c
* app/widgets/gimpview.c
* app/widgets/gimpview.h
* app/widgets/gimpviewablebutton.c
* app/widgets/widgets-enums.h
* app/widgets/widgets-types.h: Modified accordingly.
parent e6a034fc
2004-08-26 DindinX <david@dindinx.org>
* app/widgets/gimppreview-popup.c
* app/widgets/gimppreview-popup.h: renamed these files...
* app/widgets/gimpview-popup.c
* app/widgets/gimpview-popup.h: .. to these files, and changed the
GimpPreviewPopup type to GimpViewPopup.
* app/widgets/gimppreviewrenderer.c
* app/widgets/gimppreviewrenderer.h: renamed these files...
* app/widgets/gimpviewrenderer.c
* app/widgets/gimpviewrenderer.h: .. to these files, and changed
GimpPreviewRenderer to GimpViewRenderer.
This is the second step of the great Preview->View renaming process.
* app/display/gimpdisplayshell-layer-select.c
* app/display/gimpnavigationeditor.c
* app/widgets/Makefile.am
* app/widgets/gimpbrushfactoryview.c
* app/widgets/gimpbufferview.c
* app/widgets/gimpcellrendererviewable.c
* app/widgets/gimpcellrendererviewable.h
* app/widgets/gimpcomponenteditor.c
* app/widgets/gimpcontainerbox.c
* app/widgets/gimpcontainercombobox.c
* app/widgets/gimpcontainereditor.c
* app/widgets/gimpcontainerentry.c
* app/widgets/gimpcontainergridview.c
* app/widgets/gimpcontainerpopup.c
* app/widgets/gimpcontainertreeview-dnd.c
* app/widgets/gimpcontainertreeview.c
* app/widgets/gimpcontainerview.c
* app/widgets/gimpdatafactoryview.c
* app/widgets/gimpitemtreeview.c
* app/widgets/gimplayertreeview.c
* app/widgets/gimpnavigationpreview.c
* app/widgets/gimppatternfactoryview.c
* app/widgets/gimppreviewrenderer-utils.c
* app/widgets/gimppreviewrendererbrush.c
* app/widgets/gimppreviewrendererbrush.h
* app/widgets/gimppreviewrendererdrawable.c
* app/widgets/gimppreviewrendererdrawable.h
* app/widgets/gimppreviewrenderergradient.c
* app/widgets/gimppreviewrenderergradient.h
* app/widgets/gimppreviewrendererimage.c
* app/widgets/gimppreviewrendererimage.h
* app/widgets/gimppreviewrendererimagefile.c
* app/widgets/gimppreviewrendererimagefile.h
* app/widgets/gimppreviewrendererlayer.c
* app/widgets/gimppreviewrenderervectors.c
* app/widgets/gimpselectioneditor.c
* app/widgets/gimptemplateview.c
* app/widgets/gimptooloptionseditor.c
* app/widgets/gimptoolview.c
* app/widgets/gimpview.c
* app/widgets/gimpview.h
* app/widgets/gimpviewablebutton.c
* app/widgets/widgets-enums.h
* app/widgets/widgets-types.h: Modified accordingly.
2004-08-25 Sven Neumann <sven@gimp.org>
* app/widgets/gimperrordialog.[ch] (gimp_error_dialog_add): stop
......
......@@ -31,7 +31,6 @@
#include "core/gimplayer.h"
#include "widgets/gimpview.h"
#include "widgets/gimppreviewrenderer.h"
#include "gimpdisplay.h"
#include "gimpdisplayshell.h"
......
......@@ -39,7 +39,7 @@
#include "widgets/gimpdocked.h"
#include "widgets/gimphelp-ids.h"
#include "widgets/gimpnavigationpreview.h"
#include "widgets/gimppreviewrenderer.h"
#include "widgets/gimpviewrenderer.h"
#include "gimpdisplay.h"
#include "gimpdisplayshell.h"
......@@ -431,7 +431,7 @@ gimp_navigation_editor_new_private (GimpDisplayShell *shell,
{
GimpView *view = GIMP_VIEW (editor->view);
gimp_preview_renderer_set_size (view->renderer,
gimp_view_renderer_set_size (view->renderer,
config->nav_preview_size * 3,
view->renderer->border_width);
}
......@@ -530,7 +530,7 @@ gimp_navigation_editor_new_private (GimpDisplayShell *shell,
if (shell)
gimp_navigation_editor_set_shell (editor, shell);
gimp_preview_renderer_set_background (GIMP_VIEW (editor->view)->renderer,
gimp_view_renderer_set_background (GIMP_VIEW (editor->view)->renderer,
GIMP_STOCK_TEXTURE);
return GTK_WIDGET (editor);
......@@ -741,7 +741,7 @@ gimp_navigation_editor_shell_reconnect (GimpDisplayShell *shell,
static void
gimp_navigation_editor_update_marker (GimpNavigationEditor *editor)
{
GimpPreviewRenderer *renderer;
GimpViewRenderer *renderer;
gdouble xratio;
gdouble yratio;
......@@ -751,7 +751,7 @@ gimp_navigation_editor_update_marker (GimpNavigationEditor *editor)
yratio = SCALEFACTOR_Y (editor->shell);
if (renderer->dot_for_dot != editor->shell->dot_for_dot)
gimp_preview_renderer_set_dot_for_dot (renderer,
gimp_view_renderer_set_dot_for_dot (renderer,
editor->shell->dot_for_dot);
gimp_navigation_preview_set_marker (GIMP_NAVIGATION_PREVIEW (editor->view),
......
......@@ -188,10 +188,6 @@ libappwidgets_a_sources = \
gimppdbdialog.h \
gimppluginaction.c \
gimppluginaction.h \
gimppreview-popup.c \
gimppreview-popup.h \
gimppreviewrenderer.c \
gimppreviewrenderer.h \
gimppreviewrenderer-utils.c \
gimppreviewrenderer-utils.h \
gimppreviewrendererbrush.c \
......@@ -260,10 +256,14 @@ libappwidgets_a_sources = \
gimpvectorstreeview.h \
gimpview.c \
gimpview.h \
gimpview-popup.c \
gimpview-popup.h \
gimpviewablebutton.c \
gimpviewablebutton.h \
gimpviewabledialog.c \
gimpviewabledialog.h \
gimpviewrenderer.c \
gimpviewrenderer.h \
gimpwidgets-constructors.c \
gimpwidgets-constructors.h \
gimpwidgets-utils.c \
......
......@@ -35,7 +35,7 @@
#include "gimpcontainerview.h"
#include "gimpbrushfactoryview.h"
#include "gimppreviewrenderer.h"
#include "gimpviewrenderer.h"
#include "gimp-intl.h"
......@@ -153,18 +153,18 @@ gimp_brush_factory_view_new (GimpViewType view_type,
GimpDataEditFunc edit_func,
GimpContext *context,
gboolean change_brush_spacing,
gint preview_size,
gint preview_border_width,
gint view_size,
gint view_border_width,
GimpMenuFactory *menu_factory)
{
GimpBrushFactoryView *factory_view;
GimpContainerEditor *editor;
g_return_val_if_fail (GIMP_IS_DATA_FACTORY (factory), NULL);
g_return_val_if_fail (preview_size > 0 &&
preview_size <= GIMP_VIEWABLE_MAX_PREVIEW_SIZE, NULL);
g_return_val_if_fail (preview_border_width >= 0 &&
preview_border_width <= GIMP_PREVIEW_MAX_BORDER_WIDTH,
g_return_val_if_fail (view_size > 0 &&
view_size <= GIMP_VIEWABLE_MAX_PREVIEW_SIZE, NULL);
g_return_val_if_fail (view_border_width >= 0 &&
view_border_width <= GIMP_VIEW_MAX_BORDER_WIDTH,
NULL);
factory_view = g_object_new (GIMP_TYPE_BRUSH_FACTORY_VIEW, NULL);
......@@ -176,7 +176,7 @@ gimp_brush_factory_view_new (GimpViewType view_type,
factory,
edit_func,
context,
preview_size, preview_border_width,
view_size, view_border_width,
menu_factory, "<Brushes>",
"/brushes-popup",
"brushes"))
......
......@@ -38,7 +38,7 @@
#include "gimpdnd.h"
#include "gimphelp-ids.h"
#include "gimpview.h"
#include "gimppreviewrenderer.h"
#include "gimpviewrenderer.h"
#include "gimpuimanager.h"
#include "gimp-intl.h"
......@@ -262,7 +262,7 @@ gimp_buffer_view_preview_notify (GimpContainerView *container_view,
view_size = gimp_container_view_get_preview_size (container_view,
&view_border_width);
gimp_preview_renderer_set_size (view->renderer,
gimp_view_renderer_set_size (view->renderer,
view_size, view_border_width);
gtk_widget_set_size_request (buffer_view->global_preview,
view_size + 2 * view_border_width,
......
......@@ -29,8 +29,8 @@
#include "core/gimpviewable.h"
#include "gimpcellrendererviewable.h"
#include "gimppreview-popup.h"
#include "gimppreviewrenderer.h"
#include "gimpview-popup.h"
#include "gimpviewrenderer.h"
enum
......@@ -147,7 +147,7 @@ gimp_cell_renderer_viewable_class_init (GimpCellRendererViewableClass *klass)
PROP_RENDERER,
g_param_spec_object ("renderer",
NULL, NULL,
GIMP_TYPE_PREVIEW_RENDERER,
GIMP_TYPE_VIEW_RENDERER,
G_PARAM_READWRITE));
}
......@@ -203,9 +203,9 @@ gimp_cell_renderer_viewable_set_property (GObject *object,
{
case PROP_RENDERER:
{
GimpPreviewRenderer *renderer;
GimpViewRenderer *renderer;
renderer = (GimpPreviewRenderer *) g_value_dup_object (value);
renderer = (GimpViewRenderer *) g_value_dup_object (value);
if (cell->renderer)
g_object_unref (cell->renderer);
cell->renderer = renderer;
......@@ -228,8 +228,8 @@ gimp_cell_renderer_viewable_get_size (GtkCellRenderer *cell,
gint *height)
{
GimpCellRendererViewable *cellviewable;
gint preview_width = 0;
gint preview_height = 0;
gint view_width = 0;
gint view_height = 0;
gint calc_width;
gint calc_height;
......@@ -237,19 +237,19 @@ gimp_cell_renderer_viewable_get_size (GtkCellRenderer *cell,
if (cellviewable->renderer)
{
preview_width = (cellviewable->renderer->width +
view_width = (cellviewable->renderer->width +
2 * cellviewable->renderer->border_width);
preview_height = (cellviewable->renderer->height +
view_height = (cellviewable->renderer->height +
2 * cellviewable->renderer->border_width);
}
calc_width = (gint) cell->xpad * 2 + preview_width;
calc_height = (gint) cell->ypad * 2 + preview_height;
calc_width = (gint) cell->xpad * 2 + view_width;
calc_height = (gint) cell->ypad * 2 + view_height;
if (x_offset) *x_offset = 0;
if (y_offset) *y_offset = 0;
if (cell_area && preview_width > 0 && preview_height > 0)
if (cell_area && view_width > 0 && view_height > 0)
{
if (x_offset)
{
......@@ -288,16 +288,16 @@ gimp_cell_renderer_viewable_render (GtkCellRenderer *cell,
if (! (flags & GTK_CELL_RENDERER_SELECTED))
{
/* this is an ugly hack. The cell state should be passed to
* the preview renderer, so that it can adjust its border.
* the view renderer, so that it can adjust its border.
* (or something like this) */
if (cellviewable->renderer->border_type == GIMP_PREVIEW_BORDER_WHITE)
gimp_preview_renderer_set_border_type (cellviewable->renderer,
GIMP_PREVIEW_BORDER_BLACK);
if (cellviewable->renderer->border_type == GIMP_VIEW_BORDER_WHITE)
gimp_view_renderer_set_border_type (cellviewable->renderer,
GIMP_VIEW_BORDER_BLACK);
gimp_preview_renderer_remove_idle (cellviewable->renderer);
gimp_view_renderer_remove_idle (cellviewable->renderer);
}
gimp_preview_renderer_draw (cellviewable->renderer, window, widget,
gimp_view_renderer_draw (cellviewable->renderer, window, widget,
cell_area, expose_area);
}
}
......@@ -362,7 +362,7 @@ gimp_cell_renderer_viewable_clicked (GimpCellRendererViewable *cell,
if (bevent->type == GDK_BUTTON_PRESS &&
(bevent->button == 1 || bevent->button == 2))
{
gimp_preview_popup_show (gtk_get_event_widget (event),
gimp_view_popup_show (gtk_get_event_widget (event),
bevent,
cell->renderer->viewable,
cell->renderer->width,
......
......@@ -40,7 +40,7 @@ struct _GimpCellRendererViewable
{
GtkCellRenderer parent_instance;
GimpPreviewRenderer *renderer;
GimpViewRenderer *renderer;
};
struct _GimpCellRendererViewableClass
......
......@@ -71,7 +71,7 @@ static gboolean gimp_component_editor_select (GtkTreeSelection *select
static gboolean gimp_component_editor_button_press (GtkWidget *widget,
GdkEventButton *bevent,
GimpComponentEditor *editor);
static void gimp_component_editor_renderer_update (GimpPreviewRenderer *renderer,
static void gimp_component_editor_renderer_update (GimpViewRenderer *renderer,
GimpComponentEditor *editor);
static void gimp_component_editor_mode_changed (GimpImage *gimage,
GimpComponentEditor *editor);
......@@ -146,7 +146,7 @@ gimp_component_editor_init (GimpComponentEditor *editor)
list = gtk_list_store_new (NUM_COLUMNS,
G_TYPE_INT,
G_TYPE_BOOLEAN,
GIMP_TYPE_PREVIEW_RENDERER,
GIMP_TYPE_VIEW_RENDERER,
G_TYPE_STRING);
editor->model = GTK_TREE_MODEL (list);
......@@ -207,13 +207,13 @@ gimp_component_editor_unrealize (GtkWidget *widget)
iter_valid;
iter_valid = gtk_tree_model_iter_next (editor->model, &iter))
{
GimpPreviewRenderer *renderer;
GimpViewRenderer *renderer;
gtk_tree_model_get (editor->model, &iter,
COLUMN_RENDERER, &renderer,
-1);
gimp_preview_renderer_unrealize (renderer);
gimp_view_renderer_unrealize (renderer);
g_object_unref (renderer);
}
......@@ -319,13 +319,13 @@ gimp_component_editor_set_preview_size (GimpComponentEditor *editor,
iter_valid;
iter_valid = gtk_tree_model_iter_next (editor->model, &iter))
{
GimpPreviewRenderer *renderer;
GimpViewRenderer *renderer;
gtk_tree_model_get (editor->model, &iter,
COLUMN_RENDERER, &renderer,
-1);
gimp_preview_renderer_set_size (renderer, preview_size, 1);
gimp_view_renderer_set_size (renderer, preview_size, 1);
g_object_unref (renderer);
}
......@@ -372,17 +372,17 @@ gimp_component_editor_create_components (GimpComponentEditor *editor)
for (i = 0; i < n_components; i++)
{
GimpPreviewRenderer *renderer;
GimpViewRenderer *renderer;
gboolean visible;
GEnumValue *enum_value;
GtkTreeIter iter;
visible = gimp_image_get_component_visible (gimage, components[i]);
renderer = gimp_preview_renderer_new (G_TYPE_FROM_INSTANCE (gimage),
renderer = gimp_view_renderer_new (G_TYPE_FROM_INSTANCE (gimage),
editor->preview_size, 1, FALSE);
gimp_preview_renderer_set_viewable (renderer, GIMP_VIEWABLE (gimage));
gimp_preview_renderer_remove_idle (renderer);
gimp_view_renderer_set_viewable (renderer, GIMP_VIEWABLE (gimage));
gimp_view_renderer_remove_idle (renderer);
GIMP_PREVIEW_RENDERER_IMAGE (renderer)->channel = components[i];
......@@ -546,7 +546,7 @@ gimp_component_editor_get_iter (GimpComponentEditor *editor,
}
static void
gimp_component_editor_renderer_update (GimpPreviewRenderer *renderer,
gimp_component_editor_renderer_update (GimpViewRenderer *renderer,
GimpComponentEditor *editor)
{
GtkTreeIter iter;
......
......@@ -37,7 +37,7 @@
#include "gimpdnd.h"
#include "gimpdocked.h"
#include "gimpview.h"
#include "gimppreviewrenderer.h"
#include "gimpviewrenderer.h"
#include "gimppropwidgets.h"
......@@ -237,7 +237,7 @@ gimp_container_box_get_preview (GimpDocked *docked,
preview = gimp_prop_preview_new (G_OBJECT (context), prop_name, height);
GIMP_VIEW (preview)->renderer->size = -1;
gimp_preview_renderer_set_size_full (GIMP_VIEW (preview)->renderer,
gimp_view_renderer_set_size_full (GIMP_VIEW (preview)->renderer,
width, height, border_width);
return preview;
......
......@@ -34,7 +34,7 @@
#include "gimpcellrendererviewable.h"
#include "gimpcontainercombobox.h"
#include "gimpcontainerview.h"
#include "gimppreviewrenderer.h"
#include "gimpviewrenderer.h"
enum
......@@ -71,7 +71,7 @@ static void gimp_container_combo_box_set_preview_size (GimpContainerView *v
static void gimp_container_combo_box_changed (GtkComboBox *combo_box,
GimpContainerView *view);
static void gimp_container_combo_box_renderer_update (GimpPreviewRenderer *renderer,
static void gimp_container_combo_box_renderer_update (GimpViewRenderer *renderer,
GimpContainerView *view);
......@@ -152,7 +152,7 @@ gimp_container_combo_box_init (GimpContainerComboBox *combo_box)
GtkCellRenderer *cell;
store = gtk_list_store_new (NUM_COLUMNS,
GIMP_TYPE_PREVIEW_RENDERER,
GIMP_TYPE_VIEW_RENDERER,
G_TYPE_STRING);
gtk_combo_box_set_model (GTK_COMBO_BOX (combo_box), GTK_TREE_MODEL (store));
......@@ -237,7 +237,7 @@ gimp_container_combo_box_set (GimpContainerComboBox *combo_box,
{
GimpContainerView *view = GIMP_CONTAINER_VIEW (combo_box);
GtkTreeModel *model;
GimpPreviewRenderer *renderer;
GimpViewRenderer *renderer;
gchar *name;
gint preview_size;
gint border_width;
......@@ -248,11 +248,11 @@ gimp_container_combo_box_set (GimpContainerComboBox *combo_box,
name = gimp_viewable_get_description (viewable, NULL);
renderer = gimp_preview_renderer_new (G_TYPE_FROM_INSTANCE (viewable),
renderer = gimp_view_renderer_new (G_TYPE_FROM_INSTANCE (viewable),
preview_size, border_width,
FALSE);
gimp_preview_renderer_set_viewable (renderer, viewable);
gimp_preview_renderer_remove_idle (renderer);
gimp_view_renderer_set_viewable (renderer, viewable);
gimp_view_renderer_remove_idle (renderer);
g_signal_connect (renderer, "update",
G_CALLBACK (gimp_container_combo_box_renderer_update),
......@@ -434,13 +434,13 @@ gimp_container_combo_box_set_preview_size (GimpContainerView *view)
iter_valid;
iter_valid = gtk_tree_model_iter_next (model, &iter))
{
GimpPreviewRenderer *renderer;
GimpViewRenderer *renderer;
gtk_tree_model_get (model, &iter,
COLUMN_RENDERER, &renderer,
-1);
gimp_preview_renderer_set_size (renderer, preview_size, border_width);
gimp_view_renderer_set_size (renderer, preview_size, border_width);
g_object_unref (renderer);
}
}
......@@ -456,7 +456,7 @@ gimp_container_combo_box_changed (GtkComboBox *combo_box,
if (gtk_combo_box_get_active_iter (combo_box, &iter))
{
GimpPreviewRenderer *renderer;
GimpViewRenderer *renderer;
gtk_tree_model_get (gtk_combo_box_get_model (combo_box), &iter,
COLUMN_RENDERER, &renderer,
......@@ -468,7 +468,7 @@ gimp_container_combo_box_changed (GtkComboBox *combo_box,
}
static void
gimp_container_combo_box_renderer_update (GimpPreviewRenderer *renderer,
gimp_container_combo_box_renderer_update (GimpViewRenderer *renderer,
GimpContainerView *view)
{
GtkTreeIter *iter = gimp_container_view_lookup (view, renderer->viewable);
......
......@@ -37,7 +37,7 @@
#include "gimpcontainerview.h"
#include "gimpdocked.h"
#include "gimpmenufactory.h"
#include "gimppreviewrenderer.h"
#include "gimpviewrenderer.h"
#include "gimpuimanager.h"
......@@ -152,7 +152,7 @@ gimp_container_editor_construct (GimpContainerEditor *editor,
g_return_val_if_fail (preview_size > 0 &&
preview_size <= GIMP_VIEWABLE_MAX_PREVIEW_SIZE, FALSE);
g_return_val_if_fail (preview_border_width >= 0 &&
preview_border_width <= GIMP_PREVIEW_MAX_BORDER_WIDTH,
preview_border_width <= GIMP_VIEW_MAX_BORDER_WIDTH,
FALSE);
g_return_val_if_fail (menu_factory == NULL ||
GIMP_IS_MENU_FACTORY (menu_factory), FALSE);
......
......@@ -34,7 +34,7 @@
#include "gimpcellrendererviewable.h"
#include "gimpcontainerentry.h"
#include "gimpcontainerview.h"
#include "gimppreviewrenderer.h"
#include "gimpviewrenderer.h"
#define gimp_container_entry_get_model(entry) \
......@@ -67,7 +67,7 @@ static void gimp_container_entry_set_preview_size (GimpContainerView *view)
static void gimp_container_entry_changed (GtkEntry *entry,
GimpContainerView *view);
static void gimp_container_entry_renderer_update (GimpPreviewRenderer *renderer,
static void gimp_container_entry_renderer_update (GimpViewRenderer *renderer,
GimpContainerView *view);
......@@ -150,7 +150,7 @@ gimp_container_entry_init (GimpContainerEntry *entry)
completion = gtk_entry_completion_new ();
store = gtk_list_store_new (GIMP_CONTAINER_ENTRY_NUM_COLUMNS,
GIMP_TYPE_PREVIEW_RENDERER,
GIMP_TYPE_VIEW_RENDERER,
G_TYPE_STRING);
gtk_entry_completion_set_model (completion, GTK_TREE_MODEL (store));
......@@ -232,17 +232,17 @@ gimp_container_entry_set (GimpContainerEntry *entry,
{
GimpContainerView *view = GIMP_CONTAINER_VIEW (entry);
GtkTreeModel *model = gimp_container_entry_get_model (entry);
GimpPreviewRenderer *renderer;
GimpViewRenderer *renderer;
gint preview_size;
gint border_width;
preview_size = gimp_container_view_get_preview_size (view, &border_width);
renderer = gimp_preview_renderer_new (G_TYPE_FROM_INSTANCE (viewable),
renderer = gimp_view_renderer_new (G_TYPE_FROM_INSTANCE (viewable),
preview_size, border_width,
FALSE);
gimp_preview_renderer_set_viewable (renderer, viewable);
gimp_preview_renderer_remove_idle (renderer);
gimp_view_renderer_set_viewable (renderer, viewable);
gimp_view_renderer_remove_idle (renderer);
g_signal_connect (renderer, "update",
G_CALLBACK (gimp_container_entry_renderer_update),
......@@ -401,13 +401,13 @@ gimp_container_entry_set_preview_size (GimpContainerView *view)
iter_valid;
iter_valid = gtk_tree_model_iter_next (model, &iter))
{
GimpPreviewRenderer *renderer;
GimpViewRenderer *renderer;
gtk_tree_model_get (model, &iter,
GIMP_CONTAINER_ENTRY_COLUMN_RENDERER, &renderer,
-1);
gimp_preview_renderer_set_size (renderer, preview_size, border_width);
gimp_view_renderer_set_size (renderer, preview_size, border_width);
g_object_unref (renderer);
}
}
......@@ -432,7 +432,7 @@ gimp_container_entry_changed (GtkEntry *entry,
}
static void
gimp_container_entry_renderer_update (GimpPreviewRenderer *renderer,
gimp_container_entry_renderer_update (GimpViewRenderer *renderer,
GimpContainerView *view)
{
GtkTreeIter *iter = gimp_container_view_lookup (view, renderer->viewable);
......
......@@ -37,7 +37,7 @@
#include "gimpcontainergridview.h"
#include "gimpcontainerview.h"
#include "gimpview.h"
#include "gimppreviewrenderer.h"
#include "gimpviewrenderer.h"
#include "gimpwidgets-utils.h"
#include "gtkhwrapbox.h"
......@@ -254,7 +254,7 @@ gimp_container_grid_view_new (GimpContainer *container,
g_return_val_if_fail (view_size > 0 &&
view_size <= GIMP_VIEWABLE_MAX_PREVIEW_SIZE, NULL);
g_return_val_if_fail (view_border_width >= 0 &&
view_border_width <= GIMP_PREVIEW_MAX_BORDER_WIDTH,
view_border_width <= GIMP_VIEW_MAX_BORDER_WIDTH,
NULL);
grid_view = g_object_new (GIMP_TYPE_CONTAINER_GRID_VIEW, NULL);
......@@ -429,9 +429,9 @@ gimp_container_grid_view_insert_item (GimpContainerView *view,
preview_size,
1,
FALSE, TRUE, TRUE);
gimp_preview_renderer_set_border_type (GIMP_VIEW (preview)->renderer,
GIMP_PREVIEW_BORDER_WHITE);
gimp_preview_renderer_remove_idle (GIMP_VIEW (preview)->renderer);
gimp_view_renderer_set_border_type (GIMP_VIEW (preview)->renderer,
GIMP_VIEW_BORDER_WHITE);
gimp_view_renderer_remove_idle (GIMP_VIEW (preview)->renderer);
gtk_wrap_box_pack (GTK_WRAP_BOX (grid_view->wrap_box), preview,
FALSE, FALSE, FALSE, FALSE);
......@@ -539,7 +539,7 @@ gimp_container_grid_view_set_preview_size (GimpContainerView *view)
{
GimpView *view = GIMP_VIEW (child->widget);
gimp_preview_renderer_set_size (view->renderer,
gimp_view_renderer_set_size (view->renderer,
preview_size,
view->renderer->border_width);
}
......@@ -608,9 +608,9 @@ gimp_container_grid_view_highlight_item (GimpContainerView *view,
if (grid_view->selected_item && grid_view->selected_item != preview)
{
gimp_preview_renderer_set_border_type (grid_view->selected_item->renderer,
GIMP_PREVIEW_BORDER_WHITE);
gimp_preview_renderer_update (grid_view->selected_item->renderer);
gimp_view_renderer_set_border_type (grid_view->selected_item->renderer,
GIMP_VIEW_BORDER_WHITE);
gimp_view_renderer_update (grid_view->selected_item->renderer);
}
if (preview)
......@@ -644,8 +644,9 @@ gimp_container_grid_view_highlight_item (GimpContainerView *view,
(row + 1) * item_height - adj->page_size);
}
gimp_preview_renderer_set_border_type (preview->renderer, GIMP_PREVIEW_BORDER_BLACK);
gimp_preview_renderer_update (preview->renderer);
gimp_view_renderer_set_border_type (preview->renderer,
GIMP_VIEW_BORDER_BLACK);
gimp_view_renderer_update (preview->renderer);
name = gimp_viewable_get_description (preview->renderer->viewable, NULL);
gtk_label_set_text (GTK_LABEL (grid_view->name_label), name);
......
......@@ -39,7 +39,7 @@
#include "gimpcontainertreeview.h"
#include "gimpcontainerview.h"
#include "gimpdialogfactory.h"
#include "gimppreviewrenderer.h"
#include "gimpviewrenderer.h"
#include "gimp-intl.h"
......@@ -369,7 +369,7 @@ gimp_container_popup_new (GimpContainer *container,
g_return_val_if_fail (preview_size > 0 &&
preview_size <= GIMP_VIEWABLE_MAX_POPUP_SIZE, NULL);
g_return_val_if_fail (preview_border_width >= 0 &&
preview_border_width <= GIMP_PREVIEW_MAX_BORDER_WIDTH,
preview_border_width <= GIMP_VIEW_MAX_BORDER_WIDTH,
NULL);
g_return_val_if_fail (dialog_factory == NULL ||
GIMP_IS_DIALOG_FACTORY (dialog_factory), NULL);
......
......@@ -32,7 +32,7 @@
#include "gimpcontainertreeview-dnd.h"
#include "gimpcontainerview.h"
#include "gimpdnd.h"
#include "gimppreviewrenderer.h"
#include "gimpviewrenderer.h"