#include "bar-comment.h"
+#include <cstring>
+
#include <config.h>
+#include <gdk/gdk.h>
+#include <glib-object.h>
+#if HAVE_SPELL
+# include <gspell/gspell.h>
+#endif
+
#include "bar.h"
#include "compat.h"
#include "debug.h"
#include "layout.h"
#include "main-defines.h"
#include "metadata.h"
+#include "options.h"
#include "rcfile.h"
+#include "typedefs.h"
#include "ui-menu.h"
#include "ui-misc.h"
-#ifdef HAVE_SPELL
-#include <gspell/gspell.h>
-#endif
-
static void bar_pane_comment_changed(GtkTextBuffer *buffer, gpointer data);
/*
FileData *fd;
gchar *key;
gint height;
-#ifdef HAVE_SPELL
+#if HAVE_SPELL
GspellTextView *gspell_view;
#endif
};
auto pcd = static_cast<PaneCommentData *>(data);
file_data_unregister_notify_func(bar_pane_comment_notify_cb, pcd);
-#ifdef HAVE_SPELL
+#if HAVE_SPELL
g_object_unref(pcd->gspell_view);
#endif
file_data_unref(pcd->fd);
pcd->pane.title = bar_pane_expander_title(title);
pcd->pane.id = g_strdup(id);
pcd->pane.type = PANE_COMMENT;
-#ifdef HAVE_SPELL
+#if HAVE_SPELL
pcd->gspell_view = nullptr;
#endif
pcd->pane.expanded = expanded;
G_CALLBACK(bar_pane_comment_populate_popup), pcd);
gtk_widget_show(pcd->comment_view);
-#ifdef HAVE_SPELL
+#if HAVE_SPELL
if (g_strcmp0(key, "Xmp.xmp.Rating") != 0)
{
if (options->metadata.check_spelling)