Branch: refs/heads/master Author: Frank Lanitz frank@frank.uvena.de Committer: GitHub noreply@github.com Date: Mon, 10 Jun 2024 21:30:34 UTC Commit: 9d807bc20cf510c688239683a654ef766274b6c2 https://github.com/geany/geany-plugins/commit/9d807bc20cf510c688239683a654ef...
Log Message: ----------- Merge pull request #1360 from eht16/spellcheck_remove_obsolete_gtk_check_version
Spellcheck: remove obsolete gtk check version
Modified Paths: -------------- spellcheck/src/gui.c
Modified: spellcheck/src/gui.c 16 lines changed, 0 insertions(+), 16 deletions(-) =================================================================== @@ -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; @@ -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( @@ -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 }
-------------- This E-Mail was brought to you by github_commit_mail.py (Source: https://github.com/geany/infrastructure).