removed old gcc snapshots
[dottout.git] / x11-apps / grandr / files / 0.1-grandr-combo-invalid-iterator-fix.patch
blob2a4d0b6ef6b4fe35b7de8d81bbbd8676ffd14618
1 --- grandr-0.1/src/callbacks.c 2007-06-19 15:22:41.000000000 +0200
2 +++ grandr-0.1~/src/callbacks.c 2007-12-04 14:30:54.000000000 +0100
3 @@ -158,9 +158,12 @@
4 GtkTreeModel *model;
5 GtkTreeIter iter;
6 int mode_id;
7 + gboolean iter_ok;
9 model = gtk_combo_box_get_model (combobox);
10 - gtk_combo_box_get_active_iter (combobox, &iter);
11 + iter_ok = gtk_combo_box_get_active_iter (combobox, &iter);
12 + if(!iter_ok) return;
14 gtk_tree_model_get (model, &iter,
15 COL_MODE_ID, &mode_id,
16 -1);