mirror of https://github.com/GNOME/gimp.git
pass correct parameters to gimp_brush_select_button_new(). Fixes bug
2006-09-21 Sven Neumann <sven@gimp.org> * plug-ins/gfig/gfig-dialog.c: pass correct parameters to gimp_brush_select_button_new(). Fixes bug #356901. * plug-ins/script-fu/scripts/test-sphere.scm: use 100.0 as the default opacity for SF-BRUSH.
This commit is contained in:
parent
28bdb8a2e9
commit
b69be084b1
|
@ -1,5 +1,14 @@
|
|||
2006-09-21 Sven Neumann <sven@gimp.org>
|
||||
|
||||
* plug-ins/gfig/gfig-dialog.c: pass correct parameters to
|
||||
gimp_brush_select_button_new(). Fixes bug #356901.
|
||||
|
||||
* plug-ins/script-fu/scripts/test-sphere.scm: use 100.0 as the
|
||||
default opacity for SF-BRUSH.
|
||||
|
||||
2006-09-21 Sven Neumann <sven@gimp.org>
|
||||
|
||||
* plug-ins/script-fu/scripts/test-sphere.scm ("script-fu-test-sphere"):
|
||||
* app/base/tile-manager.c (read_pixel_data_1) (write_pixel_data_1):
|
||||
use the same code on all platforms. The optimization for bytes == 4
|
||||
was pointless anyway.
|
||||
|
|
|
@ -246,7 +246,7 @@ gfig_dialog (void)
|
|||
{
|
||||
newlayer = gimp_layer_new (gfig_context->image_id, "GFig",
|
||||
img_width, img_height,
|
||||
GIMP_RGBA_IMAGE, 100., GIMP_NORMAL_MODE);
|
||||
GIMP_RGBA_IMAGE, 100.0, GIMP_NORMAL_MODE);
|
||||
gimp_drawable_fill (newlayer, GIMP_TRANSPARENT_FILL);
|
||||
gimp_image_add_layer (gfig_context->image_id, newlayer, -1);
|
||||
gfig_context->drawable_id = newlayer;
|
||||
|
@ -390,7 +390,7 @@ gfig_dialog (void)
|
|||
gfig_context->brush_select
|
||||
= gimp_brush_select_button_new ("Brush",
|
||||
gfig_context->default_style.brush_name,
|
||||
-1.0, -1, -1);
|
||||
100.0, -1, GIMP_NORMAL_MODE);
|
||||
g_signal_connect (gfig_context->brush_select, "brush-set",
|
||||
G_CALLBACK (gfig_brush_changed_callback), NULL);
|
||||
gtk_box_pack_start (GTK_BOX (vbox), gfig_context->brush_select,
|
||||
|
|
|
@ -53,12 +53,12 @@
|
|||
; units as passed in as the default value.
|
||||
;
|
||||
; Usage:
|
||||
; SF-BRUSH "Brush" '("Circle (03)" 1.0 44 0)
|
||||
; SF-BRUSH "Brush" '("Circle (03)" 100.0 44 0)
|
||||
;
|
||||
; Here the brush dialog will be popped up with a default brush of Circle (03)
|
||||
; opacity 1.0, spacing 44 and paint mode of Normal (value 0).
|
||||
; opacity 100, spacing 44 and paint mode of Normal (value 0).
|
||||
; If this selection was unchanged the value passed to the function as a
|
||||
; paramater would be '("Circle (03)" 1.0 44 0). BTW the widget used
|
||||
; paramater would be '("Circle (03)" 100.0 44 0). BTW the widget used
|
||||
; is generally available in the libgimpui library for any plugin that
|
||||
; wishes to select a brush.
|
||||
;
|
||||
|
@ -268,7 +268,7 @@
|
|||
SF-TOGGLE "Shadow" TRUE
|
||||
SF-COLOR "Background color" "white"
|
||||
SF-COLOR "Sphere color" "#FF0000"
|
||||
SF-BRUSH "Brush" '("Circle (03)" 1.0 44 0)
|
||||
SF-BRUSH "Brush" '("Circle (03)" 100.0 44 0)
|
||||
SF-STRING "Text" "Script-Fu rocks!"
|
||||
SF-TEXT "Multi-line text" "Hello,\nWorld!"
|
||||
SF-PATTERN "Pattern" "Maple Leaves"
|
||||
|
|
Loading…
Reference in New Issue