Commit a2627ec9 authored by Sven Neumann's avatar Sven Neumann Committed by Sven Neumann
Browse files

app/gui/preferences-dialog.c plug-ins/common/gif.c plug-ins/common/jpeg.c

2001-11-20  Sven Neumann  <sven@gimp.org>

	* app/gui/preferences-dialog.c
	* plug-ins/common/gif.c
	* plug-ins/common/jpeg.c
	* plug-ins/common/mail.c: don't strip last character off when
	retrieving text from a GtkTextBuffer. There used to be a bug in GTK+
	that made this necessary. It has been fixed in the meantime.

	* plug-ins/gimpressionist/size.c: merged string fix from stable branch.
parent 9ceb205c
......@@ -1115,8 +1115,6 @@ prefs_text_callback (GtkTextBuffer *buffer,
val = (gchar **) data;
gtk_text_buffer_get_bounds (buffer, &start_iter, &end_iter);
gtk_text_iter_backward_char (&end_iter);
text = gtk_text_buffer_get_text (buffer, &start_iter, &end_iter, FALSE);
if (strlen (text) > MAX_COMMENT_LENGTH)
......
......@@ -1115,8 +1115,6 @@ prefs_text_callback (GtkTextBuffer *buffer,
val = (gchar **) data;
gtk_text_buffer_get_bounds (buffer, &start_iter, &end_iter);
gtk_text_iter_backward_char (&end_iter);
text = gtk_text_buffer_get_text (buffer, &start_iter, &end_iter, FALSE);
if (strlen (text) > MAX_COMMENT_LENGTH)
......
......@@ -2448,8 +2448,6 @@ comment_entry_callback (GtkTextBuffer *buffer)
gchar *text;
gtk_text_buffer_get_bounds (buffer, &start_iter, &end_iter);
gtk_text_iter_backward_char (&end_iter);
text = gtk_text_buffer_get_text (buffer, &start_iter, &end_iter, FALSE);
if (strlen (text) > 240)
......
......@@ -1870,9 +1870,8 @@ save_ok_callback (GtkWidget *widget,
text_buffer = gtk_object_get_data (GTK_OBJECT (data), "text_buffer");
gtk_text_buffer_get_bounds (text_buffer, &start_iter, &end_iter);
gtk_text_iter_backward_char (&end_iter);
image_comment = gtk_text_buffer_get_text (text_buffer, &start_iter, &end_iter, FALSE);
image_comment = gtk_text_buffer_get_text (text_buffer,
&start_iter, &end_iter, FALSE);
gtk_widget_destroy (GTK_WIDGET (data));
}
......
......@@ -726,11 +726,11 @@ mesg_body_callback (GtkTextBuffer *buffer,
GtkTextIter start_iter;
GtkTextIter end_iter;
gtk_text_buffer_get_bounds (buffer, &start_iter, &end_iter);
gtk_text_iter_backward_char (&end_iter);
if (mesg_body)
g_free (mesg_body);
gtk_text_buffer_get_bounds (buffer, &start_iter, &end_iter);
mesg_body = gtk_text_buffer_get_text (buffer, &start_iter, &end_iter, FALSE);
}
......
......@@ -92,7 +92,7 @@ void create_sizepage(GtkNotebook *notebook)
gtk_scale_set_draw_value (GTK_SCALE (tmpw), TRUE);
gtk_scale_set_digits(GTK_SCALE (tmpw), 0);
gtk_box_pack_start (GTK_BOX (box2), tmpw, FALSE, FALSE, 0);
gtk_tooltips_set_tip(GTK_TOOLTIPS(tooltips), tmpw, _("The number of directions (i.e. brushes) to use"), NULL);
gtk_tooltips_set_tip(GTK_TOOLTIPS(tooltips), tmpw, _("The number of sizes of brushes to use"), NULL);
gtk_widget_show (tmpw);
sizefirstadjust = gtk_adjustment_new(pcvals.sizefirst, 0.0, 361.0, 1.0, 1.0, 1.0);
......
......@@ -1870,9 +1870,8 @@ save_ok_callback (GtkWidget *widget,
text_buffer = gtk_object_get_data (GTK_OBJECT (data), "text_buffer");
gtk_text_buffer_get_bounds (text_buffer, &start_iter, &end_iter);
gtk_text_iter_backward_char (&end_iter);
image_comment = gtk_text_buffer_get_text (text_buffer, &start_iter, &end_iter, FALSE);
image_comment = gtk_text_buffer_get_text (text_buffer,
&start_iter, &end_iter, FALSE);
gtk_widget_destroy (GTK_WIDGET (data));
}
......
......@@ -1870,9 +1870,8 @@ save_ok_callback (GtkWidget *widget,
text_buffer = gtk_object_get_data (GTK_OBJECT (data), "text_buffer");
gtk_text_buffer_get_bounds (text_buffer, &start_iter, &end_iter);
gtk_text_iter_backward_char (&end_iter);
image_comment = gtk_text_buffer_get_text (text_buffer, &start_iter, &end_iter, FALSE);
image_comment = gtk_text_buffer_get_text (text_buffer,
&start_iter, &end_iter, FALSE);
gtk_widget_destroy (GTK_WIDGET (data));
}
......
......@@ -1870,9 +1870,8 @@ save_ok_callback (GtkWidget *widget,
text_buffer = gtk_object_get_data (GTK_OBJECT (data), "text_buffer");
gtk_text_buffer_get_bounds (text_buffer, &start_iter, &end_iter);
gtk_text_iter_backward_char (&end_iter);
image_comment = gtk_text_buffer_get_text (text_buffer, &start_iter, &end_iter, FALSE);
image_comment = gtk_text_buffer_get_text (text_buffer,
&start_iter, &end_iter, FALSE);
gtk_widget_destroy (GTK_WIDGET (data));
}
......
......@@ -1870,9 +1870,8 @@ save_ok_callback (GtkWidget *widget,
text_buffer = gtk_object_get_data (GTK_OBJECT (data), "text_buffer");
gtk_text_buffer_get_bounds (text_buffer, &start_iter, &end_iter);
gtk_text_iter_backward_char (&end_iter);
image_comment = gtk_text_buffer_get_text (text_buffer, &start_iter, &end_iter, FALSE);
image_comment = gtk_text_buffer_get_text (text_buffer,
&start_iter, &end_iter, FALSE);
gtk_widget_destroy (GTK_WIDGET (data));
}
......
......@@ -1870,9 +1870,8 @@ save_ok_callback (GtkWidget *widget,
text_buffer = gtk_object_get_data (GTK_OBJECT (data), "text_buffer");
gtk_text_buffer_get_bounds (text_buffer, &start_iter, &end_iter);
gtk_text_iter_backward_char (&end_iter);
image_comment = gtk_text_buffer_get_text (text_buffer, &start_iter, &end_iter, FALSE);
image_comment = gtk_text_buffer_get_text (text_buffer,
&start_iter, &end_iter, FALSE);
gtk_widget_destroy (GTK_WIDGET (data));
}
......
......@@ -1870,9 +1870,8 @@ save_ok_callback (GtkWidget *widget,
text_buffer = gtk_object_get_data (GTK_OBJECT (data), "text_buffer");
gtk_text_buffer_get_bounds (text_buffer, &start_iter, &end_iter);
gtk_text_iter_backward_char (&end_iter);
image_comment = gtk_text_buffer_get_text (text_buffer, &start_iter, &end_iter, FALSE);
image_comment = gtk_text_buffer_get_text (text_buffer,
&start_iter, &end_iter, FALSE);
gtk_widget_destroy (GTK_WIDGET (data));
}
......
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