A small fix to the palette dialog.

--Sven
This commit is contained in:
Sven Neumann 1999-01-03 21:21:53 +00:00
parent de9be95a02
commit 41a4d405d1
4 changed files with 11 additions and 0 deletions

View File

@ -1,3 +1,8 @@
Sun Jan 3 22:18:48 MET 1999 Sven Neumann <sven@gimp.org>
* app/palette.c: applied a patch from Michael Natterer
that fixes a segfault in the palette dialog.
Sat Jan 2 23:22:29 GMT 1999 Andy Thomas <alt@picnic.demon.co.uk>
* app/palette.c

View File

@ -1773,6 +1773,7 @@ palette_color_area_events (GtkWidget *widget,
palette_draw_entries(palette,row,col);
/* Update the active color name */
gtk_entry_set_text (GTK_ENTRY (palette->color_name), palette->color->name);
gtk_widget_set_sensitive (palette->color_name, TRUE);
/* palette_update_current_entry (palette); */
if(bevent->button == 3)
{
@ -2176,6 +2177,7 @@ palette_list_item_update(GtkWidget *widget,
/* Stop errors in case no colours are selected */
gtk_signal_handler_block(GTK_OBJECT (palette->color_name),palette->entry_sig_id);
gtk_entry_set_text (GTK_ENTRY (palette->color_name), _("Undefined"));
gtk_widget_set_sensitive (palette->color_name, FALSE);
gtk_signal_handler_unblock(GTK_OBJECT (palette->color_name),palette->entry_sig_id);
}

View File

@ -1773,6 +1773,7 @@ palette_color_area_events (GtkWidget *widget,
palette_draw_entries(palette,row,col);
/* Update the active color name */
gtk_entry_set_text (GTK_ENTRY (palette->color_name), palette->color->name);
gtk_widget_set_sensitive (palette->color_name, TRUE);
/* palette_update_current_entry (palette); */
if(bevent->button == 3)
{
@ -2176,6 +2177,7 @@ palette_list_item_update(GtkWidget *widget,
/* Stop errors in case no colours are selected */
gtk_signal_handler_block(GTK_OBJECT (palette->color_name),palette->entry_sig_id);
gtk_entry_set_text (GTK_ENTRY (palette->color_name), _("Undefined"));
gtk_widget_set_sensitive (palette->color_name, FALSE);
gtk_signal_handler_unblock(GTK_OBJECT (palette->color_name),palette->entry_sig_id);
}

View File

@ -1773,6 +1773,7 @@ palette_color_area_events (GtkWidget *widget,
palette_draw_entries(palette,row,col);
/* Update the active color name */
gtk_entry_set_text (GTK_ENTRY (palette->color_name), palette->color->name);
gtk_widget_set_sensitive (palette->color_name, TRUE);
/* palette_update_current_entry (palette); */
if(bevent->button == 3)
{
@ -2176,6 +2177,7 @@ palette_list_item_update(GtkWidget *widget,
/* Stop errors in case no colours are selected */
gtk_signal_handler_block(GTK_OBJECT (palette->color_name),palette->entry_sig_id);
gtk_entry_set_text (GTK_ENTRY (palette->color_name), _("Undefined"));
gtk_widget_set_sensitive (palette->color_name, FALSE);
gtk_signal_handler_unblock(GTK_OBJECT (palette->color_name),palette->entry_sig_id);
}