Hello,
This function etox_context_get_font was listed in the header file but
wasn't implemented in code. The attached has an implementation of the
function.
Thanks,
dan
Index: etox_context.c
===================================================================
RCS file: /cvsroot/enlightenment/e17/libs/etox/src/etox_context.c,v
retrieving revision 1.16
diff -u -r1.16 etox_context.c
--- etox_context.c 10 Sep 2003 03:03:44 -0000 1.16
+++ etox_context.c 14 Feb 2004 02:23:50 -0000
@@ -313,6 +313,24 @@
*/
/**
+ * etox_context_get_font - get the default font for the etox
+ * @et: the etox to get the font from
+ * @size: where the size will be placed
+ * @return Returns the font name on success, NULL on failure
+ */
+char *etox_context_get_font(Etox_Context *context, int *size)
+{
+ CHECK_PARAM_POINTER_RETURN("context", context, NULL);
+
+ *size = context->font_size;
+
+ if (!context->font)
+ return NULL;
+
+ return strdup(context->font);
+}
+
+/**
* etox_context_set_font - change the default font for the etox
* @et: the etox to change the default font
* @name: the name of the default font to use