From 1d5d809c936ddd09d453cffb971d786056f0f9b0 Mon Sep 17 00:00:00 2001 From: Michael Natterer Date: Tue, 15 Apr 2003 11:11:25 +0000 Subject: [PATCH] use a smaller preview size for the gradient popup than for the button. 2003-04-15 Michael Natterer * app/tools/paint_options.c (gimp_paint_options_gui): use a smaller preview size for the gradient popup than for the button. --- ChangeLog | 5 +++++ app/tools/gimppaintoptions-gui.c | 5 ++++- app/tools/paint_options.c | 5 ++++- 3 files changed, 13 insertions(+), 2 deletions(-) diff --git a/ChangeLog b/ChangeLog index 7961c71773..e3d2c5d0fb 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,8 @@ +2003-04-15 Michael Natterer + + * app/tools/paint_options.c (gimp_paint_options_gui): use a smaller + preview size for the gradient popup than for the button. + 2003-04-14 Sven Neumann * Made 1.3.14 release. diff --git a/app/tools/gimppaintoptions-gui.c b/app/tools/gimppaintoptions-gui.c index a22af11ac5..9ec3e2fa96 100644 --- a/app/tools/gimppaintoptions-gui.c +++ b/app/tools/gimppaintoptions-gui.c @@ -161,12 +161,15 @@ gimp_paint_options_gui (GimpToolOptions *tool_options) { button = gimp_viewable_button_new (context->gimp->gradient_factory->container, context, - GIMP_PREVIEW_SIZE_SMALL * 2, 1, + GIMP_PREVIEW_SIZE_LARGE, 1, dialog_factory, "gimp-gradient-list", GIMP_STOCK_TOOL_BLEND, _("Open the gradient selection dialog")); + /* use smaller previews for the popup */ + GIMP_VIEWABLE_BUTTON (button)->preview_size = GIMP_PREVIEW_SIZE_SMALL; + gimp_table_attach_aligned (GTK_TABLE (table), 0, table_row++, _("Gradient:"), 1.0, 0.5, button, 2, TRUE); diff --git a/app/tools/paint_options.c b/app/tools/paint_options.c index a22af11ac5..9ec3e2fa96 100644 --- a/app/tools/paint_options.c +++ b/app/tools/paint_options.c @@ -161,12 +161,15 @@ gimp_paint_options_gui (GimpToolOptions *tool_options) { button = gimp_viewable_button_new (context->gimp->gradient_factory->container, context, - GIMP_PREVIEW_SIZE_SMALL * 2, 1, + GIMP_PREVIEW_SIZE_LARGE, 1, dialog_factory, "gimp-gradient-list", GIMP_STOCK_TOOL_BLEND, _("Open the gradient selection dialog")); + /* use smaller previews for the popup */ + GIMP_VIEWABLE_BUTTON (button)->preview_size = GIMP_PREVIEW_SIZE_SMALL; + gimp_table_attach_aligned (GTK_TABLE (table), 0, table_row++, _("Gradient:"), 1.0, 0.5, button, 2, TRUE);