/* -*-c-*-
*
- * $Id: msg.c,v 1.5 1999/05/05 18:52:45 mdw Exp $
+ * $Id: msg.c,v 1.8 1999/11/11 19:54:37 mdw Exp $
*
* Display a message and get an answer
*
* GNU Library General Public License for more details.
*
* You should have received a copy of the GNU Library General Public
- * License along with mgLib; if not, write to the Free Software
- * Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
+ * License along with mgLib; if not, write to the Free
+ * Software Foundation, Inc., 59 Temple Place - Suite 330, Boston,
+ * MA 02111-1307, USA.
*/
/*----- Revision history --------------------------------------------------*
*
* $Log: msg.c,v $
+ * Revision 1.8 1999/11/11 19:54:37 mdw
+ * Prep for standalone release.
+ *
+ * Revision 1.7 1999/05/21 22:08:20 mdw
+ * Take advantage of new dynamic string macros.
+ *
+ * Revision 1.6 1999/05/06 19:51:48 mdw
+ * Reformatted the LGPL notice a little bit.
+ *
* Revision 1.5 1999/05/05 18:52:45 mdw
* Change licensing conditions to LGPL.
*
*
*/
-#ifdef HAVE_GTK
-
/*----- Header files ------------------------------------------------------*/
#include <stdarg.h>
/* --- Set up the message string --- */
{
- dstr d;
+ dstr d = DSTR_INIT;
va_list ap;
va_start(ap, msg);
- dstr_create(&d);
dstr_vputf(&d, msg, ap);
va_end(ap);
w = gtk_label_new(d.buf);
}
/*----- That's all, folks -------------------------------------------------*/
-
-#else
- int mgLib_msg = 0;
-#endif