Permalink
Browse files

beautify: fix gimp-2.6 issue: undefined reference to gimp_item_delete

  • Loading branch information...
hejiann committed Jul 26, 2012
1 parent c8ca17d commit d1e35dbc77dfe0131d6f5ff678dce66b28a2c40e
Showing with 7 additions and 1 deletion.
  1. +3 −0 README
  2. +4 −1 beautify.c
View
3 README
@@ -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
View
@@ -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;
@@ -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;

0 comments on commit d1e35db

Please sign in to comment.