mirror of https://github.com/GNOME/gimp.git
fix width > height case
* plug-ins/tiler/tiler.c: fix width > height case * plug-ins/blinds/blinds.c * plug-ins/convmatrix/convmatrix.c * plug-ins/tileit/tileit.c: removed spurious gtk_container_add's -Yosh
This commit is contained in:
parent
d2d8b1894f
commit
fd87592458
|
@ -1,3 +1,11 @@
|
|||
Wed Apr 29 15:38:55 PDT 1998 Manish Singh <yosh@gimp.org>
|
||||
|
||||
* plug-ins/tiler/tiler.c: fix width > height case
|
||||
|
||||
* plug-ins/blinds/blinds.c
|
||||
* plug-ins/convmatrix/convmatrix.c
|
||||
* plug-ins/tileit/tileit.c: removed spurious gtk_container_add's
|
||||
|
||||
Wed Apr 29 07:50:26 EDT 1998 Adrian Likins <adrian@gimp.org>
|
||||
|
||||
* gimp.1: updated man page to reflect new --debug-handlers
|
||||
|
|
|
@ -375,7 +375,6 @@ blinds_dialog ()
|
|||
gtk_widget_show(xframe);
|
||||
gtk_table_attach(GTK_TABLE(table), xframe, 0, 1, 0, 2, GTK_EXPAND , GTK_EXPAND, 0, 0);
|
||||
gtk_widget_show(frame); /* ALT-I */
|
||||
gtk_container_add(GTK_CONTAINER(frame), xframe);
|
||||
|
||||
gtk_widget_show(table);
|
||||
gtk_widget_show(bint.preview);
|
||||
|
|
|
@ -375,7 +375,6 @@ blinds_dialog ()
|
|||
gtk_widget_show(xframe);
|
||||
gtk_table_attach(GTK_TABLE(table), xframe, 0, 1, 0, 2, GTK_EXPAND , GTK_EXPAND, 0, 0);
|
||||
gtk_widget_show(frame); /* ALT-I */
|
||||
gtk_container_add(GTK_CONTAINER(frame), xframe);
|
||||
|
||||
gtk_widget_show(table);
|
||||
gtk_widget_show(bint.preview);
|
||||
|
|
|
@ -783,7 +783,6 @@ static gint dialog()
|
|||
|
||||
my_widgets.divisor=entry=gtk_entry_new();
|
||||
gtk_box_pack_start(GTK_BOX(box), entry, TRUE, TRUE, 0);
|
||||
gtk_container_add(GTK_CONTAINER(frame),entry);
|
||||
gtk_widget_set_usize(entry, 40, 0);
|
||||
gtk_signal_connect(GTK_OBJECT(entry), "changed",
|
||||
(GtkSignalFunc) entry_callback, &my_config.divisor);
|
||||
|
@ -799,7 +798,6 @@ static gint dialog()
|
|||
|
||||
my_widgets.offset=entry=gtk_entry_new();
|
||||
gtk_box_pack_start(GTK_BOX(box), entry, TRUE, TRUE, 0);
|
||||
gtk_container_add(GTK_CONTAINER(frame),entry);
|
||||
gtk_widget_set_usize(entry, 40, 0);
|
||||
gtk_signal_connect(GTK_OBJECT(entry), "changed",
|
||||
(GtkSignalFunc) entry_callback, &my_config.offset);
|
||||
|
|
|
@ -423,7 +423,6 @@ tileit_dialog ()
|
|||
gtk_table_attach(GTK_TABLE(table), xframe, 0, 1, 0, 2, GTK_EXPAND , GTK_EXPAND, 0, 0);
|
||||
gtk_widget_show(frame);
|
||||
gtk_widget_show(table);
|
||||
gtk_container_add(GTK_CONTAINER(frame), xframe);
|
||||
|
||||
/* Area for buttons etc */
|
||||
/* This was built up incrementally... shows does'nt it */
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
/* Tiler v0.3
|
||||
/* Tiler v0.31
|
||||
* 22 May 1997
|
||||
* Tim Rowley <tor@cs.brown.edu>
|
||||
*/
|
||||
|
@ -12,6 +12,7 @@
|
|||
* v0.1: initial version
|
||||
* v0.2: fix edge conditions
|
||||
* v0.3: port to 0.99 API
|
||||
* v0.31: small bugfix
|
||||
*/
|
||||
|
||||
#include <stdio.h>
|
||||
|
@ -184,7 +185,7 @@ tile(GDrawable *drawable)
|
|||
for (row = 0; row <y; row++)
|
||||
{
|
||||
gimp_pixel_rgn_get_row(&destPR, dest_cur, x1, y1+row, (x2-x1));
|
||||
memset(dest_cur, 0, y*bytes);
|
||||
memset(dest_cur, 0, x*bytes);
|
||||
gimp_pixel_rgn_set_row(&destPR, dest_cur, x1, y1+row, (x2-x1));
|
||||
}
|
||||
|
||||
|
|
|
@ -783,7 +783,6 @@ static gint dialog()
|
|||
|
||||
my_widgets.divisor=entry=gtk_entry_new();
|
||||
gtk_box_pack_start(GTK_BOX(box), entry, TRUE, TRUE, 0);
|
||||
gtk_container_add(GTK_CONTAINER(frame),entry);
|
||||
gtk_widget_set_usize(entry, 40, 0);
|
||||
gtk_signal_connect(GTK_OBJECT(entry), "changed",
|
||||
(GtkSignalFunc) entry_callback, &my_config.divisor);
|
||||
|
@ -799,7 +798,6 @@ static gint dialog()
|
|||
|
||||
my_widgets.offset=entry=gtk_entry_new();
|
||||
gtk_box_pack_start(GTK_BOX(box), entry, TRUE, TRUE, 0);
|
||||
gtk_container_add(GTK_CONTAINER(frame),entry);
|
||||
gtk_widget_set_usize(entry, 40, 0);
|
||||
gtk_signal_connect(GTK_OBJECT(entry), "changed",
|
||||
(GtkSignalFunc) entry_callback, &my_config.offset);
|
||||
|
|
|
@ -423,7 +423,6 @@ tileit_dialog ()
|
|||
gtk_table_attach(GTK_TABLE(table), xframe, 0, 1, 0, 2, GTK_EXPAND , GTK_EXPAND, 0, 0);
|
||||
gtk_widget_show(frame);
|
||||
gtk_widget_show(table);
|
||||
gtk_container_add(GTK_CONTAINER(frame), xframe);
|
||||
|
||||
/* Area for buttons etc */
|
||||
/* This was built up incrementally... shows does'nt it */
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
/* Tiler v0.3
|
||||
/* Tiler v0.31
|
||||
* 22 May 1997
|
||||
* Tim Rowley <tor@cs.brown.edu>
|
||||
*/
|
||||
|
@ -12,6 +12,7 @@
|
|||
* v0.1: initial version
|
||||
* v0.2: fix edge conditions
|
||||
* v0.3: port to 0.99 API
|
||||
* v0.31: small bugfix
|
||||
*/
|
||||
|
||||
#include <stdio.h>
|
||||
|
@ -184,7 +185,7 @@ tile(GDrawable *drawable)
|
|||
for (row = 0; row <y; row++)
|
||||
{
|
||||
gimp_pixel_rgn_get_row(&destPR, dest_cur, x1, y1+row, (x2-x1));
|
||||
memset(dest_cur, 0, y*bytes);
|
||||
memset(dest_cur, 0, x*bytes);
|
||||
gimp_pixel_rgn_set_row(&destPR, dest_cur, x1, y1+row, (x2-x1));
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue