intermittently (because GTK+ stupidly hides pointers from the GC) but
the change is to stop allocating altogether rather than to use
g_malloc().
/** @brief The popup menu */
GtkWidget *menu;
/** @brief The popup menu */
GtkWidget *menu;
+
+ /** @brief Menu callbacks */
+ struct tabtype tabtype;
};
extern struct queuelike ql_queue;
};
extern struct queuelike ql_queue;
- struct tabtype *t = xmalloc(sizeof *t);
- *t = ql_tabtype;
- t->extra = ql;
- return t;
+ ql->tabtype = ql_tabtype;
+ ql->tabtype.extra = ql;
+ return &ql->tabtype;