Skip to content

Commit 349931c

Browse files
committed
SpellCheck: Remove obsolete GTK_CHECK_VERSION checks
1 parent 3e38966 commit 349931c

File tree

1 file changed

+0
-16
lines changed

1 file changed

+0
-16
lines changed

spellcheck/src/gui.c

-16
Original file line numberDiff line numberDiff line change
@@ -585,20 +585,6 @@ gboolean sc_gui_editor_notify(GObject *object, GeanyEditor *editor,
585585
}
586586

587587

588-
#if ! GTK_CHECK_VERSION(2, 16, 0)
589-
static void gtk_menu_item_set_label(GtkMenuItem *menu_item, const gchar *label)
590-
{
591-
if (GTK_BIN(menu_item)->child != NULL)
592-
{
593-
GtkWidget *child = GTK_BIN(menu_item)->child;
594-
595-
if (GTK_IS_LABEL(child))
596-
gtk_label_set_text(GTK_LABEL(child), label);
597-
}
598-
}
599-
#endif
600-
601-
602588
static void update_labels(void)
603589
{
604590
gchar *label;
@@ -610,7 +596,6 @@ static void update_labels(void)
610596

611597
g_free(label);
612598

613-
#if GTK_CHECK_VERSION(2, 12, 0)
614599
if (sc_info->toolbar_button != NULL)
615600
{
616601
gchar *text = g_strdup_printf(
@@ -619,7 +604,6 @@ static void update_labels(void)
619604
gtk_tool_item_set_tooltip_text(GTK_TOOL_ITEM(sc_info->toolbar_button), text);
620605
g_free(text);
621606
}
622-
#endif
623607
}
624608

625609

0 commit comments

Comments
 (0)