Commit d62a3f04 authored by Michael Natterer's avatar Michael Natterer 😴 Committed by Michael Natterer
Browse files

simplified the code which deals with the global_buffer's preview. The new

2004-09-14  Michael Natterer  <mitch@gimp.org>

	* app/widgets/gimpbufferview.c: simplified the code which deals
	with the global_buffer's preview. The new buffer view renderer
	does the aspect ratio magic all by itself now.

	* app/actions/image-commands.h: removed trailing whitespace.
parent c450ca18
2004-09-14 Michael Natterer <mitch@gimp.org>
* app/widgets/gimpbufferview.c: simplified the code which deals
with the global_buffer's preview. The new buffer view renderer
does the aspect ratio magic all by itself now.
* app/actions/image-commands.h: removed trailing whitespace.
2004-09-14 Michael Natterer <mitch@gimp.org>
* app/widgets/Makefile.am
......
......@@ -24,11 +24,11 @@ void image_new_cmd_callback (GtkAction *action,
gpointer data);
void image_new_from_image_cmd_callback (GtkAction *action,
gpointer data);
void image_convert_cmd_callback (GtkAction *action,
gint value,
gpointer data);
void image_resize_cmd_callback (GtkAction *action,
gpointer data);
void image_resize_to_layers_cmd_callback (GtkAction *action,
......@@ -43,15 +43,15 @@ void image_rotate_cmd_callback (GtkAction *action,
gpointer data);
void image_crop_cmd_callback (GtkAction *action,
gpointer data);
void image_duplicate_cmd_callback (GtkAction *action,
gpointer data);
void image_merge_layers_cmd_callback (GtkAction *action,
gpointer data);
void image_flatten_image_cmd_callback (GtkAction *action,
gpointer data);
void image_configure_grid_cmd_callback (GtkAction *action,
gpointer data);
......
......@@ -38,7 +38,7 @@
#include "gimpdnd.h"
#include "gimphelp-ids.h"
#include "gimpview.h"
#include "gimpviewrenderer.h"
#include "gimpviewrendererbuffer.h"
#include "gimpuimanager.h"
#include "gimp-intl.h"
......@@ -146,14 +146,11 @@ gimp_buffer_view_new (GimpViewType view_type,
gtk_container_add (GTK_CONTAINER (frame), hbox);
gtk_widget_show (hbox);
buffer_view->global_preview = gimp_view_new_by_types (GIMP_TYPE_VIEW,
GIMP_TYPE_BUFFER,
view_size,
view_border_width,
FALSE);
gtk_widget_set_size_request (buffer_view->global_preview,
view_size + 2 * view_border_width,
view_size + 2 * view_border_width);
buffer_view->global_preview =
gimp_view_new_full_by_types (GIMP_TYPE_VIEW,
GIMP_TYPE_BUFFER,
view_size, view_size, view_border_width,
FALSE, FALSE, TRUE);
gtk_box_pack_start (GTK_BOX (hbox), buffer_view->global_preview,
FALSE, FALSE, 0);
gtk_widget_show (buffer_view->global_preview);
......@@ -262,9 +259,6 @@ gimp_buffer_view_preview_notify (GimpContainerView *container_view,
view_size = gimp_container_view_get_preview_size (container_view,
&view_border_width);
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,
view_size + 2 * view_border_width);
gimp_view_renderer_set_size_full (view->renderer,
view_size, view_size, view_border_width);
}
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment