Skip to content

Commit

Permalink
beautify: fix gimp-2.6 issue: undefined reference to gimp_item_delete
Browse files Browse the repository at this point in the history
  • Loading branch information
hejiann committed Jul 26, 2012
1 parent c8ca17d commit d1e35db
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 1 deletion.
3 changes: 3 additions & 0 deletions README
Original file line number Diff line number Diff line change
Expand Up @@ -32,6 +32,9 @@ Support: #beautify on FreeNode
CHANGELOG
===================

2012-07-26
beautify: fix gimp-2.6 issue: undefined reference to `gimp_item_delete'

2012-07-25
beautify: add beam gradient effect
beautify: add reset feature
Expand Down
5 changes: 4 additions & 1 deletion beautify.c
Original file line number Diff line number Diff line change
Expand Up @@ -781,6 +781,9 @@ effects_switch_page (GtkNotebook *notebook, GtkWidget *page, guint page_num, gpo
return;
}

// fix gtk2
page = gtk_notebook_get_nth_page (notebook, page_num);

const BeautifyEffectType* effects;
guint n_effects;

Expand Down Expand Up @@ -1091,7 +1094,7 @@ cancel_effect ()
}

gint32 current_layer = gimp_image_get_active_layer (preview_image);
gimp_item_delete (current_layer);
gimp_drawable_delete (current_layer);

current_effect = BEAUTIFY_EFFECT_NONE;

Expand Down

0 comments on commit d1e35db

Please sign in to comment.