Commit bd6b3ae4 authored by Manish Singh's avatar Manish Singh
Browse files

app/brush_select.c get rid of unused variable warnings

* app/brush_select.c
* app/iscissors.c: get rid of unused variable warnings

* app/fileops.c: refresh the filesel better

* app/plug_in.c: make sure everything gets initialized to something in the
plug-in struct

-Yosh
parent 80c68dc1
Mon Mar 30 21:58:34 PST 1998 Manish Singh <yosh@gimp.org>
* app/brush_select.c
* app/iscissors.c: get rid of unused variable warnings
* app/fileops.c: refresh the filesel better
* app/plug_in.c: make sure everything gets initialized to something
in the plug-in struct
Mon Mar 30 13:52:50 EST 1998 Adrian Likins <adrian@gimp.org>
*plug-ins/png/png.c: changed nparams it expected
......
......@@ -672,6 +672,7 @@ plug_in_new (char *name)
plug_in->my_write = 0;
plug_in->his_read = 0;
plug_in->his_write = 0;
plug_in->input_id = 0;
plug_in->write_buffer_index = 0;
plug_in->temp_proc_defs = NULL;
plug_in->progress = NULL;
......
......@@ -603,7 +603,7 @@ preview_calc_scrollbar (BrushSelectP bsp)
int page_size;
int max;
int offs;
int rowy;
/* int rowy; */
offs = bsp->scroll_offset;
num_rows = (num_brushes + NUM_BRUSH_COLUMNS - 1) / NUM_BRUSH_COLUMNS;
......
......@@ -488,7 +488,7 @@ file_open_callback (GtkWidget *w,
if (GTK_WIDGET_VISIBLE (fileload))
return;
gtk_file_selection_set_filename (GTK_FILE_SELECTION(fileload), ".");
gtk_file_selection_set_filename (GTK_FILE_SELECTION(fileload), "./");
gtk_window_set_title (GTK_WINDOW (fileload), "Load Image");
}
......@@ -579,7 +579,7 @@ file_save_as_callback (GtkWidget *w,
if (GTK_WIDGET_VISIBLE (filesave))
return;
gtk_file_selection_set_filename (GTK_FILE_SELECTION(filesave), ".");
gtk_file_selection_set_filename (GTK_FILE_SELECTION(filesave), "./");
gtk_window_set_title (GTK_WINDOW (filesave), "Save Image");
}
......
......@@ -603,7 +603,7 @@ preview_calc_scrollbar (BrushSelectP bsp)
int page_size;
int max;
int offs;
int rowy;
/* int rowy; */
offs = bsp->scroll_offset;
num_rows = (num_brushes + NUM_BRUSH_COLUMNS - 1) / NUM_BRUSH_COLUMNS;
......
......@@ -672,6 +672,7 @@ plug_in_new (char *name)
plug_in->my_write = 0;
plug_in->his_read = 0;
plug_in->his_write = 0;
plug_in->input_id = 0;
plug_in->write_buffer_index = 0;
plug_in->temp_proc_defs = NULL;
plug_in->progress = NULL;
......
......@@ -672,6 +672,7 @@ plug_in_new (char *name)
plug_in->my_write = 0;
plug_in->his_read = 0;
plug_in->his_write = 0;
plug_in->input_id = 0;
plug_in->write_buffer_index = 0;
plug_in->temp_proc_defs = NULL;
plug_in->progress = NULL;
......
......@@ -744,7 +744,7 @@ iscissors_draw_CR (GDisplay *gdisp,
double d, d2, d3;
int lastx, lasty;
int newx, newy;
int tx, ty;
/* int tx, ty; */
int index;
int i;
......@@ -1295,7 +1295,7 @@ shape_of_boundary (Tool *tool)
double weight;
int left, right;
int i, j;
int x, y;
/* int x, y; */
/* This function determines the kinkiness at each point in the
* original free-hand curve by finding the dotproduct between
......@@ -1397,7 +1397,7 @@ process_kinks (Tool *tool)
Iscissors * iscissors;
GDisplay * gdisp;
Kink * kinks, * k_left, * k_right;
int x, y;
/* int x, y; */
int i;
GimpDrawable *drawable;
......
......@@ -672,6 +672,7 @@ plug_in_new (char *name)
plug_in->my_write = 0;
plug_in->his_read = 0;
plug_in->his_write = 0;
plug_in->input_id = 0;
plug_in->write_buffer_index = 0;
plug_in->temp_proc_defs = NULL;
plug_in->progress = NULL;
......
......@@ -672,6 +672,7 @@ plug_in_new (char *name)
plug_in->my_write = 0;
plug_in->his_read = 0;
plug_in->his_write = 0;
plug_in->input_id = 0;
plug_in->write_buffer_index = 0;
plug_in->temp_proc_defs = NULL;
plug_in->progress = NULL;
......
......@@ -672,6 +672,7 @@ plug_in_new (char *name)
plug_in->my_write = 0;
plug_in->his_read = 0;
plug_in->his_write = 0;
plug_in->input_id = 0;
plug_in->write_buffer_index = 0;
plug_in->temp_proc_defs = NULL;
plug_in->progress = NULL;
......
......@@ -672,6 +672,7 @@ plug_in_new (char *name)
plug_in->my_write = 0;
plug_in->his_read = 0;
plug_in->his_write = 0;
plug_in->input_id = 0;
plug_in->write_buffer_index = 0;
plug_in->temp_proc_defs = NULL;
plug_in->progress = NULL;
......
......@@ -672,6 +672,7 @@ plug_in_new (char *name)
plug_in->my_write = 0;
plug_in->his_read = 0;
plug_in->his_write = 0;
plug_in->input_id = 0;
plug_in->write_buffer_index = 0;
plug_in->temp_proc_defs = NULL;
plug_in->progress = NULL;
......
......@@ -672,6 +672,7 @@ plug_in_new (char *name)
plug_in->my_write = 0;
plug_in->his_read = 0;
plug_in->his_write = 0;
plug_in->input_id = 0;
plug_in->write_buffer_index = 0;
plug_in->temp_proc_defs = NULL;
plug_in->progress = NULL;
......
......@@ -672,6 +672,7 @@ plug_in_new (char *name)
plug_in->my_write = 0;
plug_in->his_read = 0;
plug_in->his_write = 0;
plug_in->input_id = 0;
plug_in->write_buffer_index = 0;
plug_in->temp_proc_defs = NULL;
plug_in->progress = NULL;
......
......@@ -672,6 +672,7 @@ plug_in_new (char *name)
plug_in->my_write = 0;
plug_in->his_read = 0;
plug_in->his_write = 0;
plug_in->input_id = 0;
plug_in->write_buffer_index = 0;
plug_in->temp_proc_defs = NULL;
plug_in->progress = NULL;
......
......@@ -672,6 +672,7 @@ plug_in_new (char *name)
plug_in->my_write = 0;
plug_in->his_read = 0;
plug_in->his_write = 0;
plug_in->input_id = 0;
plug_in->write_buffer_index = 0;
plug_in->temp_proc_defs = NULL;
plug_in->progress = NULL;
......
......@@ -672,6 +672,7 @@ plug_in_new (char *name)
plug_in->my_write = 0;
plug_in->his_read = 0;
plug_in->his_write = 0;
plug_in->input_id = 0;
plug_in->write_buffer_index = 0;
plug_in->temp_proc_defs = NULL;
plug_in->progress = NULL;
......
......@@ -672,6 +672,7 @@ plug_in_new (char *name)
plug_in->my_write = 0;
plug_in->his_read = 0;
plug_in->his_write = 0;
plug_in->input_id = 0;
plug_in->write_buffer_index = 0;
plug_in->temp_proc_defs = NULL;
plug_in->progress = NULL;
......
......@@ -672,6 +672,7 @@ plug_in_new (char *name)
plug_in->my_write = 0;
plug_in->his_read = 0;
plug_in->his_write = 0;
plug_in->input_id = 0;
plug_in->write_buffer_index = 0;
plug_in->temp_proc_defs = NULL;
plug_in->progress = NULL;
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment