Don't use G_VALUE_INIT since it was introduced in glib 2.30, and our minimum

requirement is glib 2.28. This was giving a compilation error in FreeBSD 9.1,
since it uses glib 2.28.
This commit is contained in:
Diogo Sousa 2013-07-01 19:40:12 +01:00
parent 73c9321361
commit 4886cc8258

View File

@ -323,10 +323,14 @@ banlist_copyentry (GtkWidget *menuitem, GtkTreeView *view)
GtkTreeModel *model; GtkTreeModel *model;
GtkTreeSelection *sel; GtkTreeSelection *sel;
GtkTreeIter iter; GtkTreeIter iter;
GValue mask = G_VALUE_INIT; GValue mask;
GValue from = G_VALUE_INIT; GValue from;
GValue date = G_VALUE_INIT; GValue date;
char *str; char *str;
memset (&mask, 0, sizeof (mask));
memset (&from, 0, sizeof (from));
memset (&date, 0, sizeof (date));
/* get selection (which should have been set on click) /* get selection (which should have been set on click)
* and temporarily switch to single mode to get selected iter */ * and temporarily switch to single mode to get selected iter */