From cfd2c9c367cc984853842dc6bcc69fdeeced1921 Mon Sep 17 00:00:00 2001 From: Sven Neumann Date: Mon, 27 Sep 2004 23:31:46 +0000 Subject: [PATCH] added a hack to get rid of the border drawn around thumbnails in the "Open 2004-09-28 Sven Neumann * 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. --- ChangeLog | 6 ++++++ app/widgets/gimpaction.c | 9 +++++++-- 2 files changed, 13 insertions(+), 2 deletions(-) diff --git a/ChangeLog b/ChangeLog index 79ec2d23db..2c10243957 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,9 @@ +2004-09-28 Sven Neumann + + * 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 * app/tools/gimpimagemaptool.c (gimp_image_map_tool_settings_dialog): diff --git a/app/widgets/gimpaction.c b/app/widgets/gimpaction.c index f355153672..78ba31e2c5 100644 --- a/app/widgets/gimpaction.c +++ b/app/widgets/gimpaction.c @@ -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); }