diff options
author | David Robillard <d@drobilla.net> | 2012-04-13 02:03:24 +0000 |
---|---|---|
committer | David Robillard <d@drobilla.net> | 2012-04-13 02:03:24 +0000 |
commit | 5695a60ef02918f3fe6183085908de71b6e024da (patch) | |
tree | 613dcc285121181574a82f8426739e8f47e24797 /src | |
parent | 13e0055f99be75e81e50de81fc7b5bc3670b35e9 (diff) | |
download | jalv-5695a60ef02918f3fe6183085908de71b6e024da.tar.gz jalv-5695a60ef02918f3fe6183085908de71b6e024da.tar.bz2 jalv-5695a60ef02918f3fe6183085908de71b6e024da.zip |
Fix compilation with old glib.
git-svn-id: http://svn.drobilla.net/lad/trunk/jalv@4179 a436a847-0d15-0410-975c-d299462d15a1
Diffstat (limited to 'src')
-rw-r--r-- | src/jalv_gtk2.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/jalv_gtk2.c b/src/jalv_gtk2.c index c5184cd..eee16ac 100644 --- a/src/jalv_gtk2.c +++ b/src/jalv_gtk2.c @@ -218,7 +218,7 @@ jalv_ui_port_event(Jalv* jalv, if (GTK_IS_COMBO_BOX(widget)) { GtkTreeModel* model = gtk_combo_box_get_model(GTK_COMBO_BOX(widget)); - GValue value = G_VALUE_INIT; + GValue value = { 0, { { 0 } } }; GtkTreeIter i; bool valid = gtk_tree_model_get_iter_first(model, &i); while (valid) { @@ -254,7 +254,7 @@ combo_changed(GtkComboBox* box, gpointer data) GtkTreeIter iter; if (gtk_combo_box_get_active_iter(box, &iter)) { GtkTreeModel* model = gtk_combo_box_get_model(box); - GValue value = G_VALUE_INIT; + GValue value = { 0, { { 0 } } }; gtk_tree_model_get_value(model, &iter, 0, &value); const double v = g_value_get_double(&value); |