gtksourceview r2277 - branches/gtksourcecompletion/gtksourceview
- From: jessevdk svn gnome org
- To: svn-commits-list gnome org
- Subject: gtksourceview r2277 - branches/gtksourcecompletion/gtksourceview
- Date: Mon, 13 Apr 2009 18:08:22 +0000 (UTC)
Author: jessevdk
Date: Mon Apr 13 18:08:22 2009
New Revision: 2277
URL: http://svn.gnome.org/viewvc/gtksourceview?rev=2277&view=rev
Log:
Do not destroy completion if it was never created (by nacho)
Modified:
branches/gtksourcecompletion/gtksourceview/gtksourceview.c
Modified: branches/gtksourcecompletion/gtksourceview/gtksourceview.c
==============================================================================
--- branches/gtksourcecompletion/gtksourceview/gtksourceview.c (original)
+++ branches/gtksourcecompletion/gtksourceview/gtksourceview.c Mon Apr 13 18:08:22 2009
@@ -4008,7 +4008,10 @@
{
view->priv->destroy_has_run = TRUE;
- gtk_widget_destroy (GTK_WIDGET (view->priv->completion));
+ if (view->priv->completion != NULL)
+ {
+ gtk_widget_destroy (GTK_WIDGET (view->priv->completion));
+ }
}
GTK_OBJECT_CLASS (gtk_source_view_parent_class)->destroy (object);
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]