Commit 0528aeae authored by Matthias Clasen's avatar Matthias Clasen
Browse files

Oops.

parent c1af2aa6
...@@ -4166,17 +4166,16 @@ void ...@@ -4166,17 +4166,16 @@ void
gtk_combo_box_set_active (GtkComboBox *combo_box, gtk_combo_box_set_active (GtkComboBox *combo_box,
gint index_) gint index_)
{ {
GtkTreePath *path; GtkTreePath *path = NULL;
g_return_if_fail (GTK_IS_COMBO_BOX (combo_box)); g_return_if_fail (GTK_IS_COMBO_BOX (combo_box));
g_return_if_fail (index_ >= -1); g_return_if_fail (index_ >= -1);
if (index_ != -1) if (index_ != -1)
path = gtk_tree_path_new_from_indices (index_, -1); path = gtk_tree_path_new_from_indices (index_, -1);
else
path = NULL;
gtk_combo_box_set_active_internal (combo_box, path); gtk_combo_box_set_active_internal (combo_box, path);
if (path)
gtk_tree_path_free (path); gtk_tree_path_free (path);
} }
......
Supports Markdown
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