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.
This commit is contained in:
committed by
Sven Neumann
parent
d725502cff
commit
cfd2c9c367
@ -1,3 +1,9 @@
|
||||
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);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user