#include "ui-misc.h"
+#include <langinfo.h>
+
#include <cstdlib>
#include <cstring>
+#include <pango/pango.h>
+
#include <config.h>
#include "compat.h"
#include "layout.h"
#include "main-defines.h"
#include "misc.h"
+#include "options.h"
+#include "typedefs.h"
#include "utilops.h"
-#include <langinfo.h>
-
/*
*-----------------------------------------------------------------------------
* widget and layout utilities
GCallback func, gpointer data)
{
GtkWidget *button;
-#ifdef HAVE_GTK4
+#if HAVE_GTK4
GtkToggleButton *group;;
#else
GSList *group;
if (sibling)
{
-#ifdef HAVE_GTK4
+#if HAVE_GTK4
group = sibling;
#else
group = gtk_radio_button_get_group(GTK_RADIO_BUTTON(sibling));
if (mnemonic_text)
{
-#ifdef HAVE_GTK4
+#if HAVE_GTK4
button = gtk_toggle_button_new_with_mnemonic(text);
gtk_toggle_button_set_group(button, group);
#else
}
else
{
-#ifdef HAVE_GTK4
+#if HAVE_GTK4
button = gtk_toggle_button_new_with_label(text);
gtk_toggle_button_set_group(button, group);
#else
gtk_widget_show(ds->calendar);
date = date_selection_get(ds->box);
-#ifdef HAVE_GTK4
+#if HAVE_GTK4
gtk_calendar_select_day(GTK_CALENDAR(ds->calendar), date);
#else
gtk_calendar_select_month(GTK_CALENDAR(ds->calendar), g_date_time_get_month(date), g_date_time_get_year(date));