grim/guifications2

680bed833e7e
Parents 5a4e68fcaf32
Children e1120d8aed5f
Fix some issues in gf_item_text with unistd and freetype2
--- a/src/gf_item_text.c Wed Apr 07 02:12:16 2021 -0500
+++ b/src/gf_item_text.c Wed Apr 07 02:17:21 2021 -0500
@@ -16,17 +16,9 @@
* along with this program; if not, write to the Free Software
* Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02111-1301, USA.
*/
-#ifdef HAVE_CONFIG_H
-# include "../gf_config.h"
-# if HAVE_UNISTD_H
-# include <unistd.h>
-# endif
-# if HAVE_PANGOFT2
-# include <ft2build.h>
-# include FT_FREETYPE_H
-# include <pango/pangoft2.h>
-# endif
-#endif
+#include <ft2build.h>
+#include <freetype/freetype.h>
+#include <pango/pangoft2.h>
#include <stdio.h>
#include <stdlib.h>
@@ -554,8 +546,7 @@
str = g_string_append(str, buff);
break;
case 'N': /* computer name */
- gethostname(buff, sizeof(buff));
- str = g_string_append(str, buff);
+ str = g_string_append(str, g_get_host_name());
break;
case 'n': /* buddy screen name */
buddy = gf_event_info_get_buddy(info);