Commit cfd2c9c3 authored by Sven Neumann's avatar Sven Neumann Committed by Sven Neumann
Browse files

added a hack to get rid of the border drawn around thumbnails in the "Open

2004-09-28  Sven Neumann  <sven@gimp.org>

	* app/widgets/gimpaction.c (gimp_action_set_proxy): added a hack
	to get rid of the border drawn around thumbnails in the "Open Recent"
	menu.
parent d725502c
2004-09-28 Sven Neumann <sven@gimp.org>
* app/widgets/gimpaction.c (gimp_action_set_proxy): added a hack
to get rid of the border drawn around thumbnails in the "Open Recent"
menu.
2004-09-28 Sven Neumann <sven@gimp.org>
* app/tools/gimpimagemaptool.c (gimp_image_map_tool_settings_dialog):
......
......@@ -33,6 +33,7 @@
#include "config/gimpconfig-params.h"
#include "core/gimpmarshal.h"
#include "core/gimpimagefile.h" /* eek */
#include "core/gimpviewable.h"
#include "gimpaction.h"
......@@ -312,15 +313,19 @@ gimp_action_set_proxy (GimpAction *action,
{
GdkScreen *screen;
gint width, height;
gint border_width;
screen = gtk_widget_get_screen (proxy);
gtk_icon_size_lookup_for_settings (gtk_settings_get_for_screen (screen),
GTK_ICON_SIZE_MENU,
&width, &height);
/* FIXME: remove this hack */
border_width = GIMP_IS_IMAGEFILE (action->viewable) ? 0 : 1;
view = gimp_view_new_full (action->viewable,
width - 2, height - 2, 1,
FALSE, FALSE, FALSE);
width - 2, height - 2, border_width,
FALSE, FALSE, FALSE);
gtk_image_menu_item_set_image (GTK_IMAGE_MENU_ITEM (proxy), view);
gtk_widget_show (view);
}
......
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