Commit b25ee612 authored by Juan Pablo Ugarte's avatar Juan Pablo Ugarte
Browse files

Fixed runtime warning on GladeBaseEditor and GladeSignalEditor dispose methods

parent 8c7cd1a8
......@@ -308,8 +308,8 @@ static gboolean
glade_base_editor_get_child_selected (GladeBaseEditor *e, GtkTreeIter *iter)
{
GtkTreeSelection *sel =
gtk_tree_view_get_selection (GTK_TREE_VIEW (e->priv->treeview));
return gtk_tree_selection_get_selected (sel, NULL, iter);
gtk_tree_view_get_selection (GTK_TREE_VIEW (e->priv->treeview));
return (sel) ? gtk_tree_selection_get_selected (sel, NULL, iter) : FALSE;
}
/* Forward declaration for glade_base_editor_project_widget_name_changed */
......
......@@ -714,8 +714,8 @@ glade_signal_editor_dispose (GObject *object)
{
GladeSignalEditorPrivate *priv = GLADE_SIGNAL_EDITOR_GET_PRIVATE (object);
g_object_unref (priv->detail_store);
g_object_unref (priv->handler_store);
g_clear_object (&priv->detail_store);
g_clear_object (&priv->handler_store);
G_OBJECT_CLASS (glade_signal_editor_parent_class)->dispose (object);
}
......
Markdown is supported
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