gtk-demo: Check a return value

Found by coverity.
This commit is contained in:
Matthias Clasen
2015-07-17 15:51:05 -04:00
parent 4515d4b8d9
commit 33b19a291a

View File

@@ -158,9 +158,8 @@ activate_run (GSimpleAction *action,
GtkTreeIter iter; GtkTreeIter iter;
selection = gtk_tree_view_get_selection (GTK_TREE_VIEW (treeview)); selection = gtk_tree_view_get_selection (GTK_TREE_VIEW (treeview));
gtk_tree_selection_get_selected (selection, &model, &iter); if (gtk_tree_selection_get_selected (selection, &model, &iter))
run_example_for_row (window, model, &iter);
run_example_for_row (window, model, &iter);
} }
/* Stupid syntax highlighting. /* Stupid syntax highlighting.