Commit 41a4d405 authored by Sven Neumann's avatar Sven Neumann
Browse files

A small fix to the palette dialog.


--Sven
parent de9be95a
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
......
......@@ -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);
}
......
......@@ -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);
}
......
......@@ -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);
}
......
Supports Markdown
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