Skip to content

Commit

Permalink
Merge pull request #1360 from eht16/spellcheck_remove_obsolete_gtk_ch…
Browse files Browse the repository at this point in the history
…eck_version

Spellcheck: remove obsolete gtk check version
  • Loading branch information
frlan committed Jun 10, 2024
2 parents 299168e + 349931c commit 9d807bc
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 9d807bc

Please sign in to comment.