Skip to content

Commit

Permalink
SpellCheck: Remove obsolete GTK_CHECK_VERSION checks
Browse files Browse the repository at this point in the history
  • Loading branch information
eht16 committed Jun 9, 2024
1 parent 3e38966 commit 349931c
Showing 1 changed file with 0 additions and 16 deletions.
16 changes: 0 additions & 16 deletions spellcheck/src/gui.c
Original file line number Diff line number Diff line change
Expand Up @@ -585,20 +585,6 @@ gboolean sc_gui_editor_notify(GObject *object, GeanyEditor *editor,
}


#if ! GTK_CHECK_VERSION(2, 16, 0)
static void gtk_menu_item_set_label(GtkMenuItem *menu_item, const gchar *label)
{
if (GTK_BIN(menu_item)->child != NULL)
{
GtkWidget *child = GTK_BIN(menu_item)->child;

if (GTK_IS_LABEL(child))
gtk_label_set_text(GTK_LABEL(child), label);
}
}
#endif


static void update_labels(void)
{
gchar *label;
Expand All @@ -610,7 +596,6 @@ static void update_labels(void)

g_free(label);

#if GTK_CHECK_VERSION(2, 12, 0)
if (sc_info->toolbar_button != NULL)
{
gchar *text = g_strdup_printf(
Expand All @@ -619,7 +604,6 @@ static void update_labels(void)
gtk_tool_item_set_tooltip_text(GTK_TOOL_ITEM(sc_info->toolbar_button), text);
g_free(text);
}
#endif
}


Expand Down

0 comments on commit 349931c

Please sign in to comment.