My last change caused a warning. Fixed now.

1999-12-18  Michael Natterer  <mitch@gimp.org>

	* app/colormap_dialog.i.c: My last change caused a warning. Fixed now.
This commit is contained in:
Michael Natterer 1999-12-17 23:28:51 +00:00 committed by Michael Natterer
parent 2837ba0d81
commit 3e597f7cec
2 changed files with 12 additions and 5 deletions

View File

@ -1,3 +1,7 @@
1999-12-18 Michael Natterer <mitch@gimp.org>
* app/colormap_dialog.i.c: My last change caused a warning. Fixed now.
1999-12-18 Michael Natterer <mitch@gimp.org>
* app/app_procs.c: reverted the splash back to it's previous state

View File

@ -166,11 +166,11 @@ ipal_create (GimpSet *context)
ipal->image = NULL;
ipal->context = context;
ipal->cmap_changed_handler
= gimp_set_add_handler(context, "colormap_changed",
image_cmap_change_cb, ipal);
= gimp_set_add_handler (context, "colormap_changed",
image_cmap_change_cb, ipal);
ipal->rename_handler
= gimp_set_add_handler(context, "rename",
image_rename_cb, ipal);
= gimp_set_add_handler (context, "rename",
image_rename_cb, ipal);
accel_group = gtk_accel_group_new ();
gtk_window_set_wmclass (GTK_WINDOW (ipal), "indexed_color_palette", "Gimp");
@ -575,6 +575,7 @@ ipal_update_entries (GimpColormapDialog *ipal)
{
gtk_widget_set_sensitive (ipal->index_spinbutton, FALSE);
gtk_widget_set_sensitive (GTK_WIDGET (ipal->color_entry), FALSE);
gtk_adjustment_set_value (ipal->index_adjustment, 0);
gtk_entry_set_text (ipal->color_entry, "");
}
else
@ -613,7 +614,9 @@ index_adjustment_change_cb (GtkAdjustment *adjustment,
GimpColormapDialog *ipal)
{
g_return_if_fail (ipal);
g_return_if_fail (ipal->image);
if (!ipal->image)
return;
ipal_set_index (ipal, (gint) (adjustment->value + 0.5));